Vulnerabilities/

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

Severity:
Medium

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:

References

Related Issues

Tags:
npm
@pdfme/common
Anything's wrong? Let us know Last updated on March 20, 2026