{"id":"GHSA-5p98-wpc9-g498","aliases":[],"status":"published","title":"Server-Side Request Forgery in html-pdf-chrome","description":"## 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 `\u003ciframe src=\"http://localhost\" height=\"800px\" width=\"800px\"\u003e\u003c/iframe\u003e`. This allows attackers to access resources through HTTP that are accessible to the server, including private resources in the hosting environment.","facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-918"],"published":"2020-09-04T15:21:32Z","modified":"2023-01-11T05:05:59Z","fixes":[{"ecosystem":"npm","package":"html-pdf-chrome","fixed_in":["0.6.1"],"sources":["ghsa","osv"]}],"affected":[{"source":"ghsa","ecosystem":"npm","package":"html-pdf-chrome","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.6.1"}]}]},{"source":"osv","ecosystem":"npm","package":"html-pdf-chrome","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"0.6.1"}]}]}],"references":[{"url":"https://github.com/westy92/html-pdf-chrome/issues/249","tags":["web"]},{"url":"https://www.npmjs.com/advisories/1339","tags":["web"]},{"url":"https://github.com/advisories/GHSA-5p98-wpc9-g498"},{"url":"https://github.com/westy92/html-pdf-chrome","tags":["package"]}],"sources":{"ghsa":[{"id":"GHSA-5p98-wpc9-g498","title":"Server-Side Request Forgery in html-pdf-chrome","description":"## 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 `\u003ciframe src=\"http://localhost\" height=\"800px\" width=\"800px\"\u003e\u003c/iframe\u003e`. This allows attackers to access resources through HTTP that are accessible to the server, including private resources in the hosting environment.","status":"published","published":"2020-09-04T15:21:32Z","modified":"2023-01-11T05:05:59Z","cwes":["CWE-918"],"updated_at":"2026-11-02T14:36:12.361159Z"}],"osv":[{"id":"GHSA-5p98-wpc9-g498","title":"Server-Side Request Forgery in html-pdf-chrome","description":"## 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 `\u003ciframe src=\"http://localhost\" height=\"800px\" width=\"800px\"\u003e\u003c/iframe\u003e`. This allows attackers to access resources through HTTP that are accessible to the server, including private resources in the hosting environment.","status":"published","published":"2020-09-04T15:21:32Z","modified":"2022-06-22T19:28:32Z","cwes":["CWE-918"],"updated_at":"2026-11-02T15:46:38.553953Z"}]}}
