Intel

AIKIDO-2026-576275

sanitize-html is vulnerable to Cross-Site Scripting (XSS)

CVE-2026-113657Published Oct 14, 2026
October 14, 2026

37

CVE Score

Low

Cross-Site Scripting (XSS)

Are you affected? Scan for Free

TL;DR

sanitize-html identifies SVG animation elements by matching the raw tag name, so a namespaced form such as svg:animate is not recognized as the restricted animation tag it actually is. Markup using the namespaced tag can carry an href/xlink:href value with a javascript: URI past the scheme check that normally applies to animation elements, and the browser still executes it when the SVG renders. The fix matches on the local tag name while ignoring any namespace prefix, so the same scheme restriction now applies to the namespaced form.

How do I fix this?

Upgrade the sanitize-html library to the patch version.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range.

Versions

2.17.7 - 2.17.7

Fixed in 2.18.0

Background info

sanitize-html is vulnerable to Cross-Site Scripting (XSS) in versions 2.17.7 - 2.17.7.

Get secure today,
quickly and for free.

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.

Trusted by 150k+ orgs
  • Revolut
  • n8n
  • Lovable
  • Deel
  • Prove
  • Omnea