Vulnerability DatabaseGHSA-548x-44fh-cxv4

GHSA-548x-44fh-cxv4: 
Ruby vulnerability analysis and mitigation

Impact

Dandruff did not pass <style> elements through its element/attribute sanitization. Attributes on a surviving <style> element were never checked, and forbidden_tags, allowed_tags and hooks did not apply to it. Event-handler attributes such as onload were kept on <style>, and browsers fire onload on <style> elements. Script in the sanitized output then runs when it is rendered. Affected configurations:

  • The default configuration, for a <style> element nested inside another element.
  • The html_email profile, for a <style> element in any position.
  • Configurations with forbidden_tags: ['style'] or an explicit allowed_tags list, which did not remove <style> as expected. Only allow_style_tags: false prevented the issue. Output rendered inside an <iframe sandbox> without allow-scripts is not affected. A second issue affects configurations that run a single sanitization pass (mutation_max_passes: 1, pass_limit: 1 or sanitize_until_stable: false, as recommended in the README for performance). A disallowed element whose children were kept stayed in the output with its attributes unchecked, including event handlers and javascript: URLs.

Patches

Fixed in 0.9.0. <style> elements now go through the same element and attribute sanitization as every other element, and their content is sanitized as well (@import, expression(), script bindings and disallowed url()s are removed). Disallowed elements are always removed, whatever the number of passes.

Workarounds

If you cannot upgrade:

  • Set allow_style_tags = false.
  • Keep the default of two sanitization passes.
  • Render sanitized HTML in an <iframe sandbox> without allow-scripts.

Credit

Found during a security review while porting dandruff to Rust.


Source: NVD

Related Ruby vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

GHSA-7c6x-34q5-4g2jHIGH7.5
  • Ruby logoRuby
  • websocket-driver
NoYesNov 26, 2026
GHSA-548x-44fh-cxv4MEDIUM6.1
  • Ruby logoRuby
  • dandruff
NoYesNov 26, 2026
GHSA-477m-5qf8-pjv6MEDIUM5.9
  • Ruby logoRuby
  • faye-websocket
NoYesNov 26, 2026
GHSA-qwvx-w3vv-2r28LOWN/A
  • Ruby logoRuby
  • jwe
NoYesNov 26, 2026
GHSA-9hgp-rr8g-x7cqHIGHN/A
  • Ruby logoRuby
  • jwe
NoYesNov 26, 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