GHSA-qj3f-9gmq-fwv5
Cross-Site Scripting in simple-markdown
Packages
| Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|
| npm | simple-markdown | < 0.4.4 | 0.4.4 |
Details
As written in the advisory (Markdown source, shown as plain text).
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.
References
External links from the advisory. They lead to third-party sites.
- https://nvd.nist.gov/vuln/detail/CVE-2019-9844
- https://github.com/Khan/simple-markdown/pull/63
- https://github.com/Khan/simple-markdown
- https://github.com/advisories/GHSA-qj3f-9gmq-fwv5
- 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/advisories/815
- https://www.npmjs.com/package/simple-markdown/v/0.4.4