{"id":"PYSEC-2026-2860","summary":"pdfkit: Path traversal in from_string","details":"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.","aliases":["CVE-2025-26240","GHSA-9g3x-6x24-vf9f"],"modified":"2026-07-13T16:32:54.747129708Z","published":"2026-07-13T15:46:20.237675Z","references":[{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-26240"},{"type":"PACKAGE","url":"https://github.com/JazzCore/python-pdfkit"},{"type":"WEB","url":"https://habuon.github.io/2025/03/12/pdfkit-vulnerability-%28CVE-2025-26240%29.html"},{"type":"WEB","url":"https://www.csirt.gov.sk/the-python-pdfkit-library-vulnerability.html"},{"type":"PACKAGE","url":"https://pypi.org/project/pdfkit"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-9g3x-6x24-vf9f"}],"affected":[{"package":{"name":"pdfkit","ecosystem":"PyPI","purl":"pkg:pypi/pdfkit"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"last_affected":"1.0.0"}]}],"versions":["0.2.3","0.2.4","0.3.0","0.4.0","0.4.1","0.5.0","0.6.0","0.6.1","1.0.0"],"database_specific":{"source":"https://github.com/pypa/advisory-database/blob/main/vulns/pdfkit/PYSEC-2026-2860.yaml"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"}]}