# GHSA-5p98-wpc9-g498: Server-Side Request Forgery in html-pdf-chrome

- Severity: High (rating, scored by GitHub)
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2020-09-04T15:21:32.000Z
- Modified: 2022-06-22T19:28:32.000Z
- Weaknesses: CWE-918

## 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.

(As written by GitHub Advisory Database.)

## Affected

- html-pdf-chrome (npm): before 0.6.1

## References

- <https://github.com/westy92/html-pdf-chrome/issues/249> (web)
- <https://github.com/westy92/html-pdf-chrome> (package)
- <https://www.npmjs.com/advisories/1339> (web)

## Sources

- GitHub Advisory Database: [GHSA-5p98-wpc9-g498](https://github.com/advisories/GHSA-5p98-wpc9-g498), CC-BY-4.0, modified 2022-06-22

---

Page: https://cve.day/GHSA-5p98-wpc9-g498 · Whole record: https://cve.day/GHSA-5p98-wpc9-g498.json · Rebuilt by cve.day 2026-11-25T22:56:44.224Z
