CVE-2021-39199
CVSS V2 Medium 4.3
CVSS V3 Medium 6.1
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.
Overview
- CVE ID
- CVE-2021-39199
- Assigner
- security-advisories@github.com
- Vulnerability Status
- Analyzed
- Published Version
- 2021-09-07T19:15:08
- Last Modified Date
- 2021-09-14T16:11:25
Weakness Enumerations
CPE Configuration (Product)
CPE | Vulnerable | Operator | Version Start | Version End |
---|---|---|---|---|
cpe:2.3:a:remark:remark-html:*:*:*:*:*:node.js:*:* | 1 | OR | 13.0.2 | |
cpe:2.3:a:remark:remark-html:*:*:*:*:*:node.js:*:* | 1 | OR | 14.0.0 | 14.0.1 |
CVSS Version 2
- Version
- 2.0
- Vector String
- AV:N/AC:M/Au:N/C:N/I:P/A:N
- Access Vector
- NETWORK
- Access Compatibility
- MEDIUM
- Authentication
- NONE
- Confidentiality Impact
- NONE
- Integrity Impact
- PARTIAL
- Availability Impact
- NONE
- Base Score
- 4.3
- Severity
- MEDIUM
- Exploitability Score
- 8.6
- Impact Score
- 2.9
CVSS Version 3
- Version
- 3.1
- Vector String
- CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
- Attack Vector
- NETWORK
- Attack Compatibility
- LOW
- Privileges Required
- NONE
- User Interaction
- REQUIRED
- Scope
- CHANGED
- Confidentiality Impact
- LOW
- Availability Impact
- NONE
- Base Score
- 6.1
- Base Severity
- MEDIUM
- Exploitability Score
- 2.8
- Impact Score
- 2.7
References
Reference URL | Reference Tags |
---|---|
https://github.com/remarkjs/remark-html/releases/tag/14.0.1 | Patch Release Notes Third Party Advisory |
https://www.npmjs.com/package/remark-html | Product Third Party Advisory |
https://github.com/remarkjs/remark-html/security/advisories/GHSA-9q5w-79cv-947m | Patch Third Party Advisory |
https://github.com/remarkjs/remark-html/commit/b75c9dde582ad87ba498e369c033dc8a350478c1 | Patch Third Party Advisory |
Sources
Source Name | Source URL |
---|---|
NIST | https://nvd.nist.gov/vuln/detail/CVE-2021-39199 |
MITRE | https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-39199 |
History
Created | Old Value | New Value | Data Type | Notes |
---|---|---|---|---|
2022-05-10 16:05:30 | Added to TrackCVE | |||
2022-12-05 09:46:32 | 2021-09-07T19:15Z | 2021-09-07T19:15:08 | CVE Published Date | updated |
2022-12-05 09:46:32 | 2021-09-14T16:11:25 | CVE Modified Date | updated | |
2022-12-05 09:46:32 | Analyzed | Vulnerability Status | updated |