logo

CVE-2025-29771 @jitbit/htmlsanitizer

Package

Manager: npm
Name: @jitbit/htmlsanitizer
Vulnerable Version: >=0 <2.0.3

Severity

Level: Medium

CVSS v3.1: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:N/I:L/A:N/E:U/RL:O/RC:C

CVSS v4.0: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N

EPSS: 0.00144 pctl0.35313

Details

JS Html Sanitizer allows XSS when used with contentEditable ### 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

Metadata

Created: 2025-03-14T19:54:52Z
Modified: 2025-03-14T21:41:26Z
Source: https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2025/03/GHSA-vhv4-fh94-jm5x/GHSA-vhv4-fh94-jm5x.json
CWE IDs: ["CWE-79"]
Alternative ID: GHSA-vhv4-fh94-jm5x
Finding: F008
Auto approve: 1