CVE-2024-53985
Last modified
CVE-2024-53985 is a medium-severity vulnerability rated 6.1/10 on the CVSS scale. 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 and Nokogiri < 1.15.7, or 1.16.x < 1.16.8. EPSS estimates a 0.57% chance of exploitation in the next 30 days.
Description
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 and Nokogiri < 1.15.7, or 1.16.x < 1.16.8. The 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 with both "math" and "style" elements or both both "svg" and "style" elements. This vulnerability is fixed in 1.6.1.
Metrics
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Rubyonrails | Rails Html Sanitizers | 1.6.0 |
References
Timeline
- Published
- Last Modified
- Status
- Analyzed
Frequently Asked Questions
What is CVE-2024-53985?
How severe is CVE-2024-53985?
How do I fix CVE-2024-53985?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2024
- CVE-2024-5398Rejected reason: This CVE ID has been rejected or withdrawn …
- CVE-2024-53980RIOT is an open-source microcontroller operating system, des…7.5
- CVE-2024-53981python-multipart is a streaming multipart parser for Python.…7.5
- CVE-2024-53982ZOO-Project is a C-based WPS (Web Processing Service) implem…8.7
- CVE-2024-53983The Backstage Scaffolder plugin Houses types and utilities f…5.4
- CVE-2024-53984Nanopb is a small code-size Protocol Buffers implementation.…4.3
- CVE-2024-53986rails-html-sanitizer is responsible for sanitizing HTML frag…6.1
- CVE-2024-53987rails-html-sanitizer is responsible for sanitizing HTML frag…6.1
- CVE-2024-53988rails-html-sanitizer is responsible for sanitizing HTML frag…6.1
- CVE-2024-53989rails-html-sanitizer is responsible for sanitizing HTML frag…6.1
- CVE-2024-5399Openfind Mail2000 does not properly filter parameters of spe…7.2
- CVE-2024-53990The AsyncHttpClient (AHC) library allows Java applications t…9.2
Are you affected by CVE-2024-53985?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
