Skip to content

Commit

Permalink
Merge pull request #5694 from thornbill/pdfjs-patch
Browse files Browse the repository at this point in the history
  • Loading branch information
thornbill authored Jun 10, 2024
2 parents 674b0b1 + 4ec0e2f commit 4bb0c67
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/plugins/pdfPlayer/plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,12 @@ export class PdfPlayer {
this.bindEvents();
GlobalWorkerOptions.workerSrc = appRouter.baseUrl() + '/libraries/pdf.worker.js';

const downloadTask = getDocument(downloadHref);
const downloadTask = getDocument({
url: downloadHref,
// Disable for PDF.js XSS vulnerability
// https://github.com/mozilla/pdf.js/security/advisories/GHSA-wgrm-67xf-hhpq
isEvalSupported: false
});
return downloadTask.promise.then(book => {
if (this.cancellationToken) return;
this.book = book;
Expand Down

0 comments on commit 4bb0c67

Please sign in to comment.