CVE-2024-28199
March 11, 2024
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 Packages
phlex (RUBY):
Affected version(s) >=1.5.0 <1.5.2Fix Suggestion:
Update to version 1.5.2phlex (RUBY):
Affected version(s) >=1.2.0 <1.2.2Fix Suggestion:
Update to version 1.2.2phlex (RUBY):
Affected version(s) >=0.1.0 <1.0.1Fix Suggestion:
Update to version 1.0.1phlex (RUBY):
Affected version(s) =1.9.0 <1.9.1Fix Suggestion:
Update to version 1.9.1phlex (RUBY):
Affected version(s) =1.1.0 <1.1.1Fix Suggestion:
Update to version 1.1.1phlex (RUBY):
Affected version(s) >=1.8.0 <1.8.2Fix Suggestion:
Update to version 1.8.2phlex (RUBY):
Affected version(s) >=1.6.0 <1.6.2Fix Suggestion:
Update to version 1.6.2phlex (RUBY):
Affected version(s) =1.4.0 <1.4.1Fix Suggestion:
Update to version 1.4.1phlex (RUBY):
Affected version(s) >=1.3.0 <1.3.3Fix Suggestion:
Update to version 1.3.3phlex (RUBY):
Affected version(s) =1.7.0 <1.7.1Fix Suggestion:
Update to version 1.7.1Related Resources (7)
Do you need more information?
Contact UsCVSS v4
Base Score:
7.1
Attack Vector
NETWORK
Attack Complexity
LOW
Attack Requirements
NONE
Privileges Required
NONE
User Interaction
PASSIVE
Vulnerable System Confidentiality
HIGH
Vulnerable System Integrity
LOW
Vulnerable System Availability
NONE
Subsequent System Confidentiality
NONE
Subsequent System Integrity
NONE
Subsequent System Availability
NONE
CVSS v3
Base Score:
7.1
Attack Vector
NETWORK
Attack Complexity
LOW
Privileges Required
NONE
User Interaction
REQUIRED
Scope
UNCHANGED
Confidentiality
HIGH
Integrity
LOW
Availability
NONE
Weakness Type (CWE)
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
EPSS
Base Score:
1.18