Parallax jsPDF
jsPDF has Local File Inclusion/Path Traversal vulnerability
jsPDF is a library to generate PDFs in JavaScript. Prior to version 4.0.0, user control of the first argument of the loadFile method in the node.js build allows local file inclusion/path traversal. If given the possibility to pass unsanitized paths to the loadFile method, a user can retrieve file contents of arbitrary files in the local file system the node process is running in. The file contents are included verbatim in the generated PDFs. Other affected methods are `addImage`, `html`, and `addFont`. Only the node.js builds of the library are affected, namely the `dist/jspdf.node.js` and `dist/jspdf.node.min.js` files. The vulnerability has been fixed in jsPDF@4.0.0. This version restricts file system access per default. This semver-major update does not introduce other breaking changes. Some workarounds areavailable. With recent node versions, jsPDF recommends using the `--permission` flag in production. The feature was introduced experimentally in v20.0.0 and is stable since v22.13.0/v23.5.0/v24.0.0. For older node versions, sanitize user-provided paths before passing them to jsPDF.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- < 4.0.0
Fixed in 4.0.0
Mitigation
Upgrade jsPDF to 4.0.0 or later.
References
- Vendor advisory github.com/parallax/jsPDF/security/advisories/…
- Patch github.com/parallax/jsPDF/commit/a688c8f479929…
- Release notes github.com/parallax/jsPDF/releases/tag/v4.0.0
Timeline
Days relative to CVE publicationFirst public PoC 3.1 days after publication; not in CISA KEV. First PoC: 12nio/CVE-2025-68428_PoC (created 8 Jan 2026, found by us: backfilled).
PoC repositories
Found on GitHub.2 PoCs
PoCs 2
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| 12nio/CVE-2025-68428_PoC | 8 Jan 2026 +3.1 d | 24 | PoC |
| Nurjaman2004/jsPDF-Bulk-Detector-CVE-2025-68428- | 14 Jan 2026 +8.4 d | 1 | PoC |
Only PoCs count toward the first-PoC date and the characteristics below. Do not run PoC code from unknown sources.
PoC characteristics
What to hunt for in your logs · from 2 PoC reposGET /api/v1/generate-invoice
- Query
client=Dinkobranding=../secret- Ports
- 8080
- Seen in
- 1 repo: 12nio/CVE-2025-68428_PoC
- Evidence
- 12nio/CVE-2025-68428_PoC/README.md:7
Regex
Generated from PoC characteristics; not yet reviewed. Matches the request path and query.
(?i)^/api/v1/generate-invoice\?(?:.*&)?client=Dinko.*branding=\.\./secret
Suricata
Template generated from PoC characteristics. Review before deploying.
alert http any any -> $HOME_NET [8080] (msg:"GG PoC-Monitor CVE-2025-68428 parallax jsPDF exploit attempt"; flow:established,to_server; http.method; content:"GET"; http.uri; content:"/api/v1/generate-invoice"; http.uri; content:"client=Dinko"; http.uri; content:"branding=../secret"; reference:url,poc.griffinguard.io/cve/CVE-2025-68428; classtype:web-application-attack; sid:9057231; rev:1;)
Sigma
Template generated from PoC characteristics. Review before deploying.
title: parallax jsPDF exploit attempt (CVE-2025-68428)
id: gg-pocmon-cve-2025-68428-9057231
status: experimental
description: Request pattern taken from public PoCs for CVE-2025-68428. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2025-68428
logsource:
category: webserver
detection:
selection:
cs-method: GET
cs-uri-stem|contains|all:
- '/api/v1/generate-invoice'
cs-uri-query|contains|all:
- 'client=Dinko'
- 'branding=../secret'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: critical
tags:
- attack.initial_access
- attack.t1190
- cve.2025.68428