CVE-2021-39199
Severity CVSS v4.0:
Pending analysis
Type:
CWE-79
Cross-Site Scripting (XSS)
Publication date:
07/09/2021
Last modified:
14/09/2021
Description
remark-html is an open source nodejs library which compiles Markdown to HTML. In affected versions the documentation of remark-html has mentioned that it was safe by default. In practice the default was never safe and had to be opted into. That is, user input was not sanitized. This means arbitrary HTML can be passed through leading to potential XSS attacks. The problem has been patched in 13.0.2 and 14.0.1: `remark-html` is now safe by default, and the implementation matches the documentation. On older affected versions, pass `sanitize: true` if you cannot update.
Impact
Base Score 3.x
6.10
Severity 3.x
MEDIUM
Base Score 2.0
4.30
Severity 2.0
MEDIUM
Vulnerable products and versions
| CPE | From | Up to |
|---|---|---|
| cpe:2.3:a:remark:remark-html:*:*:*:*:*:node.js:*:* | 13.0.2 (excluding) | |
| cpe:2.3:a:remark:remark-html:*:*:*:*:*:node.js:*:* | 14.0.0 (including) | 14.0.1 (excluding) |
To consult the complete list of CPE names with products and versions, see this page



