Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. pdf.js
  4. ›
  5. CVE-2022-4670

CVE-2022-4670: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

February 6, 2023 (updated November 9, 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.

References

  • nvd.nist.gov/vuln/detail/CVE-2022-4670
  • wpscan.com/vulnerability/2a67c290-2a27-44fe-95ae-2d427e9d7548

Code Behaviors & Features

Detect and mitigate CVE-2022-4670 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 2.1.8

Fixed versions

  • 2.1.8

Solution

Upgrade to version 2.1.8 or above.

Impact 5.4 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N

Learn more about CVSS

Weakness

  • CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Source file

npm/pdf.js/CVE-2022-4670.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:15:37 +0000.