Skip to main content

pdfmake CVE-2025-11362

HIGH
Allocation of Resources Without Limits or Throttling (CWE-770)
2025-10-07 report@snyk.io
8.7
CVSS 4.0 · Vendor: snyk
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Identify application using pdfmake 0.3.0-beta
  2. Delivery
    Craft document definition embedding redirect-loop URL
  3. Exploit
    Submit to PDF rendering endpoint
  4. Execution
    URLResolver follows redirects recursively without limit
  5. Persist
    Process exhausts stack or file descriptors
  6. Impact
    Application 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.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.3% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

npm pdfmake fix: 0.3.0-beta.17

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

Vendor (snyk) PRIMARY 8.7 HIGH
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
vuln.today AI 7.5 HIGH

Network-reachable with no authentication if user-controlled URLs reach the renderer; impact is pure availability denial with no confidentiality or integrity effect.

3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
4.0 AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (snyk).

CVSS VectorVendor: snyk

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
None
Vulnerable system: Availability
High
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

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

Why It Matters

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.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.3%
Top 74% exploitable
Prevalence
Low
beta-track npm library, limited production adoption
Data Quality
5 sources
Confidence: Medium

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.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.3%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
Yes
Human Impact
High

Priority Score

44
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +44
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.

Affected Products (CPE)CVE.org

cpe:2.3:a:pdfmake:pdfmake:0.3.0:beta1:*:*:*:*:*:*
cpe:2.3:a:pdfmake:pdfmake:0.3.0:beta10:*:*:*:*:*:*
cpe:2.3:a:pdfmake:pdfmake:0.3.0:beta11:*:*:*:*:*:*
cpe:2.3:a:pdfmake:pdfmake:0.3.0:beta12:*:*:*:*:*:*
cpe:2.3:a:pdfmake:pdfmake:0.3.0:beta13:*:*:*:*:*:*
cpe:2.3:a:pdfmake:pdfmake:0.3.0:beta14:*:*:*:*:*:*
cpe:2.3:a:pdfmake:pdfmake:0.3.0:beta15:*:*:*:*:*:*
cpe:2.3:a:pdfmake:pdfmake:0.3.0:beta16:*:*:*:*:*:*
cpe:2.3:a:pdfmake:pdfmake:0.3.0:beta2:*:*:*:*:*:*
cpe:2.3:a:pdfmake:pdfmake:0.3.0:beta3:*:*:*:*:*:*
cpe:2.3:a:pdfmake:pdfmake:0.3.0:beta4:*:*:*:*:*:*
cpe:2.3:a:pdfmake:pdfmake:0.3.0:beta5:*:*:*:*:*:*
cpe:2.3:a:pdfmake:pdfmake:0.3.0:beta6:*:*:*:*:*:*
cpe:2.3:a:pdfmake:pdfmake:0.3.0:beta7:*:*:*:*:*:*
cpe:2.3:a:pdfmake:pdfmake:0.3.0:beta8:*:*:*:*:*:*
cpe:2.3:a:pdfmake:pdfmake:0.3.0:beta9:*:*:*:*:*:*

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy