Intel

AIKIDO-2024-10553

html-sanitizer is vulnerable to Improper Input Validation

CVE-2024-34078Published Dec 19, 2024
December 19, 2024

46

CVE Score

Medium

Improper Input Validation

Are you affected? Scan for Free

TL;DR

Affected versions of this package use sanitization methods that delay Unicode normalization, which allows specially crafted HTML to bypass the validation for disallowed tags. An attacker could exploit this design flaw to carry out attacks such as Cross-Site Scripting (XSS) or other injection-based vulnerabilities.

How do I fix this?

Upgrade the html-sanitizer 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

1.0.0 - 2.4.1

Fixed in 2.4.2

Background info

html-sanitizer is vulnerable to Improper Input Validation in versions 1.0.0 - 2.4.1.

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