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-31898

published high CVSS 3.1 · 8.1

jsPDF has a PDF Object Injection via FreeText color

Published
18 Mar 2026, 03:03:43 UTC
Updated
07 Sep 2026, 12:05:09 UTC
Language
en

Package status and fixes

Distro / vendorReleasePackage / productPublisher statusFixed buildSource
parallax — jsPDF< 4.2.1 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 version 4.2.1, user control of arguments of the `createAnnotation` method allows users to inject arbitrary PDF objects, such as JavaScript actions. If given the possibility to pass unsanitized input to the following method, a user can inject arbitrary PDF objects, such as JavaScript actions, which might trigger when the PDF is opened or interacted with the `createAnnotation`: `color` parameter. The vulnerability has been fixed in [email protected]. As a workaround, sanitize user input before passing it to the vulnerable API members.

en · GitHub_M · cna

en · redhat-SADP · adp

A flaw was found in jsPDF, a JavaScript library used for generating PDF documents. This vulnerability allows a remote attacker to inject arbitrary PDF objects, including JavaScript actions, into a generated PDF. This can occur if unsanitized user input is provided to the `createAnnotation` method's `color` parameter. When a user opens or interacts with the specially crafted PDF, these injected actions may execute, potentially leading to arbitrary code execution or sensitive information disclosure.

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 8.1 high redhat-SADP · adp CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N —

Publisher product statements

Version ranges and default statuses as reported by each provider.

Affected vendor and product assertions
VendorProductVersion statusSource
parallax jsPDF < 4.2.1 (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

2
  • 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 a PDF Object Injection via FreeText color

redhat-SADP · adp

jspdf: jsPDF: Arbitrary code execution via unsanitized input in createAnnotation method

CISA-ADP · adp

CISA ADP Vulnrichment

Provenance

Schema
5.2
Searchable
yes
Content hash
ace57d3de99c9a1d558b77fbf5fd6ab42f74b6fe55739684a9fcaf3627a0bf20
Ingested
23 Sep 2026, 09:09:43 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