CVE-2024-28199 — Vulnerability in phlex — CVE Details
Cross-site Scripting (XSS) possible with maliciously formed HTML attribute names and values in Phlex
Summary
Advisory Timeline
- First published March 12, 2024 (944 days ago).
- Last revised September 10, 2026 — 912 days after initial publication.
Remediation
Upgrade to the fixed version using your package manager.
gem install phlex -v 1.7.1
gem install phlex -v 1.3.3
gem install phlex -v 1.8.2
gem install phlex -v 1.1.1
gem install phlex -v 1.6.2
gem install phlex -v 1.2.2
gem install phlex -v 1.5.2
gem install phlex -v 1.4.1
gem install phlex -v 1.9.1
gem install phlex -v 1.0.1
After upgrading, run your dependency scanner again to confirm the vulnerability is resolved.
Affected Packages (10)
Affects 1 ecosystem: rubygems (1).
| Package | Ecosystem | Affected | Fixed In |
|---|---|---|---|
| phlex | rubygems | 1.7.0 | 1.7.1 |
| phlex | rubygems | 1.3.0, 1.3.1, 1.3.2 | 1.3.3 |
| phlex | rubygems | 1.8.0, 1.8.1 | 1.8.2 |
| phlex | rubygems | 1.1.0 | 1.1.1 |
| phlex | rubygems | 1.6.0, 1.6.1 | 1.6.2 |
| phlex | rubygems | 1.2.0, 1.2.1 | 1.2.2 |
| phlex | rubygems | 1.5.0, 1.5.1 | 1.5.2 |
| phlex | rubygems | 1.4.0 | 1.4.1 |
| phlex | rubygems | 1.9.0 | 1.9.1 |
| phlex | rubygems | 0.1.0, 0.2.0, 0.2.1, 0.2.2 (+11 more) | 1.0.1 |
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
- CWE-79Cross-site Scripting (XSS)MITRE
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 7.1 score means for each attack dimension.
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:L/A:N
References
- https://github.com/phlex-ruby/phlex/security/advisories/GHSA-242p-4v39-2v8gWEB
- https://nvd.nist.gov/vuln/detail/CVE-2024-28199ADVISORY
- https://github.com/phlex-ruby/phlex/commit/aa50c604cdee1d0ce7ef068a4c66cbd5d43f96a1WEB
- https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-PolicyWEB
- https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy#unsafe-inlineWEB
- https://github.com/phlex-ruby/phlexPACKAGE
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/phlex/CVE-2024-28199.ymlWEB
Frequently Asked Questions
- What is CVE-2024-28199?
- Cross-site Scripting (XSS) possible with maliciously formed HTML attribute names and values in Phlex This vulnerability has been assigned a severity rating of HIGH (CVSS score: 7.1/10).
- How do I check if my project is affected by CVE-2024-28199?
- CVE-2024-28199 affects phlex. Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2024-28199 and 200,000+ other known vulnerabilities.
Severity & Exploitability
High exploitability or significant impact. Prioritize remediation within days.
Also Known As
Related CVEs
- CVE-2026-94462HIGH
Spree: Broken Access Control in `PATCH /api/v3/store/carts/:id/associate` (IDOR)
- CVE-2024-32970HIGH
Phlex vulnerable to Cross-site Scripting (XSS) via maliciously formed HTML attribute names and values
- CVE-2024-32463HIGH
Cross-site Scripting (XSS) possible due to improper sanitisation of `href` attributes on `<a>` tags
- CVE-2026-77601HIGH
OpenC3 COSMOS: Authenticated OS command injection via the `pypi_url` setting
- GHSA-w67g-2h6v-vjgqHIGH
Phlex XSS protection bypass via attribute splatting, dynamic tags, and href values
Check if you're affected
Scan your dependencies to see if this vulnerability affects your projects.
Scan Your Dependencies