Incorrect Regular Expression in jspdf - #VU60183
Published: January 31, 2022
Vulnerability identifier: #VU60183
CSH Severity: Low
CVSS v4: 2.1 [CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:A/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N]
CVE-ID: N/A
CWE-ID: CWE-185
Exploitation vector: Remote access
Exploit availability:
No public exploit available
Vulnerability details
The vulnerability allows a remote attacker to perform a denial of service (DoS) attack.
The vulnerability exists due to inefficient regular expression in setDisplayMode. A remote attacker can pass specially crafted data to the application and cause high CPU load, resulting in regular expression denial of service (ReDoS) attack.
Affected software
jspdf
Remediation
Install updates from vendor's website.
jspdf - update to 2.5.1