Website support, maintenance and fixes for UK businessesCall 0208 088 8371info@websupportservices.co.uk

HomeWordPress vulnerabilitiesPDF.js Viewer

PDF.js Viewer vulnerabilities

PDF.js Viewer has 2 known vulnerabilities in this database. The most recent published record is dated 6 Feb 2023.

Known vulnerabilities
2
Active installs
20,000+
Latest version
3.1.1
Last updated
21 Apr 2026
Most recent
6 Feb 2023

Find it in your WordPress dashboard under Plugins. Severity is based on the CVSS score published with the CVE where one is available.

VulnerabilitySeverityAffectedFixPublished
Cross-site scripting (XSS)
CVE-2022-4670
Medium 5.4Before 2.1.8Fixed in 2.1.86 Feb 2023
Cross-site scripting (XSS)
CVE-2021-24759
Medium 5.4Before 2.0.2Fixed in 2.0.26 Dec 2021
Read the published descriptions
CVE-2022-4670, 6 Feb 2023
The PDF.js Viewer WordPress plugin before 2.1.8 does not validate and escape some of its shortcode attributes before outputting them back in a page/post where the shortcode is embed, which could allow users with the contributor role and above to perform Stored Cross-Site Scripting attacks. CVE record
CVE-2021-24759, 6 Dec 2021
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 CVE record

What to do if you run PDF.js Viewer

If you run PDF.js Viewer, open WordPress and check the installed version in Plugins. Compare it with the affected versions in the vulnerability record. If a fixed version is available, take a current backup and update to that version or the latest supported release.

If no fixed version exists, consider disabling and removing the plugin or replacing it with a maintained alternative. After dealing with the affected software, check administrator users, unexpected file changes, redirects, unfamiliar pages and security logs for signs that the site may already have been altered.

Email me about new PDF.js Viewer vulnerabilities

Free. We email you when a new vulnerability is published for PDF.js Viewer, usually within minutes. Confirm by email; unsubscribe any time.

Focus on your business. We’ll take care of your website.

From everyday updates to ongoing care, we keep your website working.

Get website support