Cross-site Scripting (XSS) possible with maliciously formed HTML attribute names and values in Phlex
- Published
- Last modified
- Where the record stands: published, rejected by its publisher, or superseded by another id.What do these mean? →
- published
- Whether CISA lists it in its Known Exploited Vulnerabilities catalog: proof that attackers are using it.What do these mean? →
- Not listed in CISA KEV
- Fix
- Fixed in 1.8.2, 1.6.2, 1.5.2, 1.3.3, 1.2.2, and 5 more
- Whether working attack code is public (Exploit-DB, Metasploit, Nuclei or GitHub). Public code makes attacks easier.What do these mean? →
- None on Exploit-DB, Metasploit or GitHub
- Exploitation: none
- Automatable: no
- Technical impact: partial
Summary
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`.
Timeline
- CVE published
- CISA SSVC assessment
Exploitation: none · Automatable: no · Technical impact: partial
- Record last updated
Affected versions
- phlex-ruby phlex
From 1.8.0 · fixed in 1.8.2; From 1.6.0 · fixed in 1.6.2; From 1.5.0 · fixed in 1.5.2; From 1.3.0 · fixed in 1.3.3; From 1.2.0 · fixed in 1.2.2; fixed in 1.0.1
- phlexRubyGems
From 1.9.0 · fixed in 1.9.1
- phlexRubyGems
From 1.8.0 · fixed in 1.8.2
- phlexRubyGems
From 1.7.0 · fixed in 1.7.1
- phlexRubyGems
From 1.6.0 · fixed in 1.6.2
- phlexRubyGems
From 1.5.0 · fixed in 1.5.2
- phlexRubyGems
From 1.4.0 · fixed in 1.4.1
- phlexRubyGems
From 1.3.0 · fixed in 1.3.3
- phlexRubyGems
From 1.2.0 · fixed in 1.2.2
- phlexRubyGems
From 1.1.0 · fixed in 1.1.1
- phlexRubyGems
fixed in 1.0.1