GitHub Advisoryadvisory · npm

GHSA-ccrp-c664-8p4j Cross-Site Scripting in markdown-to-jsx

HIGH Published 2020-09-03 Modified 2021-09-29 Official page ↗
Ecosystem
npm
Packages
markdown-to-jsx
Severity
High
Weaknesses
CWE-79
Reviewed
2020-08-31

Affected packages

• npm markdown-to-jsx: < 6.11.4 → fixed in 6.11.4

Description

Versions of `markdown-to-jsx` prior to 6.11.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 6.11.4 or later.

Related

Weakness · CWE (1)

  • CWE-79 Improper Neutralization of Input During Web Page Generation weakness

References