GHSA-5p98-wpc9-g498: Server-Side Request Forgery in html-pdf-chrome
N/A
CVSS Score
Basic Information
CVE ID
-
GHSA ID
EPSS Score
-
CWE
Published
9/4/2020
Updated
1/11/2023
KEV Status
No
Technology
JavaScript
Technical Details
CVSS Vector
-
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
html-pdf-chrome | npm | < 0.6.1 | 0.6.1 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from the library's core functionality of rendering HTML to PDF using Chrome. The HtmlPdf.create
function (or equivalent entry point) is inherently vulnerable because it delegates resource fetching to Chrome without network restrictions. While no specific code diff is provided, the advisory explicitly states that processing HTML with external references causes SSRF, which aligns with the library's primary conversion workflow. The function responsible for initiating the PDF generation process would inherently execute these requests unless explicitly hardened (e.g., via network restrictions added in documentation rather than code changes).