Home / phlex-ruby / phlex / CVE-2024-28199
CVE-2024-28199: is it exploited, and which versions of phlex-ruby phlex are affected and fixed?
CVE-2024-28199 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, 12:38 UTC). Affected: phlex from 1.9.0 before 1.9.1, phlex from 1.8.0 before 1.8.2, phlex from 1.7.0 before 1.7.1 and 7 more (GitHub advisory GHSA-242p-4v39-2v8g). Fixed in 1.9.1, 1.8.2, 1.7.1, 1.6.2 and 2 more (GitHub advisory GHSA-242p-4v39-2v8g). Severity: High (7.1, CVSS 3.1, from GitHub_M).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 12:38 UTC, CVE record November 19, 2026, 07:11 UTC and NVD November 19, 2026, 07:31 UTC.
What is CVE-2024-28199?
Cross-site Scripting (XSS) possible with maliciously formed HTML attribute names and values in Phlex
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`.
From the CVE record by GitHub_M, last updated August 2, 2024, 00:48 UTC.
Which versions are affected, and which fix it?
| Vendor | Product | Affected | Fixed or not affected from |
|---|---|---|---|
| phlex-ruby | phlex | = 1.9.0 >= 1.8.0, < 1.8.2 = 1.7.0 >= 1.6.0, < 1.6.2 >= 1.5.0, < 1.5.2 = 1.4.0 >= 1.3.0, < 1.3.3 >= 1.2.0, < 1.2.2 = 1.1.0 < 1.0.1 |
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.0, < 1.9.1 | 1.9.1 | GHSA-242p-4v39-2v8g |
| RubyGems | phlex | >= 1.8.0, < 1.8.2 | 1.8.2 | GHSA-242p-4v39-2v8g |
| RubyGems | phlex | >= 1.7.0, < 1.7.1 | 1.7.1 | GHSA-242p-4v39-2v8g |
| RubyGems | phlex | >= 1.6.0, < 1.6.2 | 1.6.2 | GHSA-242p-4v39-2v8g |
| RubyGems | phlex | >= 1.5.0, < 1.5.2 | 1.5.2 | GHSA-242p-4v39-2v8g |
| RubyGems | phlex | >= 1.4.0, < 1.4.1 | 1.4.1 | GHSA-242p-4v39-2v8g |
| RubyGems | phlex | >= 1.3.0, < 1.3.3 | 1.3.3 | GHSA-242p-4v39-2v8g |
| RubyGems | phlex | >= 1.2.0, < 1.2.2 | 1.2.2 | GHSA-242p-4v39-2v8g |
| RubyGems | phlex | >= 1.1.0, < 1.1.1 | 1.1.1 | GHSA-242p-4v39-2v8g |
| RubyGems | phlex | < 1.0.1 | 1.0.1 | GHSA-242p-4v39-2v8g |
GitHub Advisory Database, reviewed advisories (CC BY 4.0); advisory updated March 14, 2024. Summary: Cross-site Scripting (XSS) possible with maliciously formed HTML attribute names and values in Phlex.
Which products and versions does the NVD list as affected?
| Vendor | Product | Versions | Type |
|---|---|---|---|
| phlex | phlex | before 1.0.1 | application |
| phlex | phlex | from 1.2.0 before 1.2.2 | application |
| phlex | phlex | from 1.3.0 before 1.3.3 | application |
| phlex | phlex | 1.1.0 | application |
| phlex | phlex | 1.4.0 | application |
| phlex | phlex | 1.7.0 | application |
| phlex | phlex | 1.9.0 | application |
NVD analysis (status Analyzed), last modified June 17, 2026, 07:21 UTC.
How severe is CVE-2024-28199?
| 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 |
| Medium 6.1 | CVSS 3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N | NVD |
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-28199 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- CISA SSVC
- Exploitation: none; automatable: no; technical impact: partial (CISA ADP, March 12, 2024)
- EPSS
- 0.60% probability of exploitation activity in the next 30 days, percentile 50.3 (FIRST EPSS, scores of December 2, 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-242p-4v39-2v8g x_refsource_CONFIRM
- https://github.com/phlex-ruby/phlex/commit/aa50c604cdee1d0ce7ef068a4c66cbd5d43f96a1 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
When was it published, and where is the official record?
- Reserved
- March 6, 2024
- Published
- March 11, 2024, 22:50 UTC
- CVE record updated
- August 2, 2024, 00:48 UTC by GitHub_M
- NVD
- Analyzed, last modified June 17, 2026, 07:21 UTC
- Last checked
- CVE list November 19, 2026, 07:11 UTC; NVD November 19, 2026, 07:31 UTC; KEV December 3, 2026, 12:38 UTC; EPSS December 2, 2026
- Official record
- cve.org · NVD
What other CVEs affect phlex?
- Apr 30, 2024CVE-2024-32970 phlex-ruby phlex: cross-site scripting (XSS)
- Apr 17, 2024CVE-2024-32463 phlex-ruby phlex: cross-site scripting (XSS)
Questions about CVE-2024-28199
Is CVE-2024-28199 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 12:38 UTC. FIRST's EPSS gives it a 0.60% chance of exploitation activity in the next 30 days (scores of December 2, 2026).
Which versions of phlex-ruby phlex are affected by CVE-2024-28199?
phlex from 1.9.0 before 1.9.1, phlex from 1.8.0 before 1.8.2, phlex from 1.7.0 before 1.7.1, phlex from 1.6.0 before 1.6.2, phlex from 1.5.0 before 1.5.2, phlex from 1.4.0 before 1.4.1 and 4 more, per the GitHub advisory GHSA-242p-4v39-2v8g. The tables above give every range the sources list.
Which version fixes CVE-2024-28199?
1.9.1, 1.8.2, 1.7.1, 1.6.2, 1.5.2 and 1.4.1, per the GitHub advisory GHSA-242p-4v39-2v8g. Check the vendor's advisory before you rely on it.
How severe is CVE-2024-28199?
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-28199?
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.