What’s Vulnerable › Vulnerabilities

CVE-2022-4670: PDF.js Viewer < 2.1.8 - Contributor+ Stored XSS via Shortcode

Description

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.

Affected products

How to fix

Upgrade to a fixed version: PDF.js Viewer 2.1.8. Check the vendor advisory for mitigations.

References

Get alerted when CVE-2022-4670 or the next vulnerability affects your stack