{"id":"CVE-2019-15138","aliases":["CVE-2019-15138","GHSA-x4w5-r546-x9qh"],"related":[],"kind":"vulnerability","state":"published","title":"Arbitrary File Read in html-pdf","summary":"The html-pdf package 2.2.0 for Node.js has an arbitrary file read vulnerability via an HTML file that uses XMLHttpRequest to access a file:/// URL.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"The html-pdf package 2.2.0 for Node.js has an arbitrary file read vulnerability via an HTML file that uses XMLHttpRequest to access a file:/// URL.","source":"cvelist"},{"lang":"en","text":"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`.\n\n\n## Recommendation\n\nNo fix is currently available. There is a mitigation available in the provided reference.","format":"markdown","source":"ghsa"},{"lang":"es","text":"El paquete html-pdf versión 2.2.0 para Node.js, presenta una vulnerabilidad de lectura de archivos arbitraria por medio de un archivo HTML que utiliza XMLHttpRequest para acceder a una URL file: ///.","source":"nvd"}],"published":"2019-09-20T19:13:13.000Z","modified":"2026-06-17T02:19:46.663Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","score":7.5,"rating":"HIGH"},"severities":[{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","score":7.5,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","score":7.5,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:L/Au:N/C:P/I:N/A:N","score":5,"rating":"MEDIUM"}],"cwes":["CWE-73","CWE-79","CWE-200","CWE-668"],"affected":[{"ranges":[{"version":"n/a","status":"affected"}],"source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"3.0.1"}],"ecosystem":"npm","package":"html-pdf","purl":"pkg:npm/html-pdf","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"3.0.1"}],"vendor":"html-pdf_project","product":"html-pdf","cpe":"cpe:2.3:a:html-pdf_project:html-pdf:*:*:*:*:*:node.js:*:*","source":"nvd"}],"references":[{"url":"https://www.npmjs.com/advisories/1095","tags":["exploit","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://security.netapp.com/advisory/ntap-20191017-0005/","tags":["third-party-advisory","x-refsource-confirm","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2019-15138","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/marcbachmann/node-html-pdf/issues/530","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/marcbachmann/node-html-pdf/issues/530#issuecomment-535045123","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/marcbachmann/node-html-pdf/commit/c12d6977778014139183c9f8da7579fd7ac65362","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/marcbachmann/node-html-pdf","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/marcbachmann/node-html-pdf/releases/tag/v3.0.1","tags":["web"],"sources":["ghsa"]},{"url":"https://security.netapp.com/advisory/ntap-20191017-0005","tags":["web"],"sources":["ghsa"]}],"credits":[],"assigner":"mitre","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2019-15138","url":"https://www.cve.org/CVERecord?id=CVE-2019-15138","licence":"CVE Terms of Use","modified":"2024-08-05T00:34:53.294Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-x4w5-r546-x9qh","url":"https://github.com/advisories/GHSA-x4w5-r546-x9qh","licence":"CC-BY-4.0","modified":"2023-11-08T04:01:12.699Z"},{"source":"nvd","name":"NVD","id":"CVE-2019-15138","url":"https://nvd.nist.gov/vuln/detail/CVE-2019-15138","licence":"Public domain","modified":"2026-06-17T02:19:46.663Z"}],"updatedAt":"2026-11-25T22:57:47.057Z","epss":{"score":0.01832,"percentile":0.79504,"date":"2026-12-01T12:00:22.000Z"}}