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.
div(**user_attributes).tag method, e.g. tag(some_tag_name_from_user).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 <code>main</code> 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.
{
"nvd_published_at": null,
"cwe_ids": [
"CWE-79"
],
"github_reviewed_at": "2026-02-06T19:35:09Z",
"severity": "HIGH",
"github_reviewed": true
}