Skip to content

Commit

Permalink
web: fix CVE-2024-4367
Browse files Browse the repository at this point in the history
  • Loading branch information
thecodrr committed Jun 1, 2024
1 parent d68c326 commit b502f6a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions apps/web/src/components/pdf-preview/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,10 @@ export function PdfPreview(props: PdfPreviewProps) {
onZoom={(e) => {
if (hash) setPDFConfig(hash, { scale: e.scale });
}}
transformGetDocumentParams={(options) => {
(options as any).isEvalSupported = false;
return options;
}}
// onDocumentAskPassword={(e) => {
// e.verifyPassword("failed");
// }}
Expand Down

0 comments on commit b502f6a

Please # to comment.