Advisory

GHSA-5p98-wpc9-g498

Also known as: None

Summary

Server-Side Request Forgery in html-pdf-chrome

Details

Recommendation
This package is working as intended. A Security section has been added since v0.6.1 to detail proper usage of this library. Npm has revoked their advisory altogether.

Original Advisory
All versions of html-pdf-chrome are vulnerable to Server-Side Request Forgery (SSRF). The package executes HTTP requests if the parsed HTML contains external references to resources, such as <iframe src="http://localhost" height="800px" width="800px"></iframe>. This allows attackers to access resources through HTTP that are accessible to the server, including private resources in the hosting environment.

Severity

High Basis: The source's own band: HIGH

Dates

Published
2020-09-04 15:21 UTC
Modified
2022-06-22 19:28 UTC

Affected packages and fixes

html-pdf-chrome

npm · All systems

Affected

  • introduced 0, fixed 0.6.1 (semver)

Fixed versions

0.6.1

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences