Advisory

GHSA-vhv4-fh94-jm5x

Also known as: CVE-2025-29771

Summary

JS Html Sanitizer allows XSS when used with contentEditable

Details

Impact
XSS vulnerability when the sanitizer is used with a contentEditable element to set the elements innerHTML to a sanitized string produced by the package. If the code is particularly crafted to abuse the code beautifier, that runs AFTER sanitation.

Patches
Patched in version 2.0.3

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2025-03-14 19:54 UTC
Modified
2025-03-14 21:41 UTC

Affected packages and fixes

@jitbit/htmlsanitizer

npm · All systems

Affected

  • introduced 0, fixed 2.0.3 (semver)

Fixed versions

2.0.3

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences