# pdfkit: Path traversal in from_string

Advisory record · `GHSA-9g3x-6x24-vf9f`

- **Identifiers:** `GHSA-9g3x-6x24-vf9f` · `CVE-2025-26240` · `PYSEC-2026-2860`
- **State:** Confirmed
- **Severity:** CVSS 8.4 High
- **Critical:** No
- **Weakness (CWE):** [CWE-22](https://cwe.mitre.org/data/definitions/22.html) · [CWE-120](https://cwe.mitre.org/data/definitions/120.html)
- **Tags:** [Path traversal](https://agentprime.io/advisories/tag/path-traversal.md) · [Memory corruption](https://agentprime.io/advisories/tag/memory-corruption.md)
- **Published:** 17 Jun 2026
- **Updated:** 13 Jul 2026
- **Reviewed by a person:** No

Published by the GitHub Advisory Database at 17 Jun 2026, 18:35 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

## Affected packages

- `pdfkit` (PyPI): affected `<=1.0.0`; no fixed version yet

## Machine-written summary

Summary written by Claude Haiku from the source advisory. Not reviewed by a person.

> The pdfkit package is affected at version 1.0.0 and earlier, and no fixed version is listed. The source describes that the from_string method allows JavaScript to run in the server application's context and allows local files to be exfiltrated, but it gives few details on what input triggers this or what access an attacker needs. No fix is listed, so the source gives no upgrade path.

Written 6 Nov 2026.

## Not analysed yet

We haven’t published our analysis of this Advisory yet. Once a person has reviewed it, this page will say what’s vulnerable, what has to be true for your app to be affected, and how to check.

## Severity and exploitation

- 8.4 High, CVSS 3.1: `CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`, from GitHub Advisory Database

- **CISA KEV:** Not listed.
- **EPSS:** 0.0039, the 33rd percentile, on 16 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

## Timeline

- 31 Oct 2026, 15:01 UTC: First seen by agentprime
- 31 Oct 2026, 15:01 UTC: [Confirmed by OSV](https://osv.dev/vulnerability/GHSA-9g3x-6x24-vf9f)

## Sources

- [GitHub Advisory Database: GHSA-9g3x-6x24-vf9f](https://github.com/advisories/GHSA-9g3x-6x24-vf9f)
- [OSV: GHSA-9g3x-6x24-vf9f](https://osv.dev/vulnerability/GHSA-9g3x-6x24-vf9f)
- <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>

Facts on this page come from the GitHub Advisory Database (CC-BY 4.0), OSV and the other sources listed, as published. We don’t reproduce full advisory descriptions, which can contain exploit code.

## Check whether this affects you

A Match means an installed version is in the affected range above. Most don’t affect the app; agentprime hasn’t analysed this one yet.

- With the agentprime MCP server (<https://api.agentprime.io/mcp>), ask your agent to check the project: `check_lockfile` sends a lockfile, `check_packages` a list of installed packages, and both return the Matches and the upgrades that clear them. `get_advisory` returns this record. Setup: <https://agentprime.io/mcp.md>
- In a browser: <https://agentprime.io/check/> reads your lockfile in the browser, never uploading it.
- Whether it touches your code, with file and line: the Claude Code plugin, <https://agentprime.io/plugin.md>
- As JSON: <https://api.agentprime.io/v1/advisories/GHSA-9g3x-6x24-vf9f>, or `POST https://api.agentprime.io/v1/match` with your packages (<https://agentprime.io/api.md>)

---

The web page: <https://agentprime.io/advisories/GHSA-9g3x-6x24-vf9f/>. Everything for agents: <https://agentprime.io/llms.txt>.
