Vulnerability · Published Feb 6, 2023 · Assigned by WPScan

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

Medium 5.4

In plain English

A medium-severity security flaw in PDF.js Viewer from Unknown. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.6% (higher than 47% of all known vulnerabilities).

Severity (CVSS 3.1)5.4Medium
Exploit odds (30 days)0.6%top 53.1% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack toolingNoneno public tooling known

Official 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 (as reported)

VendorProductVersions
Unknown PDF.js Viewer 0 – before 2.1.8

References