ammonia is vulnerable to CSS Injection
54
CVE Score
Medium
CSS Injection
Ammonia's CSS sanitizer serializes a rewritten url() value by concatenating it directly between literal quote characters instead of escaping the content. Applications that allow the style attribute and enable filter_style_properties can be exposed when a permitted URL scheme (for example cid:) carries an embedded quote in a sanitized value. The embedded quote breaks out of the intended url("...") token and lets untrusted CSS declarations run in the sanitized output. The patch serializes the URL through a CSS QuotedString encoder, escaping embedded quotes.
Upgrade the ammonia library to the patch version.
You are affected if you are using a version that falls within the vulnerable range and you allow the style attribute with filter_style_properties enabled.
4.1.0 - 4.1.6
Fixed in 4.1.74.2.0 - 4.2.2
Fixed in 4.2.3ammonia is vulnerable to CSS Injection in versions 4.1.0 - 4.1.6 and 4.2.0 - 4.2.2.
Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.
No credit card required | Scan results in 32 seconds.
I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant
ISO 42001Compliant© All Intel data is openly available and commercially licensed.