Search CVEs and advisories

Search CVEs and Linux security advisories by vendor, product, package, or severity, and see which vulnerabilities each advisory addresses.

CVE

CVE-2026-25755

published high CVSS 3.1 · 8.1

jsPDF has PDF Object Injection via Unsanitized Input in addJS Method

Published
19 Feb 2026, 14:41:46 UTC
Updated
07 Sep 2026, 12:05:03 UTC
Language
en

Package status and fixes

Distro / vendorReleasePackage / productPublisher statusFixed buildSource
parallax — jsPDF< 4.2.0 Affected Not stated GitHub_M
Red Hat — advanced-cluster-security/rhacs-main-rhel8Red Hat Advanced Cluster Security 4.8 · 1775594119 and later · Other versions: affected Unaffected Not stated redhat-SADP
Red Hat — advanced-cluster-security/rhacs-main-rhel8Red Hat Advanced Cluster Security 4.9 · 1775594284 and later · Other versions: affected Unaffected Not stated redhat-SADP

Description

jsPDF is a library to generate PDFs in JavaScript. Prior to 4.2.0, user control of the argument of the `addJS` method allows an attacker to inject arbitrary PDF objects into the generated document. By crafting a payload that escapes the JavaScript string delimiter, an attacker can execute malicious actions or alter the document structure, impacting any user who opens the generated PDF. The vulnerability has been fixed in [email protected]. As a workaround, escape parentheses in user-provided JavaScript code before passing them to the `addJS` method.

en · GitHub_M · cna

en · redhat-SADP · adp

A flaw was found in jsPDF. The addJS method accepts user input without proper sanitization, allowing an attacker to inject arbitrary PDF objects into the document. A specially crafted payload that escapes the JavaScript string delimiter can execute malicious actions or alter the document structure, resulting in arbitrary code execution when a user opens a PDF with a viewer that supports embedded scripts.

Vendor advisories explicitly linked to this CVE.

0

No linked advisories were found for this CVE.

Assessment

CVSS risk assessment and additional context for this vulnerability.

CVSS version
3.1
Base score
8.1 / 10
Severity
high
Provider
GitHub_M · cna
Vector string
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N

Additional Assessments

Additional normalized CVSS assessments
VersionScoreSeverityProviderVectorScenarios
3.1 9.6 critical redhat-SADP · adp CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H —

Publisher product statements

Version ranges and default statuses as reported by each provider.

Affected vendor and product assertions
VendorProductVersion statusSource
parallax jsPDF < 4.2.0 (affected) GitHub_M · cna
Red Hat Red Hat Advanced Cluster Security 4.8 1775594119 and later (unaffected · rpm)Default: affected redhat-SADP · adp
Red Hat Red Hat Advanced Cluster Security 4.9 1775594284 and later (unaffected · rpm)Default: affected redhat-SADP · adp

Weaknesses

3
  • CWE-94 CWE-94: Improper Control of Generation of Code ('Code Injection') (GitHub_M · cna)
  • CWE-116 CWE-116: Improper Encoding or Escaping of Output (GitHub_M · cna)
  • CWE-94 Improper Control of Generation of Code ('Code Injection') (redhat-SADP · adp)

References

9

Provider assertions

3

GitHub_M · cna

jsPDF has PDF Object Injection via Unsanitized Input in addJS Method

redhat-SADP · adp

jsPDF: PDF object injection via unsanitized input in addJS method

CISA-ADP · adp

CISA ADP Vulnrichment

Provenance

Schema
5.2
Searchable
yes
Content hash
11ac203713c86269f8d646869ac57fcfa1fc8a4af7288bbf99c0310f96151b34
Ingested
23 Sep 2026, 09:07:08 UTC
Source record
Official CVE record

Search filters

Match options apply to free text. CVE words match tokens; use contains:"…" for literal substrings.

Text

Words and phrases
buffer overflow "remote code execution"
Word prefix
auth*
Literal substring (title or description)
contains:"use-after-free"
Exclude a term or filter
-test -vendor:example

Affected product

Vendor
vendor:Example
Product
product:"Demo Widget"

Severity and score

Severity · none, low, medium, high, critical, unknown
severity:critical
CWE identifier
cwe:CWE-863
CVSS score (0–10)
cvss:>=7.0

Dates and status

Published date · comparisons, relative days
published:>=2026-01-01
Updated date · comparisons, relative days
updated:<30d
Status · published (default), rejected, unknown
status:rejected