CVE-2025-26240 Details
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.
A vulnerability in JazzCore python-pdfkit version 1.0.0 allows for local file inclusion and execution of JavaScript within the server application context. This issue arises in the 'from_string' method, which parses user-supplied HTML and inadvertently exposes command-line options to 'wkhtmltopdf', a tool that can be exploited for malicious purposes. The vulnerability enables access to sensitive files, such as '/etc/passwd', and could be used to execute unauthorized HTTP requests via server-side request forgery.
Developers are advised to avoid using the 'from_string' method and instead opt for the 'from_file' method, which does not parse meta tags and therefore mitigates the vulnerability.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Jun 17, 2026CISA-ADP
Assessed Jun 17, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://habuon.github.io/2025/03/12/pdfkit-vulnerability-%28CVE-2025-26240%29.html | CISA-ADP | ExploitTechnical Analysis |
| https://habuon.github.io/2025/03/12/pdfkit-vulnerability-%28CVE-2025-26240%29.html | [email protected] | ExploitTechnical Analysis |
| https://www.csirt.gov.sk/the-python-pdfkit-library-vulnerability.html | [email protected] | AdvisoryExploitTechnical Analysis |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-120 | Buffer Copy without Checking Size of Input ('Classic Buffer Overflow') | CISA-ADP |
Affected Products
| Product | Versions |
|---|---|
| JazzCore python-pdfkit | 1.0.0 (semver) |
CPE
Remediation
| |
Change History
2 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Jun 17, 2026 | New CVE Received | [email protected] |
Volerion