ammonia is vulnerable to Cross-Site Scripting (XSS)
61
CVE Score
Medium
Cross-Site Scripting (XSS)
Ammonia's SVG sanitizer only neutralizes attack relevant attributes on the animate and set elements, leaving animateTransform, animateMotion, and animateColor unfiltered. Applications that allow those additional animation elements let a sanitized SVG payload set an href attribute to a javascript: URI through one of the unfiltered tags. A user who clicks the resulting link runs the script embedded in the href, producing stored XSS. The patch adds the missing animation element names to the neutralized tag list.
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 animateTransform, animateMotion, or animateColor SVG elements.
4.1.0 - 4.1.6
Fixed in 4.1.74.1.0 - 4.2.2
Fixed in 4.2.3ammonia is vulnerable to Cross-Site Scripting (XSS) in versions 4.1.0 - 4.1.6 and 4.1.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.