pdfmake
CVE-2025-11362
HIGH
Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessIdentify application using pdfmake 0.3.0-beta
-
DeliveryCraft document definition embedding redirect-loop URL
-
ExploitSubmit to PDF rendering endpoint
-
ExecutionURLResolver follows redirects recursively without limit
-
PersistProcess exhausts stack or file descriptors
-
ImpactApplication crashes or becomes unresponsive
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A06:2025 - Insecure Design
ASVS 5.0
V2 - Validation and Business Logic Resource allocation limits
MITRE ATT&CK
1 technique across 1 tactic: Impact The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires three concurrent conditions: (1) the application runs pdfmake 0.3.0-beta.1 through 0.3.0-beta.16 - the stable 0.2.x branch is not affected; (2) the application invokes pdfmake with a document definition that includes a remote URL for file embedding (image, font, or other asset fetched via URLResolver.js); and (3) the attacker can influence the URL value in that document definition, either directly via a user-facing API or indirectly through content injection into a document template. What limits exploitation: applications on the stable 0.2.x release track are entirely unaffected; applications that only embed local file paths (not remote URLs) in document definitions are not exploitable; and network-level egress controls blocking outbound HTTP from the rendering service prevent the redirect chain from being followed. |
| Impact | The CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:N/UI:N/VA:H) scores 8.7 and accurately reflects the attack profile: network-reachable with no authentication requirement, no special attack conditions, and high availability impact. This is consistent with the actual mechanism - any HTTP endpoint that accepts a document definition and passes URLs to pdfmake for remote asset fetching is directly exploitable. The risk is real but contextually bounded: only the 0.3.0-beta release track is affected, meaning stable 0.2.x production deployments are outside the blast radius. No EPSS data was provided; no KEV listing exists; and no public proof-of-concept code has been identified at time of analysis. The severity is genuine for applications that have adopted the beta track and expose PDF rendering to untrusted input, but the overall population at risk is narrow given the beta-only scope. |
| Exploit ScenarioDerived | An attacker submits a PDF document definition to a server-side pdfmake rendering API, embedding a remote image or font URL pointing to an attacker-controlled server configured to return an HTTP 301 redirect to itself indefinitely. The pdfmake URLResolver follows each redirect recursively without a depth limit, exhausting Node.js call stack or open file descriptors, crashing the process or rendering it unresponsive. No public exploit code has been identified, but the technique requires only a simple redirect-loop HTTP server, which any attacker can trivially construct. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Aug 06, 2026
Unbounded HTTP redirect following in pdfmake's URLResolver crashes Node.js processes when attacker-controlled URLs trigger infinite redirect chains during file embedding. Affected are all 0.3.0 beta releases from beta.1 through beta.16 on both the npm and Java WebJars distributions. No special conditions beyond reaching a pdfmake rendering endpoint that accepts user-influenced document definitions are required; no public exploit code exists and the vulnerability is not in the CISA KEV catalog, but the attack mechanism is trivially reproducible.
RemediationAI
Upgrade pdfmake to 0.3.0-beta.17 or a later release, which caps redirect chains at 30 hops in URLResolver.js via the MAX_REDIRECTS constant introduced in commit 741169634bf07730e010cd77477b6cc038e846ed. Note that a tagged npm package for 0.3.0-beta.17 is asserted by the advisory but not independently confirmed as published from the available reference data - verify availability on the npm registry before upgrading. If an immediate upgrade is not possible, apply input validation to allowlist or sanitize remote URLs before passing document definitions to pdfmake, preventing attacker-controlled redirect-loop servers from being reached. Alternatively, restrict outbound HTTP from the PDF rendering service at the network layer (firewall or egress proxy) to block connections to untrusted hosts entirely, which eliminates the redirect-follow path; this trades functionality (no remote asset embedding) for protection. For Java WebJars users, apply the equivalent version update tracked in SNYK-JAVA-ORGWEBJARSNPM-14101887.
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in npm
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
pdfmake is a client/server-side PDF generation library for Node.js (and browser environments), also distributed via WebJars for Java projects. The vulnerable component is src/URLResolver.js, which fetches remote assets - images, fonts, and other embeddable files - referenced in PDF document definitions. The fetchUrl() function recursively called itself on HTTP 3xx Location headers with no depth counter, meaning a redirect chain of arbitrary length would be followed until the process exhausted stack frames or file descriptors. This is a textbook CWE-770 (Allocation of Resources Without Limits or Throttling) flaw: the resource consumed is call-stack depth and concurrent HTTP connections. The fix in commit 741169634bf introduces a MAX_REDIRECTS constant of 30 and a redirectCount parameter, rejecting chains that exceed the cap. CPE strings confirm affected scope: cpe:2.3:a:pdfmake:pdfmake:0.3.0:beta1 through cpe:2.3:a:pdfmake:pdfmake:0.3.0:beta16.
Know when Pdfmake gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
Network-reachable with no authentication if user-controlled URLs reach the renderer; impact is pure availability denial with no confidentiality or integrity effect.
Primary rating from Vendor (snyk).
CVSS VectorVendor: snyk
DescriptionCVE.org
Versions of the package pdfmake from 0.3.0-beta.1 and before 0.3.0-beta.17 are vulnerable to Allocation of Resources Without Limits or Throttling via repeatedly redirect URL in file embedding. An attacker can cause the application to crash or become unresponsive by providing crafted input that triggers this condition.
Executive ViewAI
pdfmake, a widely-used PDF generation library for Node.js applications, contains a vulnerability that allows attackers to crash affected application servers through malicious PDF requests. An attacker can trigger service outages by exploiting how the library handles external file references in PDF documents, causing denial-of-service against any system generating PDFs from user input. Organizations using pdfmake 0.3.0 beta versions (beta.1 through beta.16) face immediate risk to service availability and business continuity.
Apply vendor patch.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.
Affected Products (CPE)CVE.org
An issue discovered in pdfmake 0.2.9 allows remote attackers to run arbitrary code via crafted POST request to the /pdf
pdfmake is an open source client/server side PDF printing in pure JavaScript. Rated critical severity (CVSS 9.8), this v
pdfmake versions 0.3.0-beta.2 through 0.3.5 contain a server-side request forgery vulnerability in the URLResolver compo
Information disclosure in pdfmake 0.3.8 through 0.3.11 lets attackers read local files that the setLocalAccessPolicy() r
pdfmake versions before 0.3.14 keep a process-wide in-memory cache of URL-fetched fonts, images, attachments and embedde
NVD
CVE.org
EPSS
GitHub
VulDB
Exploit-DB