Skip to content
OpenAdvisories
High GHSA-5p98-wpc9-g498

Server-Side Request Forgery in html-pdf-chrome

Published Sep 4, 2020 · Updated Jun 22, 2022 · Assigned by GHSA

Description

## Recommendation
This package is working as intended. A [Security](https://github.com/westy92/html-pdf-chrome#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.

Affected packages

EcosystemPackageAffectedFixedRecord
npm html-pdf-chrome < 0.6.1 0.6.1 GHSA-5p98-wpc9-g498

References