Skip to main content

@pdfme/common EUVDEUVD-2026-68401

| CVE-2026-82866 HIGH
Server-Side Request Forgery (SSRF) (CWE-918)
2026-08-31 VulnCheck GHSA-4jj6-4ggm-xjcj
8.9
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

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

  1. Recon
    Identify template submission endpoint
  2. Delivery
    Craft template with internal IMDS URL as basePdf
  3. Exploit
    Submit template to SSR application
  4. Install
    getB64BasePdf passes URL to fetch() without validation
  5. C2
    Server requests internal endpoint (IMDS/internal API)
  6. Execute
    Response returned as base64 PDF
  7. Impact
    Exfiltrate credentials or internal data

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V4 - API and Web Service URL allowlisting, SSRF prevention
MITRE ATT&CK

2 techniques across 2 tactics: Initial Access, Credential Access

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires two concurrent conditions: first, the attacker must be able to supply or influence the basePdf field of a pdfme template - this applies to any web application that accepts user-provided templates or exposes template customization without sanitizing the basePdf property. Second, the application must execute @pdfme/common in a runtime context where typeof window !== 'undefined' evaluates to true; this condition is satisfied in SSR frameworks such as Next.js, Nuxt.js with jsdom, and Cloudflare Workers where window is globally polyfilled. The vulnerability is NOT exploitable in a standard Node.js server environment where window is not defined, nor in pure client-side browser contexts where CORS restrictions would block cross-origin internal requests. Authentication is not required by the library itself - the limiting factor is whether the application layer enforces authentication before accepting templates. Non-default configuration is not required; any pdfme deployment in an affected SSR framework with user-controlled templates is vulnerable by default.

Impact

The CVSS 4.0 score of 8.9 with AC:H and AT:P reflects genuine complexity requirements: exploitation requires both attacker control over the basePdf template field and an SSR execution context where window is defined and polyfilled. The PR:N rating is appropriate because many PDF generation services accept user-supplied templates without requiring authentication on that specific input path. The SC:H (subsequent system confidentiality: high) is the most consequential metric - it captures the ability to silently reach cloud IMDS endpoints, internal microservices, or administrative APIs that the server can access but external clients cannot. No EPSS data was provided in the input, and no CISA KEV listing exists, so widespread active exploitation is unconfirmed. However, the GitHub advisory (GHSA-pgx6-7jcq-2qff) includes a complete proof-of-concept, substantially lowering the bar for exploitation. Any organization operating user-facing SSR PDF generation workflows - regardless of scale - should treat this as a high-priority remediation given the completeness of the published exploit and the severity of potential IMDS credential theft.

Exploit ScenarioDerived

An attacker submits a crafted pdfme template to a Next.js API route that accepts user-provided templates, setting basePdf to 'http://169.254.169.254/latest/meta-data/iam/security-credentials/' (the AWS IMDS endpoint for IAM role credentials). The server's getB64BasePdf function, running in an SSR context where window is polyfilled, fetches the URL without restriction and returns the response body encoded as a base64 PDF, directly exposing temporary AWS access keys and secrets. A working proof-of-concept demonstrating this exact flow is published in GHSA-pgx6-7jcq-2qff.

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

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

Alert me

AnalysisAI

Server-side request forgery in @pdfme/common before 5.5.10 allows attackers who control the basePdf template field to force SSR-context servers to issue arbitrary HTTP requests to internal endpoints without any URL validation. The unvalidated fetch() call in getB64BasePdf - reachable from the generator, UI hooks, and UI helper entry points - enables exfiltration from cloud instance metadata services (e.g., AWS IMDS at 169.254.169.254), blind network reconnaissance, and lateral pivot to internal APIs. A detailed proof-of-concept is embedded in GHSA-pgx6-7jcq-2qff; no CISA KEV listing is present at time of analysis.

RemediationAI

Upgrade @pdfme/common to version 5.5.10 or later, which is the vendor-released patch per GHSA-pgx6-7jcq-2qff. Run 'npm update @pdfme/common' or pin '"@pdfme/common": ">=5.5.10"' in package.json. If immediate upgrade is not possible, apply compensating controls: restrict the basePdf field in your application layer to a strict allowlist of trusted URL prefixes (e.g., only your own CDN domain) before passing templates to pdfme, which eliminates the attack surface without requiring a library upgrade. As a network-layer mitigation, configure outbound firewall rules on the server to block access to RFC-1918 private IP ranges (10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16) and link-local addresses (169.254.0.0/16, including cloud IMDS), which prevents the most damaging SSRF payloads but does not block SSRF to external attacker-controlled hosts. If user-supplied templates are not a product requirement, disable that feature entirely - this is the most effective control and carries no operational side effects for affected deployments.

Affected VersionsENISA

common 0 <5.5.10

Affected Packages

npm @pdfme/common fix: 5.5.10
euvd common fix: 5.5.10

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 2 packages in npm, euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The vulnerable code is in packages/common/src/helper.ts:130-141 within the getB64BasePdf function. When basePdf is a string that does not begin with 'data:application/pdf;' and typeof window !== 'undefined' evaluates to true, the function passes the raw string directly to fetch() with no URL allowlisting, protocol restriction, or private IP range filtering. The Zod schema at packages/common/src/schema.ts:133-135 defines CustomPdf as z.union([z.string(), ArrayBufferSchema, Uint8ArraySchema]), accepting any string. The checkGenerateProps validator only checks Zod schema shape conformance, not semantic URL safety. CWE-918 (Server-Side Request Forgery) precisely describes this root cause: user-supplied data directly controls the destination of a server-initiated network request. The affected CPE is cpe:2.3:a:pdfme:common:*:*:*:*:*:*:*:* covering all versions before 5.5.10. The typeof window guard is the critical environmental dependency - SSR frameworks including Next.js, Nuxt.js with jsdom, and Cloudflare Workers commonly polyfill window while granting fetch unrestricted network access without browser CORS enforcement.

Know when Common 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 (VulnCheck) PRIMARY 8.9 HIGH
CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:H/VI:N/VA:N/SC:H/SI:N/SA:N
vuln.today AI 6.8 MEDIUM

Network-exploitable via template submission with no auth required; AC:H for SSR window-polyfill prerequisite; S:C and C:H for unrestricted internal endpoint access including IMDS.

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

Primary rating from Vendor (VulnCheck).

CVSS VectorVendor: VulnCheck

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

Lifecycle Timeline

2
CVE Published
Aug 31, 2026 - 10:50 cve.org
HIGH 8.9
Patch available
Aug 31, 2026 - 10:16 EUVD

DescriptionCVE.org

@pdfme/common before 5.5.10 contains a server-side request forgery vulnerability in the getB64BasePdf function that fetches arbitrary URLs without validation when basePdf is attacker-controlled. Attackers who control the basePdf template field can force servers or clients to make requests to internal endpoints, enabling metadata exfiltration, network reconnaissance, and blind request forgery attacks.

Blast Radius

ecosystem impact
† from your stack dependencies † transitive graph · vuln.today resolves 4-path depth
  • 16 npm packages depend on @pdfme/common (11 direct, 5 indirect)

Ecosystem-wide dependent count for version 5.5.10.

Technical POC Analysis

CWE-918 (SSRF).

Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.

Threat Intelligence Overview

EPSS Score
0.2%
Top 88% exploitable
Prevalence
Medium
npm PDF generation library used in web apps, not core infrastructure
Data Quality
6 sources
Confidence: High

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.2%
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
Poc
System Exposure· derived
Open
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

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

Server-Side Request Forgery exploits applications that fetch remote resources based on user-supplied URLs.

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