Vulnerability library
Security checkMarch 20, 2026

PDFME has SSRF via Unvalidated URL Fetch in `getB64BasePdf` When `basePdf` Is Attacker-Controlled

Understand the exposure, see the recommended fix, and check whether your own website has related weaknesses.

Medium severitynpm@pdfme/common

Check your website

Find this and other vulnerabilities with a free scan.

Your scan runs on your computer. No account required.

Description

The getB64BasePdf function in @pdfme/common fetches arbitrary URLs via fetch() without any validation when basePdf is a non-data-URI string and window is defined. An attacker who can control the basePdf field of a template (e.g.

Recommendation

Update the @pdfme/common package to the latest compatible version. Followings are version details:

  • Affected version(s): <= 5.5.9
  • Patched version(s): 5.5.10

References

Could your website be exposed too?

SmartScanner can check your website for PDFME has SSRF via Unvalidated URL Fetch in `getB64BasePdf` When `basePdf` Is Attacker-Controlled and gives you actionable findings to investigate.

Start a free scan

Related Issues

See something that needs correcting? Let us knowUpdated March 20, 2026