CVE-2021-39199

Source
https://nvd.nist.gov/vuln/detail/CVE-2021-39199
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2021-39199.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2021-39199
Aliases
Related
Published
2021-09-07T19:15:08.747Z
Modified
2025-11-14T12:15:13.566047Z
Severity
  • 6.1 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N CVSS Calculator
Summary
[none]
Details

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.

References

Affected packages

Git / github.com/remarkjs/remark-html

Affected ranges

Type
GIT
Repo
https://github.com/remarkjs/remark-html
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed
Fixed

Affected versions

0.*

0.1.0
0.1.1

1.*

1.0.0
1.1.0
1.2.0
1.2.1

10.*

10.0.0

11.*

11.0.0
11.0.1
11.0.2

12.*

12.0.0

13.*

13.0.0
13.0.1

14.*

14.0.0

2.*

2.0.0
2.0.1
2.0.2

3.*

3.0.0
3.0.1

4.*

4.0.0

5.*

5.0.0
5.0.1
5.1.0
5.2.0

6.*

6.0.0
6.0.1

7.*

7.0.0

8.*

8.0.0

9.*

9.0.0
9.0.1