CVE-2024-28199Phlex
Medium 6.1 No auth needed
Follow: this CVE · Phlex · Phlex We alert you by email or Slack (account required).
- Priority
- 52
- CVSS 3.1
- 6.1
- EPSS
- 0.8% probability of exploitation in 30 days · percentile 52
- Auth required
- No
- Published
- Mar 11, 2024
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-79
- SSVC (CISA)
- Exploitation: none · Automatable: no · Technical impact: partial
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
What happens
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`.
What to do
- Apply the vendor's security update for Phlex.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| RubyGems | phlex |
≥ 1.9.0 < 1.9.1 |
1.9.1 |
gem "phlex", ">= 1.9.1" |
| RubyGems | phlex |
≥ 1.8.0 < 1.8.2 |
1.8.2 |
gem "phlex", ">= 1.8.2" |
| RubyGems | phlex |
≥ 1.7.0 < 1.7.1 |
1.7.1 |
gem "phlex", ">= 1.7.1" |
| RubyGems | phlex |
≥ 1.6.0 < 1.6.2 |
1.6.2 |
gem "phlex", ">= 1.6.2" |
| RubyGems | phlex |
≥ 1.5.0 < 1.5.2 |
1.5.2 |
gem "phlex", ">= 1.5.2" |
| RubyGems | phlex |
≥ 1.4.0 < 1.4.1 |
1.4.1 |
gem "phlex", ">= 1.4.1" |
| RubyGems | phlex |
≥ 1.3.0 < 1.3.3 |
1.3.3 |
gem "phlex", ">= 1.3.3" |
| RubyGems | phlex |
≥ 1.2.0 < 1.2.2 |
1.2.2 |
gem "phlex", ">= 1.2.2" |
| RubyGems | phlex |
≥ 1.1.0 < 1.1.1 |
1.1.1 |
gem "phlex", ">= 1.1.1" |
| RubyGems | phlex |
< 1.0.1 |
1.0.1 |
gem "phlex", ">= 1.0.1" |
Per OSV / GitHub Advisories (GHSA-242p-4v39-2v8g). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| phlex | phlex | < 1.0.1 |
| phlex | phlex | ≥ 1.2.0 < 1.2.2 |
| phlex | phlex | ≥ 1.3.0 < 1.3.3 |
| phlex | phlex | 1.1.0 |
| phlex | phlex | 1.4.0 |
| phlex | phlex | 1.7.0 |
| phlex | phlex | 1.9.0 |
Official sources
References
Links published by the sources. Open them with care.
- developer.mozilla.org Technical Description
- developer.mozilla.org Technical Description
- github.com Patch
- github.com Patch Vendor Advisory