CVE-2024-28199

Cross-site Scripting (XSS) possible with maliciously formed HTML attribute names and values in Phlex

MEDIUM
6.1
CVSS Score
Published: March 11, 2024 at 10:50 PM UTC
Updated: June 17, 2026 at 07:21 AM UTC
2 products affected across 2 vendorsPhlexPhlex

Using phlex by phlex-ruby?

Get instant alerts when new vulnerabilities affect phlex - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
MEDIUM6.1
Exploit prediction
EPSS 0.6%
SSVC
No known exploit

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`.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

95%
v < 1.0.11.2.0 ≤ v < 1.2.21.3.0 ≤ v < 1.3.31.1.01.4.01.7.01.9.0
Affected range stops below 1.0.1, so it looks safe — our inference, not a vendor statement
Affected range stops below 1.2.2, so it looks safe — our inference, not a vendor statement
Affected range stops below 1.3.3, so it looks safe — our inference, not a vendor statement
v < 1.0.1v < 1.2.2v < 1.3.3v < 1.5.2v < 1.6.2v < 1.8.2= 1.1.0= 1.4.0= 1.7.0= 1.9.0
Affected range stops below 1.0.1, so it looks safe — our inference, not a vendor statement
Affected range stops below 1.2.2, so it looks safe — our inference, not a vendor statement
Affected range stops below 1.3.3, so it looks safe — our inference, not a vendor statement
Affected range stops below 1.5.2, so it looks safe — our inference, not a vendor statement
Affected range stops below 1.6.2, so it looks safe — our inference, not a vendor statement
Affected range stops below 1.8.2, so it looks safe — our inference, not a vendor statement

Remediation

No guide yet

No remediation guidance has been written for this CVE yet. What the record does show:

SSVC — Action Prioritization

SSVCNo known exploitNot automatablePartial impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

Attack Vector
NETWORK
Complexity
LOW
Privileges
NONE
User Interaction
REQUIRED
Scope
CHANGED
Confidentiality
LOW
Integrity
LOW
Availability
NONE
Vector?

Quick Info

StatusANALYZED
CWE
CWE-79

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card