CVE-2024-28199Cross-site Scripting (XSS) possible with maliciously formed HTML attribute names and values in Phlex
- 7.1HighCVSS base score
- 0.60%Exploitation in 30 daysEPSS · top 51% of all CVEs
- NoKnown exploitednot in CISA's KEV catalog
- NonePublic exploitsnone known yet
Description
phlex is an open source framework for building object-oriented views in Ruby. There is a potential cross-site scripting (XSS) vulnerability that can be exploited via maliciously crafted user data. This was due to improper case-sensitivity in the code that was meant to prevent these attacks. 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 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 1.x minor versions. Users are advised to upgrade. Users unable to upgrade should consider configuring a content security policy that does not allow `unsafe-inline`.
Timeline
ID reserved
By GitHub_M
- 5 days later
· 5 days later
Published
- 5 months later
· 5 months later
Record updated
Changes after publication (a new score, a public exploit, EPSS crossing 1, 10 or 50 %, leaving KEV) are kept since November 2026; earlier ones are not known.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| GitHub_MCNA (assigner) | 3.1 | High7.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:L/A:N |
| NVDNVD · Analyzed | 3.1 | Medium6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
- EPSS (exploitation in 30 days)
- 0.60% · top 51% of all CVEs (14 Nov 2026)
- CISA SSVC
- Exploitation: none · Automatable: no · Technical impact: partial
The list uses the assigner's score when there is one, then CISA's, then NVD's: High 7.1.
Affected products
- affected = 1.9.0
- affected >= 1.8.0, < 1.8.2
- affected = 1.7.0
- affected >= 1.6.0, < 1.6.2
- affected >= 1.5.0, < 1.5.2
- affected = 1.4.0
- affected >= 1.3.0, < 1.3.3
- affected >= 1.2.0, < 1.2.2
- affected = 1.1.0
- affected < 1.0.1
Affected packages
From reviewed advisories of the GitHub Advisory Database.
- RubyGemsphlexGHSA-242p-4v39-2v8g (opens in a new tab)
References
References4
- https://github.com/phlex-ruby/phlex/security/advisories/GHSA-242p-4v39-2v8g (opens in a new tab)x_refsource_CONFIRMx_transferred
- https://github.com/phlex-ruby/phlex/commit/aa50c604cdee1d0ce7ef068a4c66cbd5d43f96a1 (opens in a new tab)x_refsource_MISCx_transferred
- https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy (opens in a new tab)x_refsource_MISCx_transferred
- https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy#unsafe-inline (opens in a new tab)x_refsource_MISCx_transferred
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- EUVD EUVD-2024-0782 (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisory GHSA-242p-4v39-2v8g (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://cveledger.app/cve/CVE-2024-28199)Record last updated .