CVE-2022-4670: Pdf.js Viewer Project Pdf.js Viewer
Medium severity, CVSS 5.4. EPSS: 0.6% chance of exploitation in the next 30 days.
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
- Pdf.js Viewer Project Pdf.js Viewer: before 2.1.8 (fixed in 2.1.8)
Published 2023-02-06. Last modified 2026-06-17.