CVE-2020-7691 Cross-site Scripting (XSS)

Medium 6.3 Published Updated

An attacker can inject malicious scripts into PDFs generated by jsPDF, potentially executing code in the viewer's context.

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 CVE-2020-7691?

CVE-2020-7691 is a medium-severity cross-site scripting vulnerability in jspdf, published on 6 Jul 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

In all versions of the package jspdf, it is possible to use <<script>script> in order to go over the filtering regex.

Weakness: CWE-79

Which versions are affected by CVE-2020-7691?

2 open source packages ship an affected version, including jspdf. It affects 1 product.

PackageAffectedFixed in
jspdf npmAll versions2.0.0
jspdf npmAll versions2.0.0

Products include Parall Jspdf.

How do I fix CVE-2020-7691?

Upgrade jspdf to 2.0.0 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 CVE-2020-7691 being exploited?

There is no known exploitation of CVE-2020-7691 in the wild and no public exploit code.

Sources

Also known as GHSA-3q6f-8grx-pr4v.

Is CVE-2020-7691 in your software?

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

Check your SBOMs for free