ng2-pdfjs-viewer is vulnerable to Cross-site Scripting (XSS)
80
High Risk
All versions of this package are vulnerable to CVE-2024-4367 due to the use of a vulnerable version of pdf.js, which permits arbitrary JavaScript execution through Cross-site Scripting (xss).
You are affected if you use this package.
ng2-pdfjs-viewer is vulnerable to Cross-site Scripting (XSS) in all versions.
Since no fix is available for this package, you can mitigate the vulnerability by forking the library and setting the isEvalSupported property in the pdf.js configuration to false. Alternatively, you can use pdf.js directly by leveraging the https://www.npmjs.com/package/pdfjs-dist package.
Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.
Free. No credit card required.

SOC 2Compliant
ISO 27001Compliant