Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. pdfkit
  4. ›
  5. CVE-2025-26240

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

June 17, 2026 (updated June 18, 2026)

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.

References

  • github.com/advisories/GHSA-9g3x-6x24-vf9f
  • habuon.github.io/2025/03/12/pdfkit-vulnerability-%28CVE-2025-26240%29.html
  • nvd.nist.gov/vuln/detail/CVE-2025-26240
  • www.csirt.gov.sk/the-python-pdfkit-library-vulnerability.html

Code Behaviors & Features

Detect and mitigate CVE-2025-26240 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions up to 1.0.0

Solution

Unfortunately, there is no solution available yet.

Impact 8.4 HIGH

CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-120: Buffer Copy without Checking Size of Input ('Classic Buffer Overflow')
  • CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

Source file

pypi/pdfkit/CVE-2025-26240.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:16:03 +0000.