Intel

AIKIDO-2026-616726

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

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

54

CVE Score

Medium

Cross-Site Scripting (XSS)

Are you affected? Scan for Free

TL;DR

sanitize-html validates the URL scheme for most attributes but passes the content attribute of meta http-equiv="refresh" through as plain text and does not parse the URL inside it. A content value can carry a javascript: or data: URI past the scheme allowlist, and a browser runs that URI when it processes the refresh directive, even though scheme filtering elsewhere in the library works correctly. The patch parses the URL inside content the same way a browser does and checks its scheme before the value is allowed through.

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