Intel

AIKIDO-2026-932704

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

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

31

CVE Score

Low

Cross-Site Scripting (XSS)

Are you affected? Scan for Free

TL;DR

sanitize-html keeps a discard region for non-text tags such as script and ends that region on an implied close. A browser continues to discard content past that point for certain nested tag combinations. Markup that uses this mismatch can get a <noscript> tag's content past the discard logic, so the browser shows content that should have been dropped. The fix ends the discard region at the implied close a browser uses.

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

0.1.0 - 2.17.7

Fixed in 2.18.0

Background info

sanitize-html is vulnerable to Cross-Site Scripting (XSS) in versions 0.1.0 - 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