CVE-2019-16728
dompurify.js - security update
6.1
MEDIUM
CVSS 3.1
EPSS 1.7%
描述
Versions of `dompurify` prior to 2.0.3 are vulnerable to Cross-Site Scripting (XSS). The package has an XSS filter bypass due to Mutation XSS in both Chrome and Safari through a combination of `<svg>`/`<math>` elements and `</p>`/`</br>`. An example payload is: `<svg></p><style><a id="</style><img src=1 onerror=alert(1)>">`. This allows attackers to bypass the XSS protection and execute arbitrary JavaScript in a victim's browser. ## Recommendation Upgrade to version 2.0.3 or later. You may also disallow `<svg>` and `<math>` through `dompurify` configurations: ```DOMPurify.sanitize(input, { FORBID_TAGS: ['svg', 'math'] });```
如何修補 CVE-2019-16728
要修補 CVE-2019-16728,請將受影響套件升級到下列已修補版本。
- —升級至 0.8.2~dfsg1-1+deb9u1 或更新版本
- —升級至 2.0.3 或更新版本
CVE-2019-16728 正在被利用嗎?
低 — EPSS 為 1.7%,目前沒有觀察到大規模利用活動。
受影響套件(2)
- from 0, < 0.8.2~dfsg1-1+deb9u1
- from 0, < 2.0.3
CVSS 分數
| 來源 | 版本 | 嚴重程度 | 向量 |
|---|---|---|---|
| osv | CVSS 3.1 | MEDIUM6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |