VDB
Sign up
HIGH7.5

GHSA-wp52-r2fp-4vmr

pdfmake is vulnerable to server-side request forgery (SSRF)

Quick fix

GHSA-wp52-r2fp-4vmr — pdfmake: upgrade to the fixed version with the command below.

npm install pdfmake@0.3.6

Details

Server-Side Request Forgery (SSRF) vulnerability in pdfmake versions 0.3.0-beta.2 through 0.3.5 allows a remote attacker to obtain sensitive information via the src/URLResolver.js component. The fix was released in version 0.3.6 which introduces the setUrlAccessPolicy() method allowing server operators to define URL access rules. A warning is now logged when pdfmake is used server-side without a policy configured.

Are you affected?

Enter the version of the package you're using.

Affected packages

npm/pdfmake
Introduced in: 0.3.0-beta.2Fixed in: 0.3.6
Fixnpm install pdfmake@0.3.6

References