CVE-2021-24759: 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

medium Affects pdf.js-viewer (WordPress plugin). Feed 2026.10.29.4, updated 2026-10-29; published ; advisory modified .

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

Package
pdf.js-viewer (WordPress plugin) WordPress
Affected versions
<2.0.2
Fixed in
2.0.2
Severity
medium  CVSS 5.4
Exploitation
not on CISA KEV · EPSS 1% (49.8th percentile)
Published
2021-12-06
Source
nvd

References

CWE-79
NVD recordpdf.js-viewer (WordPress plugin) advisories

Am I affected?

Find out in one command. phpwarden checks your WordPress install against this advisory and 20,000+ others, ranked by real-world exploitation (CISA KEV + EPSS). Free, offline, open data.

# PHP projects (recommended)
composer require --dev phpwarden/phpwarden
# then
vendor/bin/phpwarden wordpress /var/www/html

# or, without Composer
pipx install phpwarden   &&   phpwarden wordpress /var/www/html

Or keep it checked automatically with the GitHub Action or a nightly cron; see WordPress docs.

Install docs   How findings are ranked

Related advisories