Security mailing lists by PureSourceCode

CVE-2021-39199

MEDIUM 6.1CVSS 3.1

Unsafe defaults in `remark-html`

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.

Published
7 Sep 2021
Last modified
8 Jul 2026
Assigned by
security-advisories@github.com
NVD status
Modified
Weakness
CWE-79
Also known as
GHSA-9q5w-79cv-947m
Sources
NVDJSONOSV GHSA-9q5w-79cv-947mJSON

Scores

SourceScored byVersionScoreVector / decision
NVD security-advisories@github.com (Secondary) CVSS 3.1 CRITICAL 10.0 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:N
OSV GitHub CVSS 3.1 CRITICAL 10.0 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:N
NVD nvd@nist.gov (Primary) CVSS 3.1 MEDIUM 6.1 CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
NVD nvd@nist.gov (Primary) CVSS 2.0 MEDIUM 4.3 AV:N/AC:M/Au:N/C:N/I:P/A:N

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
NVD remark remark-html
cpe:2.3:a:remark:remark-html:*:*:*:*:*:node.js:*:*
< 13.0.2 13.0.2
NVD remark remark-html
cpe:2.3:a:remark:remark-html:*:*:*:*:*:node.js:*:*
>= 14.0.0, < 14.0.1 14.0.1
OSV npm remark-html < 13.0.2 13.0.2
OSV npm remark-html >= 14.0.0, < 14.0.1 14.0.1

References

History

  • 25 Nov 2026 20:33 UTC · NVD: first stored (published 7 Sep 2021)
  • 25 Nov 2026 20:10 UTC · OSV: first stored (published 7 Sep 2021)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.