CVE-2024-53987: rails-html-sanitizer is responsible for sanitizing HTML fragments in Rails applications
CVE-2024-53987 is a medium-severity flaw (CVSS 6.1) affecting rails html sanitizers. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.
rails-html-sanitizer is responsible for sanitizing HTML fragments in Rails applications. There is a possible XSS vulnerability with certain configurations of Rails::HTML::Sanitizer 1.6.0 when used with Rails >= 7.1.0. A possible XSS vulnerability with certain configurations of Rails::HTML::Sanitizer may allow an attacker to inject content if HTML5 sanitization is enabled and the application developer has overridden the sanitizer's allowed tags wh
Why this priority
- No elevated risk signals yet
No fix is published yet: follow the downgrade or mitigation steps.
Risk facts
| CVSS score | 6.1 (Medium) |
| Attack vector | Network (remote) |
| Attack complexity | Low |
| Privileges needed | None |
| User interaction | Required |
| EPSS exploit chance | 0.4% (top 61%) |
| CISA exploited list | No |
| Weakness | CWE-79 |
| Published | 2024-12-02 |
| Last modified | 2026-06-17 |
Last updated 2026-06-17 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score
Am I affected?
Timeline
- Published CVE record published
- Updated Record last modified
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.
Quick answers
How do I fix CVE-2024-53987?
rails html sanitizers: downgrade or apply the listed mitigation. Exact commands for each OS are on this page.
Is CVE-2024-53987 being exploited?
CVE-2024-53987 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.
What does CVE-2024-53987 affect?
CVE-2024-53987 affects rails html sanitizers. Severity is medium (CVSS 6.1). rails-html-sanitizer is responsible for sanitizing HTML fragments in Rails applications. There is a possible XSS vulnerability with certain configurations of Rails::HTML::Sanitizer 1.6.0 when used with Rails >= 7.1.0. A possible XSS vulnera
How urgent is CVE-2024-53987?
Priority 31/100. No elevated risk signals yet.
Software pages
Related CVEs
- CVE-2024-53989 MEDIUM 6.1 DOWNGRADE rails-html-sanitizer is responsible for sanitizing HTML fragments in Rails applications
- CVE-2024-53988 MEDIUM 6.1 DOWNGRADE rails-html-sanitizer is responsible for sanitizing HTML fragments in Rails applications
- CVE-2024-53986 MEDIUM 6.1 DOWNGRADE rails-html-sanitizer is responsible for sanitizing HTML fragments in Rails applications
- CVE-2024-53985 MEDIUM 6.1 DOWNGRADE rails-html-sanitizer is responsible for sanitizing HTML fragments in Rails applications