
Cloud Vulnerability DB
A community-led vulnerabilities database
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:
<style> element nested inside another element.html_email profile, for a <style> element in any position.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.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.
If you cannot upgrade:
allow_style_tags = false.<iframe sandbox> without allow-scripts.Found during a security review while porting dandruff to Rust.
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."