{"id":"GHSA-5p98-wpc9-g498","aliases":["GHSA-5p98-wpc9-g498"],"related":[],"kind":"vulnerability","state":"published","title":"Server-Side Request Forgery in html-pdf-chrome","summary":"## Recommendation\nThis 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.\n\n## Original Advisory\nAll 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.","summaryFormat":"markdown","summarySource":"ghsa","descriptions":[{"lang":"en","text":"## Recommendation\nThis 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.\n\n## Original Advisory\nAll 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.","format":"markdown","source":"ghsa"}],"published":"2020-09-04T15:21:32.000Z","modified":"2022-06-22T19:28:32.000Z","severity":{"scorer":"GitHub","scheme":"rating","rating":"HIGH"},"severities":[{"scorer":"GitHub","scheme":"rating","rating":"HIGH"}],"cwes":["CWE-918"],"affected":[{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"0.6.1"}],"ecosystem":"npm","package":"html-pdf-chrome","purl":"pkg:npm/html-pdf-chrome","source":"ghsa"}],"references":[{"url":"https://github.com/westy92/html-pdf-chrome/issues/249","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/westy92/html-pdf-chrome","tags":["package"],"sources":["ghsa"]},{"url":"https://www.npmjs.com/advisories/1339","tags":["web"],"sources":["ghsa"]}],"credits":[],"sources":[{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-5p98-wpc9-g498","url":"https://github.com/advisories/GHSA-5p98-wpc9-g498","licence":"CC-BY-4.0","modified":"2022-06-22T19:28:32.000Z"}],"updatedAt":"2026-11-25T22:56:44.224Z"}