CVE-2025-26240: In JazzCore python-pdfkit 1.0.0, the from_string method enables the execution of JavaScript code within the...
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.
Security readout for executives and security teams
Plain-English summary
CVE-2025-26240 concerns JazzCore python-pdfkit 1.0.0. The reported issue says PDF generation from a string can execute JavaScript in the server application's context and expose local files. For leadership, the concern is unauthorized data access or server compromise where PDF generation handles attacker-controlled content.
Executive priority
Prioritize this as high where PDF generation processes user-controlled content or runs with access to sensitive files. If python-pdfkit is absent, or from_string is only used with trusted internal content, urgency drops after verification.
Technical view
The source bundle describes python-pdfkit 1.0.0 from_string as allowing JavaScript execution within the server application context and local file exfiltration. The CVSS 3.1 score is 8.4 high with confidentiality, integrity, and availability impacts. Affected CPE/vendor metadata is incomplete, so validation must focus on actual dependency and code usage.
Likely exposure
Exposure is most likely in Python applications using JazzCore python-pdfkit 1.0.0, especially where pdfkit.from_string processes untrusted or user-influenced HTML. The affected-product fields are listed as n/a, so inventory confirmation is required.
Exploitation context
The bundle does not show CISA KEV listing or cite observed active exploitation. Risk depends on whether an attacker can influence HTML passed to from_string and whether the PDF worker can read local files or make outbound requests.
Researcher notes
The CVE record gives high impact but incomplete affected-product metadata. The CWE listed is CWE-120, which appears unusual for the described JavaScript/file-exfiltration behavior; rely on the vulnerability description and referenced advisories for triage.
Mitigation direction
Inventory python-pdfkit versions across applications and build artifacts.
Identify services using pdfkit.from_string with user-controlled or external HTML.
Check project or vendor guidance for patched versions or safe configuration.
Avoid processing untrusted HTML through affected PDF generation paths until assessed.
Restrict PDF worker filesystem access and outbound network permissions.
Treat exposed secrets or readable files as at risk if vulnerable paths existed.
Validation and detection
Review lockfiles, SBOMs, and runtime environments for python-pdfkit 1.0.0.
Search application code for pdfkit.from_string and trace input sources.
Confirm whether PDF generation accepts user-supplied HTML, templates, or rich text.
Review worker permissions for local file access and network egress.
Compare current dependency state against CVE and vendor guidance.
Document compensating controls if immediate upgrade guidance is unavailable.
Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.
Potential ATT&CK relevance
Conservative CVE-to-ATT&CK context
These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.
ATT&CK lookup starting points
Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.
cwe · low confidence lookup
CWE-120: Exact CWE lookup
Use the exact CWE identifier as the starting point before reviewing related ATT&CK behavior. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.
These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.
1CVSS vectors
3Timeline events
1ADP providers
3Source links
SSVC decision data
CISA-ADPCISA Coordinator
Timestamp
Version
2.0.3
Exploitation: pocAutomatable: noTechnical Impact: total
CVSS vector scores
1 official score
We collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.
CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.
CWE-120 · source CWE mapping
Buffer Copy without Checking Size of Input ('Classic Buffer Overflow')
Buffer Copy without Checking Size of Input ('Classic Buffer Overflow') represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.