Loading advisory.
Loading advisory.
Cross-site Scripting (XSS) possible with maliciously formed HTML attribute names and values in Phlex
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.
Published 2024-03-11 22:50 UTC · Modified 2026-09-10 03:50 UTC
Severity and EPSS are shown separately. Helm does not combine them into one score.
| Package | Ecosystem | Affected | Fixed in | Upgrade command |
|---|---|---|---|---|
| phlex | RubyGems | >= 1.9.0, < 1.9.1 >= 1.8.0, < 1.8.2 >= 1.7.0, < 1.7.1 >= 1.6.0, < 1.6.2 >= 1.5.0, < 1.5.2 >= 1.4.0, < 1.4.1 >= 1.3.0, < 1.3.3 >= 1.2.0, < 1.2.2 >= 1.1.0, < 1.1.1 < 1.0.1 versions 1.9.0, 1.8.0, 1.8.1, 1.7.0, 1.6.0, 1.6.1, 1.5.0, 1.5.1, 1.4.0, 1.3.0, 1.3.1, 1.3.2, 1.2.0, 1.2.1, 1.1.0, 0.1.0, 0.2.0, 0.2.1, 0.2.2, 0.3.0 and 10 more | 1.9.1, 1.8.2, 1.7.1, 1.6.2, 1.5.2, 1.4.1, 1.3.3, 1.2.2, 1.1.1, 1.0.1 | gem install phlex -v 1.9.1gem install phlex -v 1.8.2gem install phlex -v 1.7.1gem install phlex -v 1.6.2gem install phlex -v 1.5.2gem install phlex -v 1.4.1gem install phlex -v 1.3.3gem install phlex -v 1.2.2gem install phlex -v 1.1.1gem install phlex -v 1.0.1 |
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.
a(href: user_profile) { "Profile" }If you splat user-provided attributes when rendering any HTML or SVG tag, malicious event attributes could be included in the output, executing JavaScript when the events are triggered by another user.
h1(**JSON.parse(user_attributes))Patches are available on RubyGems for all 1.x minor versions. The patched versions are:
If you are on main, it has been patched since aa50c60
Configuring a Content Security Policy that does not allow unsafe-inline would effectively prevent this vulnerability from being exploited.
In addition to upgrading to a patched version of Phlex, we strongly recommend configuring a Content Security Policy header that does not allow unsafe-inline. Here’s how you can configure a Content Security Policy header in Rails. https://guides.rubyonrails.org/security.html#content-security-policy-header
No public exploit code known to Helm's sources (Nuclei templates, Metasploit, Exploit-DB and PoC-in-GitHub). That does not mean none exists.
EPSS went from 0.006 on 2026-11-24 to 0.008 on 2026-11-26, over 2 recorded scores.
| Date | Score | Previous | Model |
|---|---|---|---|
| 2026-11-24 | 0.006 | first score | v2026.06.15 |
| 2026-11-26 | 0.008 | 0.006 | v2026.06.15 |