CVE-2021-23353 Regular Expression Denial of Service (ReDoS)

Medium 5.9 Published Updated

Attackers can cause a denial of service in the jsPDF library via a regular expression denial of service in the addImage function.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2021-23353?

CVE-2021-23353 is a medium-severity denial of service vulnerability in jspdf, published on 9 Mar 2021. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

This affects the package jspdf before 2.3.1. ReDoS is possible via the addImage function.

Which versions are affected by CVE-2021-23353?

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

PackageAffectedFixed in
jspdf npmAll versions2.3.1
jspdf npmAll versions2.3.1

Products include Parall Jspdf.

How do I fix CVE-2021-23353?

Upgrade jspdf to 2.3.1 or later.

Upgrade, then put limits on request size, rate and nesting depth so one client cannot exhaust the service. More about Denial of service.

Is CVE-2021-23353 being exploited?

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

Sources

Also known as GHSA-57f3-gghm-9mhc.

Is CVE-2021-23353 in your software?

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

Check your SBOMs for free