CVE-2025-29771
JS Html Sanitizer allows XSS when used with contentEditable
EPSS 0.16%
描述
### 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
如何修補 CVE-2025-29771
要修補 CVE-2025-29771,請將受影響套件升級到下列已修補版本。
- npm/@jitbit/htmlsanitizer—升級至 2.0.3 或更新版本
CVE-2025-29771 正在被利用嗎?
低 — EPSS 為 0.2%,目前沒有觀察到大規模利用活動。
受影響套件(1)
- from 0, < 2.0.3
CVSS 分數
| 來源 | 版本 | 嚴重程度 | 向量 |
|---|---|---|---|
| osv | CVSS 4.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 |