SecurityContext

CVE-2022-4670: PDF.js Viewer WordPress - Stored XSS

  • Cve: CVE-2022-4670
  • Name: PDF.js Viewer WordPress - Stored XSS
  • 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.
  • Impact: Attackers can execute malicious scripts in the context of the affected site, potentially leading to session hijacking or defacement.
  • Remediation: Update to version 2.1.8 or later.
  • Vulnerability type: stored_xss
  • Vulnerability impact: client_script_exec
  • Requirement type: user_interaction
  • Requirements: Users with contributor role or above must embed the shortcode
  • Labels source: projectdiscovery
  • Severity: medium
  • Cvss score: 5.4
  • Cvss vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
  • Epss score: 0.00568
  • Epss percentile: 0.47983
  • Assignee: [email protected]
  • Published at: 2023-02-06T20:15:11Z
  • Age in days: 1387
  • Modified at: 2026-06-17T05:21:30Z
  • Patch available: yes
  • Public exploits total: 1
  • References total: 1
  • Products total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2022-4670
  • Nvd status: modified
  • Checked, none or zero: known exploited entries, nuclei templates, public exploits capped, oss, projects total, projects, rejected by nvd
  • Not known: hackerone

Cwe

IdName
CWE-79—

Public exploits

UrlSourceAdded date
https://wpscan.com/vulnerability/2a67c290-2a27-44fe-95ae-2d427e9d7548nvd2023-02-06

References

UrlSourceTags
https://wpscan.com/vulnerability/2a67c290-2a27-44fe-95ae-2d427e9d7548nvdExploit, Third Party Advisory

Products

ProductAffectedPlatform boundSourcesUrl
pdf.js_viewer_project:pdf.js_viewer< 2.1.8nonvd/v1/products/pdf.js_viewer_project/pdf.js_viewer

Index

  • Checked, none or zero: repositories, repositories high signal, packages

Exploitation

  • Public exploit: yes
  • Public exploit count: 1
  • Public exploit first date: 2023-02-06
  • Remote: yes
  • Authentication required: yes
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, initial access
  • Not known: known exploited since, vulncheck known exploited since, nuclei template, initial access since, hackerone reports, exposed hosts