khan/simple-markdown · Security
Cross-Site Scripting in simple-markdown
- GHSA ID
- GHSA-qj3f-9gmq-fwv5
- CVE ID
- CVE-2019-9844
- Severity
- medium
- Published
- Updated
- CVSS
- 6.1 · CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
- CVSS v3
- 6.1 · CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Description
Versions of simple-markdown prior to 0.4.4 are vulnerable to Cross-Site Scripting. Due to insufficient input sanitization the package may render output containing malicious JavaScript. This vulnerability can be exploited through input of links containing data or VBScript URIs and a base64-encoded payload.
Recommendation
Upgrade to version 0.4.4 or later.
CWEs
- CWE-79 · Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
References
- https://nvd.nist.gov/vuln/detail/CVE-2019-9844 ↗
- https://github.com/Khan/simple-markdown/pull/63 ↗
- https://github.com/advisories/GHSA-qj3f-9gmq-fwv5 ↗
- https://www.npmjs.com/advisories/815 ↗
- https://lists.fedoraproject.org/archives/list/[email protected]/message/JFLP3KJVSV5VWMNEBRXLGRVYFXOV5KOG/ ↗
- https://lists.fedoraproject.org/archives/list/[email protected]/message/KZG2I7VH7WLSEUQ77KYP5CRAVFT2RK2U/ ↗
- https://lists.fedoraproject.org/archives/list/[email protected]/message/O5EFW655O3BXZYAPB65XEREXB2DSNSOT/ ↗
- https://www.npmjs.com/package/simple-markdown/v/0.4.4 ↗