Intel

AIKIDO-2024-10025

ngx-extended-pdf-viewer is vulnerable to Cross-site Scripting (XSS)

Cross-site Scripting (XSS) Pre-CVE
Found by Aikido Intel before public disclosure or CVE publication.
Published Apr 12, 2024

20

Low Risk

This Affects:

JSngx-extended-pdf-viewer
0.0.1 - 19.4.1
Fixed in 19.5.0
Are you affected? Scan for Free

TL;DR

Affected versions of this package are vulnerable to Cross-site Scripting (XSS) if the unsafe-inline rule is used in the content-security-policy (CSP) meta tag. The unsafe-inline keyword undermines most of the security benefits provided by CSP. It was required in order to enable certain functionality of the package.

Who does this affect?

You are affected if you are using a version of this package = 19.4.1 and 'unsafe-inline' is used in the content-security-policy meta tag.

Background info

ngx-extended-pdf-viewer is vulnerable to Cross-site Scripting (XSS) in versions 0.0.1 - 19.4.1.

How to fix this

Upgrade the ngx-extended-pdf-viewer library to the patch version.