Skip to content

Commit

Permalink
Set isEvalSupported to false to prevent arbitrary code execution.
Browse files Browse the repository at this point in the history
  • Loading branch information
rtibbles committed Nov 6, 2024
1 parent d687ccb commit 7d43f77
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -291,6 +291,7 @@
const loadingPdf = PDFJSLib.getDocument({
url: this.defaultFile.storage_url,
worker: this.worker,
isEvalSupported: false,
});
// pass callback to update loading bar
loadingPdf.onProgress = loadingProgress => {
Expand Down

0 comments on commit 7d43f77

Please sign in to comment.