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

Not scored Published

Attackers can execute malicious JavaScript in user browsers via crafted markdown links, requiring an upgrade to the markdown-to-jsx library.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
Available

What is GHSA-ccrp-c664-8p4j?

GHSA-ccrp-c664-8p4j is a cross-site scripting vulnerability in markdown-to-jsx, published on 3 Sep 2020. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.

Official 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.

Which versions are affected by GHSA-ccrp-c664-8p4j?

2 open source packages ship an affected version, including markdown-to-jsx.

PackageAffectedFixed in
markdown-to-jsx npmAll versions6.11.4
markdown-to-jsx npmAll versions6.11.4

How do I fix GHSA-ccrp-c664-8p4j?

Upgrade markdown-to-jsx to 6.11.4 or later.

Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.

Is GHSA-ccrp-c664-8p4j being exploited?

There is no known exploitation of GHSA-ccrp-c664-8p4j in the wild and no public exploit code.

Sources

Is GHSA-ccrp-c664-8p4j in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free