CVE-2025-53987
WordPress vulnerability analysis and mitigation

Overview

A possible XSS vulnerability was discovered in Rails::HTML::Sanitizer version 1.6.0 when used with Rails >= 7.1.0. The vulnerability was disclosed on December 2, 2024, and affects the HTML sanitization functionality in Rails applications. The issue specifically occurs when HTML5 sanitization is enabled and the application developer has overridden the sanitizer's allowed tags where the 'style' element is explicitly allowed and the 'svg' or 'math' element is not allowed (GitHub Advisory).

Technical details

The vulnerability is classified as CWE-79 (Improper Neutralization of Input During Web Page Generation - Cross-site Scripting). It received a CVSS 3.1 Base Score of 6.1 (MEDIUM) with the vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N. Under CVSS 4.0, it was assigned a score of 2.3 (LOW) with the vector string CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N (NVD).

Impact

The vulnerability could allow an attacker to inject malicious content through cross-site scripting when specific conditions are met in the sanitizer's configuration. The impact is considered moderate, with potential for limited confidentiality and integrity breaches (NVD).

Exploitability

The vulnerability requires specific conditions to be exploitable, including HTML5 sanitization being enabled and particular configuration of allowed tags. The attack requires user interaction and network access, as indicated by the CVSS metrics (NVD).

Mitigation and workarounds

The vulnerability has been fixed in Rails::HTML::Sanitizer version 1.6.1. Users are advised to update to this version to address the security issue. A patch has been made available through the official repository (GitHub Patch).

Additional resources


SourceThis report was generated using AI

Related WordPress vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-16974MEDIUM6.4
  • kirki
NoYesAug 11, 2026
CVE-2026-14549NONEN/A
  • lingotek-translation
NoNoAug 11, 2026
CVE-2026-14548NONEN/A
  • lingotek-translation
NoNoAug 11, 2026
CVE-2026-19089NONEN/A
  • product-input-fields-for-woocommerce
NoYesAug 10, 2026
CVE-2026-19077NONEN/A
  • copy-delete-posts
NoYesAug 10, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management