
Cloud Vulnerability DB
A community-led vulnerabilities database
Phlex's tag method renders an element whose name is given at runtime, e.g. tag(name) { content }. Passing a user-provided tag name to tag is meant to be safe in Phlex, and GHSA-w67g-2h6v-vjgq covered an earlier bypass of the same protection.
tag accepted any registered element, including script and style, whose content the browser runs as code rather than displaying as text. Escaping doesn't neutralise that content. tag also accepted base, which changes where the page loads its other scripts and links from.
So an application that passes a user-provided tag name to tag was vulnerable to cross-site scripting when the element's content or attributes were also user-influenced. That includes user text as content, or a user-provided link.
Phlex 1.x is not affected, because it doesn't have tag.
tag now refuses script, style and base in HTML, and script and style in SVG, by raising Phlex::ArgumentError. Code that renders these elements on purpose should call the element methods directly, e.g. script { … }, which are unchanged.
The patched version is:
main branch on GitHub.
Phlex 2.0 to 2.3 are no longer maintained and won't get a patch. Please upgrade to 2.4.2.If you can't upgrade straight away:
tag.script-src and base-uri stops injected script from running.Source: NVD
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."