Skip to content
FlawDB
Sign in
Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

CVE-2021-39199

CRITICAL 10.0EPSS 64%

Cross site scripting via unsafe defaults in remark-html

Also known as GHSA-9q5w-79cv-947m

Mitigation

  • Upgrade remark-html to one of 13.0.2, 14.0.1 (or later in the same release line).

Who should check

  • Projects that depend on npm package remark-html (< 13.0.2)
  • Anyone running remarkjs remark-html >= 14.0.0, < 14.0.1; < 13.0.2

Vulnerability facts

Affected
remark-html < 13.0.2
Fixed in
13.0.2, 14.0.1
Exploited in the wild
Not in CISA KEV
Public exploit / PoC
None known
Remote exploitation
Remote, no login needed
CVSS
10.0 (v3.1, CNA)CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:NOpen in CVSS calculator
Show all 8 CVSS metrics
  • Attack vector: Network
  • Attack complexity: Low
  • Privileges required: None
  • User interaction: None
  • Scope: Changed (impact reaches other components)
  • Confidentiality impact: High
  • Integrity impact: High
  • Availability impact: None
EPSS
1.07% chance of exploitation in 30 days (percentile 64, 2026-11-26)
CWE
CWE-79
Published
Modified

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.

Affected and fixed versions

Package / productAffectedFixedSource
npm remark-html< 13.0.213.0.2, 14.0.1osv
remarkjs remark-html>= 14.0.0, < 14.0.1; < 13.0.2—cvelist

Check your systems with an agent

Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.

Check whether anything I run is affected by CVE-2021-39199. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2021-39199.md
Affected: remark-html < 13.0.2
Fixed in: 13.0.2, 14.0.1

Steps:
1. Search this machine and project for remark-html (npm), remarkjs remark-html: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.

References

FAQ

Is CVE-2021-39199 being exploited?

There is no confirmed exploitation: CVE-2021-39199 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 1.07% chance of exploitation in the next 30 days (as of 2026-11-26).

How serious is CVE-2021-39199?

Critical: CVSS 10.0 (v3.1, scored by CNA). Remote, no login needed.

Which versions are affected by CVE-2021-39199?

remark-html < 13.0.2.

Is there a fix for CVE-2021-39199?

Yes. Fixed in 13.0.2, 14.0.1. Upgrade remark-html to one of 13.0.2, 14.0.1 (or later in the same release line).

How do I check if I'm affected by CVE-2021-39199?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

Sponsors