Skip to content

Commit

Permalink
Vulnerability fix CVE-2022-46161
Browse files Browse the repository at this point in the history
Co-authored-by: Igorescento Petrarca <[email protected]>
  • Loading branch information
2 people authored and liborm85 committed Dec 17, 2022
1 parent 0f04a54 commit af933ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dev-playground/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ function createPdfBinary(pdfDoc, callback) {
}

app.post('/pdf', function (req, res) {
eval(req.body.content);
const dd = new Function(req.body.content + '; return dd;')();

createPdfBinary(dd, function (binary) {
res.contentType('application/pdf');
Expand Down

0 comments on commit af933ae

Please sign in to comment.