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.
Secure your code, cloud, and runtime environments in one central system. Find and fix vulnerabilities automatically.
No credit card required | Scan results in 32secs.
SOC 2Compliant
ISO 27001Compliant