Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
ReconIdentify template submission endpoint
-
DeliveryCraft template with internal IMDS URL as basePdf
-
ExploitSubmit template to SSR application
-
InstallgetB64BasePdf passes URL to fetch() without validation
-
C2Server requests internal endpoint (IMDS/internal API)
-
ExecuteResponse returned as base64 PDF
-
ImpactExfiltrate 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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAI
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
Affected Packages
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
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
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.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
Lifecycle Timeline
2DescriptionCVE.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.
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
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
Server-Side Request Forgery exploits applications that fetch remote resources based on user-supplied URLs.
amoyjs amoy common v1.0.10 was discovered to contain a prototype pollution via the function extend. Rated high severity
XMLReader.php in PHPOffice Common before 0.2.9 allows XXE. Rated critical severity (CVSS 9.8), this vulnerability is rem
Server-side request forgery in @pdfme/common (npm) from 5.5.10 before 6.2.6 allows an attacker who controls a template's
Alpine Linux: buildah fixed in 1.37.4-r0
Doctrine Annotations before 1.2.7, Cache before 1.3.2 and 1.4.x before 1.4.2, Common before 2.4.3 and 2.5.x before 2.5.1
amoyjs amoy common v1.0.10 was discovered to contain a prototype pollution via the function setValue. Rated high severit
Server-side request forgery protection bypass in ToolJet releases prior to 3.21.96-LTS allows users who can execute data
Common is a package of common modules that can be accessed by NIMBLE services. Rated medium severity (CVSS 6.5), this vu
EUVD-2026-68401
GHSA-4jj6-4ggm-xjcj
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB