Skip to content

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

MediumCVSS 6.1 EPSS 0.60% PoC
Published
Updated
Exploit status
Proof-of-concept only
CISA SSVC
No known exploitation · automatable: no · technical impact: partial

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.

Upgrade path

3 packages: 2 fixed.

PackageAffectedFixed inStatus
phlex < 1.0.1; = 1.1.0; = 1.4.0; = 1.7.0 +3 more 1.0.1, 1.2.2, 1.3.3 Fixed
rubygems phlex(RubyGems) < 1.0.1; = 0.1.0; = 0.2.0; = 0.2.1 +36 more 1.0.1, 1.1.1, 1.2.2, 1.3.3, 1.4.1, 1.5.2, 1.6.2, 1.7.1, 1.8.2, 1.9.1 Fixed
phlex-ruby phlex = < 1.0.1; = = 1.1.0; = = 1.4.0; = = 1.7.0 +6 more No fix listed Versions listed

Affected products

ProductAffected versionsFixed in
rubygems phlex(RubyGems) >= 1.9.0, < 1.9.1 1.9.1
rubygems phlex(RubyGems) = 1.9.0 No fix listed
rubygems phlex(RubyGems) >= 1.8.0, < 1.8.2 1.8.2
rubygems phlex(RubyGems) = 1.8.0 No fix listed
rubygems phlex(RubyGems) = 1.8.1 No fix listed
rubygems phlex(RubyGems) >= 1.7.0, < 1.7.1 1.7.1
rubygems phlex(RubyGems) = 1.7.0 No fix listed
rubygems phlex(RubyGems) >= 1.6.0, < 1.6.2 1.6.2
rubygems phlex(RubyGems) = 1.6.0 No fix listed
rubygems phlex(RubyGems) = 1.6.1 No fix listed
rubygems phlex(RubyGems) >= 1.5.0, < 1.5.2 1.5.2
rubygems phlex(RubyGems) = 1.5.0 No fix listed
rubygems phlex(RubyGems) = 1.5.1 No fix listed
rubygems phlex(RubyGems) >= 1.4.0, < 1.4.1 1.4.1
rubygems phlex(RubyGems) = 1.4.0 No fix listed
rubygems phlex(RubyGems) >= 1.3.0, < 1.3.3 1.3.3
rubygems phlex(RubyGems) = 1.3.0 No fix listed
rubygems phlex(RubyGems) = 1.3.1 No fix listed
rubygems phlex(RubyGems) = 1.3.2 No fix listed
rubygems phlex(RubyGems) >= 1.2.0, < 1.2.2 1.2.2
rubygems phlex(RubyGems) = 1.2.0 No fix listed
rubygems phlex(RubyGems) = 1.2.1 No fix listed
rubygems phlex(RubyGems) >= 1.1.0, < 1.1.1 1.1.1
rubygems phlex(RubyGems) = 1.1.0 No fix listed
rubygems phlex(RubyGems) < 1.0.1 1.0.1
Show 32 more
ProductAffected versionsFixed in
rubygems phlex(RubyGems) = 0.1.0 No fix listed
rubygems phlex(RubyGems) = 0.2.0 No fix listed
rubygems phlex(RubyGems) = 0.2.1 No fix listed
rubygems phlex(RubyGems) = 0.2.2 No fix listed
rubygems phlex(RubyGems) = 0.3.0 No fix listed
rubygems phlex(RubyGems) = 0.3.1 No fix listed
rubygems phlex(RubyGems) = 0.3.2 No fix listed
rubygems phlex(RubyGems) = 0.4.0 No fix listed
rubygems phlex(RubyGems) = 0.5.0 No fix listed
rubygems phlex(RubyGems) = 0.5.1 No fix listed
rubygems phlex(RubyGems) = 0.5.2 No fix listed
rubygems phlex(RubyGems) = 0.5.3 No fix listed
rubygems phlex(RubyGems) = 1.0.0 No fix listed
rubygems phlex(RubyGems) = 1.0.0.rc1 No fix listed
rubygems phlex(RubyGems) = 1.0.0.rc2 No fix listed
phlex-ruby phlex = = 1.9.0 No fix listed
phlex-ruby phlex = >= 1.8.0, < 1.8.2 No fix listed
phlex-ruby phlex = = 1.7.0 No fix listed
phlex-ruby phlex = >= 1.6.0, < 1.6.2 No fix listed
phlex-ruby phlex = >= 1.5.0, < 1.5.2 No fix listed
phlex-ruby phlex = = 1.4.0 No fix listed
phlex-ruby phlex = >= 1.3.0, < 1.3.3 No fix listed
phlex-ruby phlex = >= 1.2.0, < 1.2.2 No fix listed
phlex-ruby phlex = = 1.1.0 No fix listed
phlex-ruby phlex = < 1.0.1 No fix listed
phlex < 1.0.1 1.0.1
phlex >= 1.2.0, < 1.2.2 1.2.2
phlex >= 1.3.0, < 1.3.3 1.3.3
phlex = 1.1.0 No fix listed
phlex = 1.4.0 No fix listed
phlex = 1.7.0 No fix listed
phlex = 1.9.0 No fix listed

References