Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. @pdfme/common
  4. ›
  5. GHSA-pgx6-7jcq-2qff

GHSA-pgx6-7jcq-2qff: PDFME has SSRF via Unvalidated URL Fetch in `getB64BasePdf` When `basePdf` Is Attacker-Controlled

March 20, 2026

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., through a web application that accepts user-supplied templates) can force the server or client to make requests to arbitrary internal or external endpoints, enabling Server-Side Request Forgery (SSRF) in SSR contexts or blind request forgery in browser contexts.

References

  • github.com/advisories/GHSA-pgx6-7jcq-2qff
  • github.com/pdfme/pdfme
  • github.com/pdfme/pdfme/security/advisories/GHSA-pgx6-7jcq-2qff

Code Behaviors & Features

Detect and mitigate GHSA-pgx6-7jcq-2qff with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 5.5.10

Fixed versions

  • 5.5.10

Solution

Upgrade to version 5.5.10 or above.

Impact 6.8 MEDIUM

CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:N/A:N

Learn more about CVSS

Weakness

  • CWE-918: Server-Side Request Forgery (SSRF)

Source file

npm/@pdfme/common/GHSA-pgx6-7jcq-2qff.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Tue, 24 Mar 2026 12:17:07 +0000.