CVE-2021-24759 PDF.js Viewer < 2.0.2 - Contributor+ Stored Cross-Site Scripting
Contributors can inject malicious scripts via unescaped shortcode attributes in the PDF.js Viewer plugin, potentially compromising other users.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- None listed
What is CVE-2021-24759?
CVE-2021-24759 is a medium-severity cross-site scripting vulnerability in Unknown PDF.js Viewer, published on 6 Dec 2021. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.
Official description
The PDF.js Viewer WordPress plugin before 2.0.2 does not escape some of its shortcode and Gutenberg Block attributes, which could allow users with a role as low as Contributor to to perform Cross-Site Scripting attacks
Weakness: CWE-79
Which versions are affected by CVE-2021-24759?
It affects 1 product.
Products include Pdf.js Viewer Project Pdf.js Viewer.
How do I fix CVE-2021-24759?
No fix has been published for CVE-2021-24759 yet. Limit exposure of the affected software until one is available.
Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.
Is CVE-2021-24759 being exploited?
There is no known exploitation of CVE-2021-24759 in the wild and no public exploit code.
Other vulnerabilities in Unknown PDF.js Viewer
Sources
Also known as GHSA-f8m6-8wfx-7hpr.