XML Injection Vulnerability in jsPDF Library by Parallax
CVE-2026-24043
6.9MEDIUM
What is CVE-2026-24043?
The jsPDF library, utilized for generating PDF documents in JavaScript, is susceptible to an XML injection vulnerability. Prior to version 4.1.0, unchecked user input in the addMetadata function's first argument allows for the injection of arbitrary XMP metadata into PDFs. This flaw can compromise the integrity of the generated PDF, particularly if the document is subsequently signed or processed, risking unauthorized alterations. It is crucial for users to upgrade to jsPDF version 4.1.0 or later to mitigate this risk.
Affected Version(s)
jsPDF < 4.1.0
