---
id: CVE-2025-26240
title: 'pdfkit: Path traversal in from_string'
summary: 'pdfkit: Path traversal in from_string'
severity: high
cvss: 8.4
cwe:
  - CWE-22
  - CWE-120
vendor: pdfkit
product: pdfkit
ecosystem: pip
affected:
  - pdfkit <= 1.0.0
published: '2026-06-17'
updated: '2026-06-18'
source: GHSA
sourceUrl: 'https://github.com/advisories/GHSA-9g3x-6x24-vf9f'
references:
  - url: 'https://nvd.nist.gov/vuln/detail/CVE-2025-26240'
  - url: >-
      https://habuon.github.io/2025/03/12/pdfkit-vulnerability-%28CVE-2025-26240%29.html
  - url: 'https://www.csirt.gov.sk/the-python-pdfkit-library-vulnerability.html'
  - url: 'https://github.com/advisories/GHSA-9g3x-6x24-vf9f'
tags:
  - ghsa
  - pip
  - exploit-available
epss: 0.00392
epssPercentile: 0.30625
ingestedAt: '2026-06-29T14:31:47.201Z'
exploits:
  github: 1
  githubRepos:
    - 'https://github.com/Habuon/CVE-2025-26240'
  checkedAt: '2026-09-26T09:05:35.750Z'
exploitAvailable: true
---

## Overview

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 packages

- `pdfkit <= 1.0.0`

## Remediation

Refer to the advisory for the patched release.
