JavaScript execution via expression sandbox escape
Published Jul 10, 2025 · Updated Jul 10, 2025
Code injection in pdfme 5.2.0 through 5.4.0 allows remote attackers to execute JavaScript through a crafted PDF template. The evaluator exposes the Function constructor through Object.getOwnPropertyDescriptor and prototype access, while Object.assign can invoke inherited accessor methods to modify object prototypes. Exploitation requires an application to evaluate attacker-controlled template expressions and user interaction; successful payloads run in the application's JavaScript context, enabling script execution, cookie or token access, and application-behavior changes.
Summary
What happened
Code injection in pdfme 5.2.0 through 5.4.0 allows remote attackers to execute JavaScript through a crafted PDF template. The evaluator exposes the Function constructor through Object.getOwnPropertyDescriptor and prototype access, while Object.assign can invoke inherited accessor methods to modify object prototypes. Exploitation requires an application to evaluate attacker-controlled template expressions and user interaction; successful payloads run in the application's JavaScript context, enabling script execution, cookie or token access, and application-behavior changes.
The record
- CVE
- CVE-2025-53626
- Published
- Jul 10, 2025
- Updated
- Jul 10, 2025
- Vendor
- pdfme
- Product
- pdfme
- Classifications
- CWE-1321, CWE-94, CWE-79, T1203, T1059.007
- Attack vector
- network
- Privileges
- unauthenticated
Timeline
How it unfolded
- Jul 10, 2025CVE publishedPublication date reported by the CVE source.
- Jul 10, 2025Record updatedLatest update available in the CVE record.
Exploitability
Present is not the same as exploitable
Compare your product and version with the public record. A matching version still requires validation against your environment.
Is a vulnerable build present?
Compare these published version ranges with your installed build and any vendor patches.
- Affected versionversion=>= 5.2.0, < 5.4.1
What conditions does exploitation require?
What is affected?
Published CVSS scores
CVSS describes severity. EPSS estimates exploitation probability.
Attacks
What attackers are doing with it
Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.
Weakness, pattern, technique
Public exploit references
- Upstream crafted-template sandbox escape proof of conceptproof of concept · demonstrated
Labels summarize the accepted research assessment. They do not indicate a test against your environment.
Technologies
Your stack
See the directory against your own environment.
Your stack
Check the software in your environment
Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.
Book a demo