CVE-2021-39199 Details
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.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
No SSVC data is available for this CVE.
References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/remarkjs/remark-html/commit/b75c9dde582ad87ba498e369c033dc8a350478c1 | CVE | PatchThird Party Advisory |
| https://github.com/remarkjs/remark-html/releases/tag/14.0.1 | CVE | PatchRelease NotesThird Party Advisory |
| https://github.com/remarkjs/remark-html/security/advisories/GHSA-9q5w-79cv-947m | CVE | PatchThird Party Advisory |
| https://www.npmjs.com/package/remark-html | CVE | ProductThird Party Advisory |
| https://github.com/remarkjs/remark-html/commit/b75c9dde582ad87ba498e369c033dc8a350478c1 | [email protected] | PatchThird Party Advisory |
| https://github.com/remarkjs/remark-html/releases/tag/14.0.1 | [email protected] | PatchRelease NotesThird Party Advisory |
| https://github.com/remarkjs/remark-html/security/advisories/GHSA-9q5w-79cv-947m | [email protected] | PatchThird Party Advisory |
| https://www.npmjs.com/package/remark-html | [email protected] | ProductThird Party Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| remark remark-html | < 13.0.2 >= 14.0.0, < 14.0.1 |
CPE
Remediation
| |
Change History
4 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Nov 21, 2024 | CVE Modified | CVE |
| May 14, 2024 | CVE Modified | [email protected] |
| Sep 14, 2021 | Initial Analysis | [email protected] |