Loading advisory.
Loading advisory.
Phlex XSS protection bypass via attribute splatting, dynamic tags, and href values
During a security audit conducted with Claude Opus 4.6 and GPT-5.3-Codex, we identified three specific ways to bypass the XSS (cross-site-scripting) protection built into Phlex.
Published 2026-02-06 19:35 UTC · Modified 2026-02-06 20:58 UTC
Severity and EPSS are shown separately. Helm does not combine them into one score. How tiers work
| Package | Ecosystem | Affected | Fixed in | Upgrade command |
|---|---|---|---|---|
| phlex | RubyGems | >= 2.4.0.beta1, < 2.4.1 >= 2.3.0, < 2.3.2 >= 2.2.0, < 2.2.2 >= 2.1.0, < 2.1.3 >= 2.0.0.beta1, < 2.0.2 < 1.11.1 versions 2.4.0, 2.4.0.beta1, 2.4.0.beta2, 2.3.0, 2.3.1, 2.2.0, 2.2.1, 2.1.0, 2.1.1, 2.1.2, 2.0.0, 2.0.0.beta1, 2.0.0.beta2, 2.0.0.rc1, 2.0.0.rc2, 2.0.1, 0.1.0, 0.2.0, 0.2.1, 0.2.2 and 48 more | 2.4.1, 2.3.2, 2.2.2, 2.1.3, 2.0.2, 1.11.1 | gem install phlex -v 2.4.1gem install phlex -v 2.3.2gem install phlex -v 2.2.2gem install phlex -v 2.1.3gem install phlex -v 2.0.2gem install phlex -v 1.11.1 |
During a security audit conducted with Claude Opus 4.6 and GPT-5.3-Codex, we identified three specific ways to bypass the XSS (cross-site-scripting) protection built into Phlex.
The first bypass could happen if user-provided attributes with string keys were splatted into HTML tag, e.g. div(**user_attributes).
The second bypass could happen if user-provided tag names were passed to the tag method, e.g. tag(some_tag_name_from_user).
The third bypass could happen if user’s links were passed to href attributes, e.g. a(href: user_provided_link).
All three of these patterns are meant to be safe and all have now been patched.
Phlex has patched all three issues and introduced new tests that run against Safari, Firefox and Chrome.
The patched versions are:
Phlex has also patched the main branch in GitHub.
If a project uses a secure CSP (content security policy) or if the application doesn’t use any of the above patterns, it is not at risk.
No public exploit code known to Helm's sources (Nuclei templates, Metasploit, Exploit-DB and PoC-in-GitHub). That does not mean none exists.
No EPSS history yet. Either the CVE has no score or the scores have not been fetched.