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.
Affected software
Click a technology to see all vulnerabilities affecting it.
| Platform | Package | Vulnerable versions | Fixed in |
|---|---|---|---|
| Python (PyPI) | pdfkit | <= 1.0.0 | no fix |
References
- https://nvd.nist.gov/vuln/detail/CVE-2025-26240
- https://github.com/JazzCore/python-pdfkit
- https://habuon.github.io/2025/03/12/pdfkit-vulnerability-%28CVE-2025-26240%29.html
- https://www.csirt.gov.sk/the-python-pdfkit-library-vulnerability.html
- https://pypi.org/project/pdfkit
- https://github.com/advisories/GHSA-9g3x-6x24-vf9f
- CVSS vector
CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H- Weakness (CWE)
CWE-120, CWE-22- Platform
- Python (PyPI)
- Package
pdfkit- Disclosed
- 17.06.2026
- Updated
- 11.10.2026 14:18
Sources and licenses
OSV / GitHub Advisory Database - PYSEC-2026-2860 - PyPA Advisory Database; CC BY 4.0
OSV / GitHub Advisory Database - GHSA-9g3x-6x24-vf9f - CC BY 4.0
Vulnerability history: pdfkit
All published vulnerabilities of this package (Python (PyPI)), newest first. Shows whether this is a one-off slip or a package that needs watching.
This is the only known vulnerability of this package.
Know which vulnerabilities affect your application
With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.