ZeroHour

CVE-2026-82866

niche

Server-Side Request Forgery in @pdfme/common via attacker-controlled basePdf

CVSS 4.0
8.9 high
EPSS
<1%p12
Published
()
Modified
AI analysis

@pdfme/common versions before 5.5.10 are vulnerable to server-side request forgery (SSRF, CWE-918) in the getB64BasePdf function, which fetches the PDF referenced by the basePdf field without validating the destination URL. When an attacker can control the basePdf value in a template — for example in an application that renders user-supplied pdfme templates — the server or client performing PDF generation is forced to make arbitrary requests, including to internal network endpoints. Successful exploitation enables internal metadata exfiltration, network reconnaissance, and blind request forgery, though per the CVSS 4.0 score of 8.9 (High) it does not directly alter or disrupt the vulnerable system. Any application or service using @pdfme/common before 5.5.10 that lets untrusted users supply or influence basePdf is affected, while deployments where templates are entirely developer-defined are less exposed given the flaw's conditional exploitation requirements. No public proof-of-concept, CISA KEV listing, or in-the-wild exploitation is known, and EPSS estimates only about a 0.2% probability of exploitation in the next 30 days.

What to do: Upgrade @pdfme/common to 5.5.10 or later, including when it is pulled as a transitive dependency of other pdfme packages — audit lockfiles and rebuild after updating. Check whether your application renders templates with attacker-influenced basePdf values, and mitigate by restricting basePdf to an allowlist of trusted hosts or pre-validated PDF sources, blocking requests to internal and cloud metadata endpoints. No public proof-of-concept or in-the-wild exploitation is currently known.

Affected
pdfme (npm) @pdfme/commonAll versions before 5.5.10
Estimated exposure
nichelikely on the order of thousands to low tens of thousands of applications (no authoritative install counts published) — pdfme is a specialized open-source npm PDF-generation library typically embedded server-side in applications that render user-supplied templates, so with no published download or dependency counts in the available data, exposure is most…

Order-of-magnitude estimate by the model from install counts, market share and public scan data it knows; verify before quoting.

Description

@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.

Weakness
CWE-918
Vector
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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X

In the news

No ingested article mentions this CVE yet.