Vulnerability DatabaseGHSA-6gjg-cqh9-p2xm

GHSA-6gjg-cqh9-p2xm: 
Ruby vulnerability analysis and mitigation

Impact

Phlex 2 escaped only " in attribute values. That keeps a value inside its attribute, but some elements end at their closing tag even when it appears inside an attribute value. With scripting enabled, <noscript> is one of them, because its content isn't parsed as markup. A comment ends the same way at -->, and so do <textarea>, <title> and <iframe>. So a user-controlled attribute value on an element inside one of these could end the enclosing element early and inject markup, including script that runs as the page loads, with no interaction. This affects every kind of attribute value: Strings, Symbols, token lists, nested data: hashes, styles and safe values. Passing user input as an attribute value is meant to be safe in Phlex, so any application that renders user-controlled attribute values on elements inside noscript, a comment, textarea, title or iframe was vulnerable. A common case is a noscript fallback, such as an image or link with user-provided text in its attributes. Phlex 1.x is not affected, because it HTML-escapes attribute values in full.

Patches

Phlex now escapes < and > in attribute values, as &lt; and &gt;, as well as ". The value the browser reads is unchanged. The patch covers the Ruby serialiser, the compiler and phlex-native. The patched version is:

  • 2.4.2 We have also patched the 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.

Workarounds

If you can't upgrade straight away:

  • A content security policy that disallows inline scripts and event handlers stops the injected script from running.
  • Don't render user-controlled attribute values on elements inside noscript, comment, textarea, title or iframe.

References

  • Browser tests: quickdraw/browser/xss.test.rb, "attribute values in raw text elements and comments"

Source: NVD

Related Ruby vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

GHSA-4859-2mvh-r787HIGH7.1
  • Ruby logoRuby
  • phlex
NoYesNov 23, 2026
GHSA-6gjg-cqh9-p2xmMEDIUM5.9
  • Ruby logoRuby
  • phlex
NoYesNov 23, 2026
GHSA-jjpx-qcfc-pqwpMEDIUM5.9
  • Ruby logoRuby
  • phlex
NoYesNov 23, 2026
GHSA-fxxw-9rf3-3f2wMEDIUM5.9
  • Ruby logoRuby
  • phlex
NoYesNov 23, 2026
GHSA-wcp8-qw9q-vjppMEDIUM4.9
  • Ruby logoRuby
  • doorkeeper-openid_connect
NoYesNov 23, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Additional Wiz resources

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management