CVE-2024-28199 Cross-site Scripting (XSS) possible with maliciously formed HTML attribute names and values in Phlex
- 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.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| 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
| Product | Affected versions | Fixed 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
| Product | Affected versions | Fixed 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
- https://github.com/phlex-ruby/phlex/security/advisories/GHSA-242p-4v39-2v8g patch vendor-advisory
- nvd.nist.gov third-party-advisory vendor-advisory
- https://github.com/phlex-ruby/phlex/commit/aa50c604cdee1d0ce7ef068a4c66cbd5d43f96a1 patch
- https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy technical-description
- github.com product
- github.com exploit
- github.com