CVE-2025-26240
pdfkit: Path traversal in from_string
In JazzCore python-pdfkit 1.0.0, the from_string method enables the execution of JavaScript code within the context of the server application and the exfiltration of local files.
Attack profile
How easy it is to exploit
- Attack vector
- Local
- Complexity
- Low
- Privileges needed
- None
- User interaction
- None
What an attacker can affect
- Confidentiality
- High
- Integrity
- High
- Availability
- High
Exploit likelihood
What each source reports
CVE List Score used
8.4
In JazzCore python-pdfkit 1.0.0, the from_string method enables the execution of JavaScript code within the context of the server application and the exfiltration of local files.
- Record
CVE-2025-26240- CVSS 3.1
- 8.4 High
CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - Weakness
- CWE-120
- Updated
- 2026-11-02
EUVDEUVD-2025-210273
8.4
In JazzCore python-pdfkit 1.0.0, the from_string method enables the execution of JavaScript code within the context of the server application and the exfiltration of local files.
- Record
EUVD-2025-210273- CVSS 3.1
- 8.4 High
CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
GitHub AdvisoriesGHSA-9g3x-6x24-vf9f
8.4
pdfkit: Path traversal in from_string
In JazzCore python-pdfkit 1.0.0, the from_string method enables the execution of JavaScript code within the context of the server application and the exfiltration of local files.
- Record
GHSA-9g3x-6x24-vf9f- CVSS 3.1
- 8.4 High
CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - Weakness
- CWE-22, CWE-120
- Updated
- 2026-11-02
NVD
8.4
In JazzCore python-pdfkit 1.0.0, the from_string method enables the execution of JavaScript code within the context of the server application and the exfiltration of local files.
- Record
CVE-2025-26240- CVSS 3.1
- 8.4 High
CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - Weakness
- CWE-120
- Updated
- 2026-11-02
OSVDEBIAN-CVE-2025-26240
8.4
In JazzCore python-pdfkit 1.0.0, the from_string method enables the execution of JavaScript code within the context of the server application and the exfiltration of local files.
- Record
DEBIAN-CVE-2025-26240- CVSS 3.1
- 8.4 High
CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
OSVGHSA-9g3x-6x24-vf9f
8.4
pdfkit: Path traversal in from_string
In JazzCore python-pdfkit 1.0.0, the from_string method enables the execution of JavaScript code within the context of the server application and the exfiltration of local files.
- Record
GHSA-9g3x-6x24-vf9f- CVSS 3.1
- 8.4 High
CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - Weakness
- CWE-120, CWE-22
- Updated
- 2026-11-02
OSVPYSEC-2026-2860
8.4
pdfkit: Path traversal in from_string
In JazzCore python-pdfkit 1.0.0, the from_string method enables the execution of JavaScript code within the context of the server application and the exfiltration of local files.
- Record
PYSEC-2026-2860- CVSS 3.1
- 8.4 High
CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
OSVUBUNTU-CVE-2025-26240
8.4
In JazzCore python-pdfkit 1.0.0, the from_string method enables the execution of JavaScript code within the context of the server application and the exfiltration of local files.
- Record
UBUNTU-CVE-2025-26240- CVSS 3.1
- 8.4 High
CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
OSVCLSA-2026-1772496734 No score
TuxCare security update for pdfkit (1 CVE)
TuxCare rebuilt pdfkit to address 1 CVE. Fixed in 0.6.1.post1+tuxcare.
- Record
CLSA-2026-1772496734- Updated
- 2026-11-02
Affected packages
| Package | Affected | Fixed |
|---|---|---|
pdfkitPyPI |
through 1.0.0 | None known |
pdfkitTuxCare:PyPI |
0.6.1 up to 0.6.1.post1+tuxcare | 0.6.1.post1+tuxcare |
pdfkitDebian:12 |
All versions, plus listed versions 1.0.0-21.0.0-31.0.0-41.0.0-5 |
None known |
pdfkitPyPI |
through 1.0.0, plus listed versions 0.2.30.2.40.3.00.4.00.4.10.5.00.6.00.6.1 |
None known |
pdfkitUbuntu:18.04:LTS |
All versions, plus listed versions 0.5.0-1 |
None known |
pdfkitUbuntu:20.04:LTS |
All versions, plus listed versions 0.6.1-2 |
None known |
pdfkitUbuntu:22.04:LTS |
All versions, plus listed versions 0.6.1-21.0.0-1 |
None known |
pdfkitUbuntu:24.04:LTS |
All versions, plus listed versions 1.0.0-21.0.0-31.0.0-4 |
None known |
Public exploits
Links only. Every CVE stores no exploit code.
| Source | Link | Date |
|---|---|---|
| PoC in GitHub | Habuon/CVE-2025-26240 | 2025-03-12 |
History
| Recorded | Changed | Sources |
|---|---|---|
| first indexed | CVE List, EUVD, GitHub Advisories, NVD, OSV, PoC in GitHub |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2025-26240 is a high vulnerability (CVSS 8.4) in pdfkit, published June 17, 2026. Public exploit code exists. EPSS puts the chance of exploitation in the next 30 days at 0.39%, the 33rd percentile. Fixed in pdfkit 0.6.1.post1+tuxcare.
References
habuon.github.io/2025/03/12/pdfkit-vulnerability-%28CVE-2025-26240%29.html
csirt.gov.sk/the-python-pdfkit-library-vulnerability.html
nvd.nist.gov/vuln/detail/CVE-2025-26240
github.com/advisories/GHSA-9g3x-6x24-vf9f
security-tracker.debian.org/tracker/CVE-2025-26240
github.com/JazzCore/python-pdfkit
pypi.org/project/pdfkit
ubuntu.com/security/CVE-2025-26240
cve.org/CVERecord?id=CVE-2025-26240