Home / phlex-ruby / phlex / CVE-2024-32970
CVE-2024-32970: is it exploited, and which versions of phlex-ruby phlex are affected and fixed?
CVE-2024-32970 is a cross-site scripting (XSS) vulnerability in phlex-ruby phlex. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 17:39 UTC). Affected: phlex before 1.9.3 and phlex from 1.10.0 before 1.10.2 (GitHub advisory GHSA-9p57-h987-4vgx). Fixed in 1.9.3 and 1.10.2 (GitHub advisory GHSA-9p57-h987-4vgx). Severity: High (7.1, CVSS 3.1, from GitHub_M).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 17:39 UTC, CVE record November 19, 2026, 07:11 UTC and NVD November 19, 2026, 07:30 UTC.
What is CVE-2024-32970?
Cross-site Scripting (XSS) possible with maliciously formed HTML attribute names and values in Phlex
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`.
From the CVE record by GitHub_M, last updated August 2, 2024, 02:27 UTC.
Which versions are affected, and which fix it?
| Vendor | Product | Affected | Fixed or not affected from |
|---|---|---|---|
| phlex-ruby | phlex | < 1.9.3 >= 1.10.0, < 1.10.2 |
As the CVE record by GitHub_M states it, last updated August 2, 2024. Version ranges are the CNA's; a version the record calls not affected is usually the fix.
Which packages are affected, and in which version is each fixed?
| Ecosystem | Package | Affected | Fixed in | Advisory |
|---|---|---|---|---|
| RubyGems | phlex | < 1.9.3 | 1.9.3 | GHSA-9p57-h987-4vgx |
| RubyGems | phlex | >= 1.10.0, < 1.10.2 | 1.10.2 | GHSA-9p57-h987-4vgx |
GitHub Advisory Database, reviewed advisories (CC BY 4.0); advisory updated May 3, 2024. Summary: Phlex vulnerable to Cross-site Scripting (XSS) via maliciously formed HTML attribute names and values.
How severe is CVE-2024-32970?
| Score | Version | Vector | Source |
|---|---|---|---|
| High 7.1 | CVSS 3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:L/A:N | GitHub_M |
Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.
What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.
Is CVE-2024-32970 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- CISA SSVC
- Exploitation: none; automatable: no; technical impact: partial (CISA ADP, June 18, 2024)
- EPSS
- 0.71% probability of exploitation activity in the next 30 days, percentile 55.0 (FIRST EPSS, scores of December 3, 2026)
What kind of flaw is it?
- CWE-79 Improper Neutralization of Input During Web Page Generation
Where are the vendor advisories and references?
- https://github.com/phlex-ruby/phlex/security/advisories/GHSA-9p57-h987-4vgx x_refsource_CONFIRM
- https://github.com/phlex-ruby/phlex/commit/da8f94342a84cff9d78c98bcc3b3604ee2e577d2 x_refsource_MISC
- https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy x_refsource_MISC
- https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy#unsafe-inline x_refsource_MISC
- https://github.com/payloadbox/xss-payload-list x_refsource_MISC
- https://rubygems.org/gems/phlex x_refsource_MISC
When was it published, and where is the official record?
- Reserved
- April 22, 2024
- Published
- April 30, 2024, 22:25 UTC
- CVE record updated
- August 2, 2024, 02:27 UTC by GitHub_M
- NVD
- Deferred, last modified June 17, 2026, 07:30 UTC
- Last checked
- CVE list November 19, 2026, 07:11 UTC; NVD November 19, 2026, 07:30 UTC; KEV December 3, 2026, 17:39 UTC; EPSS December 3, 2026
- Official record
- cve.org · NVD
What other CVEs affect phlex?
- Apr 17, 2024CVE-2024-32463 phlex-ruby phlex: cross-site scripting (XSS)
- Mar 11, 2024CVE-2024-28199 phlex-ruby phlex: cross-site scripting (XSS)
Questions about CVE-2024-32970
Is CVE-2024-32970 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 17:39 UTC. FIRST's EPSS gives it a 0.71% chance of exploitation activity in the next 30 days (scores of December 3, 2026).
Which versions of phlex-ruby phlex are affected by CVE-2024-32970?
phlex before 1.9.3 and phlex from 1.10.0 before 1.10.2, per the GitHub advisory GHSA-9p57-h987-4vgx. The tables above give every range the sources list.
Which version fixes CVE-2024-32970?
1.9.3 and 1.10.2, per the GitHub advisory GHSA-9p57-h987-4vgx. Check the vendor's advisory before you rely on it.
How severe is CVE-2024-32970?
High (7.1, CVSS 3.1, from GitHub_M). The severity table above shows each score with its source.
Where is the official record of CVE-2024-32970?
The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.