mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2026-10-13 03:27:13 +00:00
Security: Disable eval in pdfjs (#6615)
Closes https://github.com/paperless-ngx/paperless-ngx/security/dependabot/181 see https://github.com/advisories/GHSA-wgrm-67xf-hhpq
This commit is contained in:
1 parent
44ed78b442
commit
076b5b1af5
1 file changed
+1
@@ -35,6 +35,7 @@ import type {
|
||||
import { PDFSinglePageViewer } from 'pdfjs-dist/web/pdf_viewer'
|
||||
|
||||
PDFJS['verbosity'] = PDFJS.VerbosityLevel.ERRORS
|
||||
PDFJS['isEvalSupported'] = false
|
||||
|
||||
export enum RenderTextMode {
|
||||
DISABLED,
|
||||
|
||||
Reference in new issue
Block a user