GHSA-x4w5-r546-x9qh

Suggest an improvement
Source
https://github.com/advisories/GHSA-x4w5-r546-x9qh
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2019/10/GHSA-x4w5-r546-x9qh/GHSA-x4w5-r546-x9qh.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-x4w5-r546-x9qh
Aliases
  • CVE-2019-15138
Published
2019-10-11T18:40:38Z
Modified
2023-11-08T04:01:12.699822Z
Severity
  • 7.5 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N CVSS Calculator
Summary
Arbitrary File Read in html-pdf
Details

All versions of html-pdf are vulnerable to Arbitrary File Read. The package fails to sanitize the HTML input, allowing attackers to exfiltrate server files by supplying malicious HTML code. XHR requests in the HTML code are executed by the server. Input with an XHR request such as request.open("GET","file:///etc/passwd") will result in a PDF document with the contents of /etc/passwd.

Recommendation

No fix is currently available. There is a mitigation available in the provided reference.

Database specific
{
    "cwe_ids": [
        "CWE-200",
        "CWE-668",
        "CWE-73",
        "CWE-79"
    ],
    "github_reviewed": true,
    "github_reviewed_at": "2019-09-25T12:39:43Z",
    "nvd_published_at": "2019-09-20T20:15:00Z",
    "severity": "HIGH"
}
References

Affected packages

npm / html-pdf

Package

Affected ranges

Type
SEMVER
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
3.0.1

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2019/10/GHSA-x4w5-r546-x9qh/GHSA-x4w5-r546-x9qh.json"