Multiple vulnerabilities in jsPDF



Published: 2022-01-31
Risk Low
Patch available YES
Number of vulnerabilities 2
CVE-ID N/A
CWE-ID CWE-354
CWE-185
Exploitation vector Network
Public exploit N/A
Vulnerable software
Subscribe
jspdf
Web applications / Modules and components for CMS

Vendor Jelle_S

Security Bulletin

This security bulletin contains information about 2 vulnerabilities.

1) Improper validation of integrity check value

EUVDB-ID: #VU60182

Risk: Low

CVSSv3.1: 3.7 [CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:N/E:U/RL:O/RC:C]

CVE-ID: N/A

CWE-ID: CWE-354 - Improper Validation of Integrity Check Value

Exploit availability: No

Description

The vulnerability allows a remote attacker to perform spoofing attack.

The vulnerability exists due to missing integrity check when loading the pdfobject lib from CDN in calls to output('pdfobjectnewwindow'). A remote attacker who is able to compromise CDN or perform MitM attack can inject arbitrary JS code and execute it victim's browser.

Mitigation

Install updates from vendor's website.

Vulnerable software versions

jspdf: 2.0.0 - 2.5.0

External links

http://github.com/MrRio/jsPDF/releases/tag/v2.5.1


Q & A

Can this vulnerability be exploited remotely?

Yes. This vulnerability can be exploited by a remote non-authenticated attacker via the Internet.

Is there known malware, which exploits this vulnerability?

No. We are not aware of malware exploiting this vulnerability.

2) Incorrect Regular Expression

EUVDB-ID: #VU60183

Risk: Low

CVSSv3.1: 2.7 [CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:N/A:L/E:U/RL:O/RC:C]

CVE-ID: N/A

CWE-ID: CWE-185 - Incorrect Regular Expression

Exploit availability: No

Description

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.

Mitigation

Install updates from vendor's website.

Vulnerable software versions

jspdf: 2.0.0 - 2.5.0

External links

http://github.com/MrRio/jsPDF/releases/tag/v2.5.1


Q & A

Can this vulnerability be exploited remotely?

Yes. This vulnerability can be exploited by a remote non-authenticated attacker via the Internet.

Is there known malware, which exploits this vulnerability?

No. We are not aware of malware exploiting this vulnerability.



###SIDEBAR###