# CVE-2025-26240: pdfkit: Path traversal in from_string

- Severity: High 8.4 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.39%, higher than 35% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-06-17T00:00:00.000Z
- Modified: 2026-10-12T22:10:00.247Z
- Also known as: GHSA-9g3x-6x24-vf9f, PYSEC-2026-2860
- Weaknesses: CWE-22, CWE-120
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: mitre

## Description

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.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- pdfkit (PyPI): up to 1.0.0

## Every score

- CISA-ADP: 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`
- GitHub: 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`
- PyPA Advisory Database: 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`

## References

- <https://habuon.github.io/2025/03/12/pdfkit-vulnerability-%28CVE-2025-26240%29.html> (exploit, web)
- <https://www.csirt.gov.sk/the-python-pdfkit-library-vulnerability.html> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2025-26240> (advisory)
- <https://github.com/JazzCore/python-pdfkit> (package)
- <https://pypi.org/project/pdfkit> (package)
- <https://github.com/advisories/GHSA-9g3x-6x24-vf9f> (advisory)

## Sources

- CVE List: [CVE-2025-26240](https://www.cve.org/CVERecord?id=CVE-2025-26240), CVE Terms of Use, modified 2026-06-17
- GitHub Advisory Database: [GHSA-9g3x-6x24-vf9f](https://github.com/advisories/GHSA-9g3x-6x24-vf9f), CC-BY-4.0, modified 2026-07-13
- NVD: [CVE-2025-26240](https://nvd.nist.gov/vuln/detail/CVE-2025-26240), Public domain, modified 2026-10-12
- PyPA Advisory Database: [PYSEC-2026-2860](https://osv.dev/vulnerability/PYSEC-2026-2860), CC-BY-4.0, modified 2026-07-13

---

Page: https://cve.day/CVE-2025-26240 · Whole record: https://cve.day/CVE-2025-26240.json · Rebuilt by cve.day 2026-11-25T22:59:12.325Z
