CVE-2024-32970
Last modified
CVE-2024-32970 is a high-severity vulnerability rated 7.1/10 on the CVSS scale. Phlex is a framework for building object-oriented views in Ruby. In affected versions there is a potential cross-site scripting (XSS) vulnerability that can be exploited via maliciously crafted user data. EPSS estimates a 0.71% chance of exploitation in the next 30 days.
Description
Phlex is a framework for building object-oriented views in Ruby. In affected versions there is a potential cross-site scripting (XSS) vulnerability that can be exploited via maliciously crafted user data. Since the last two vulnerabilities https://github.com/phlex-ruby/phlex/security/advisories/GHSA-242p-4v39-2v8g and https://github.com/phlex-ruby/phlex/security/advisories/GHSA-g7xq-xv8c-h98c, we have invested in extensive browser tests. It was these new tests that helped us uncover these issues. As of now the project exercises every possible attack vector the developers can think of — including enumerating every ASCII character, and we run these tests in Chrome, Firefox and Safari. Additionally, we test against a list of 6613 known XSS payloads (see: payloadbox/xss-payload-list). The reason these issues were not detected before is the escapes were working as designed. However, their design didn't take into account just how recklessly permissive browsers are when it comes to executing unsafe JavaScript via HTML attributes. If you render an `<a>` tag with an `href` attribute set to a user-provided link, that link could potentially execute JavaScript when clicked by another user. If you splat user-provided attributes when rendering any HTML or SVG tag, malicious event attributes could be included in the output, executing JavaScript when the events are triggered by another user. Patches are available on RubyGems for all minor versions released in the last year. Users are advised to upgrade. Users unable to upgrade should configure a Content Security Policy that does not allow `unsafe-inline` which would effectively prevent this vulnerability from being exploited. Users who upgrade are also advised to configure a Content Security Policy header that does not allow `unsafe-inline`.
Metrics
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:L/A:N
Weakness Enumeration
References
Timeline
- Published
- Last Modified
- Status
- Deferred
Frequently Asked Questions
What is CVE-2024-32970?
How severe is CVE-2024-32970?
How do I fix CVE-2024-32970?
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-32964Lobe Chat is a chatbot framework that supports speech synthe…9
- CVE-2024-32965Lobe Chat is an open-source, AI chat framework. Versions of …8.6
- CVE-2024-32966Static Web Server (SWS) is a tiny and fast production-ready …5.8
- CVE-2024-32967Zitadel is an open source identity management system. In cas…5.3
- CVE-2024-32969vantage6 is an open-source infrastructure for privacy preser…2.7
- CVE-2024-3297An issue in the Certificate Authenticated Session Establishm…6.5
- CVE-2024-32971Apollo Router is a configurable, graph router written in Rus…9
- CVE-2024-32972go-ethereum (geth) is a golang execution layer implementatio…7.5
- CVE-2024-32973Pluto is a superset of Lua 5.4 with a focus on general-purpo…4.8
- CVE-2024-32974Envoy is a cloud-native, open source edge and service proxy.…7.5
- CVE-2024-32975Envoy is a cloud-native, open source edge and service proxy.…7.5
- CVE-2024-32976Envoy is a cloud-native, open source edge and service proxy.…7.5
Are you affected by CVE-2024-32970?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
