GitHub Advisoryadvisory · npm
GHSA-qj3f-9gmq-fwv5 Cross-Site Scripting in simple-markdown
MEDIUM
Official page ↗
- Aliases
- CVE-2019-9844
- Ecosystem
- npm
- Packages
- simple-markdown
- Severity
- Moderate
- CVSS vector
- CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
- Weaknesses
- CWE-79
- Reviewed
- 2020-06-16
Affected packages
• npm simple-markdown: < 0.4.4 → fixed in 0.4.4
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.
Related
Alias · CVE (1)
- CVE-2019-9844 simple-markdown.js in Khan Academy simple-markdown before 0.4.4 allows XSS via a data: or vbscript: URI. vulnerability
Weakness · CWE (1)
- CWE-79 Improper Neutralization of Input During Web Page Generation weakness
References
- https://nvd.nist.gov/vuln/detail/CVE-2019-9844 advisory
- https://github.com/Khan/simple-markdown/pull/63 web
- https://github.com/Khan/simple-markdown package
- https://github.com/advisories/GHSA-qj3f-9gmq-fwv5 advisory
- https://lists.fedoraproject.org/archives/list/[email protected]/message/JFLP3KJVSV5VWMNEBRXLGRVYFXOV5KOG web
- https://lists.fedoraproject.org/archives/list/[email protected]/message/KZG2I7VH7WLSEUQ77KYP5CRAVFT2RK2U web
- https://lists.fedoraproject.org/archives/list/[email protected]/message/O5EFW655O3BXZYAPB65XEREXB2DSNSOT web
- https://www.npmjs.com/advisories/815 web
- https://www.npmjs.com/package/simple-markdown/v/0.4.4 web