{"id":"CVE-2022-4670","aliases":["EUVD-2022-51994","GHSA-prq5-cfmm-gwc2"],"status":"published","title":"PDF.js Viewer \u003c 2.1.8 - Contributor+ Stored XSS via Shortcode","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.","severity":{"version":"3.1","score":5.4,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N","level":"medium","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-09","score":0.00562,"percentile":0.47037,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":false},"cwes":["CWE-79"],"published":"2023-02-06T19:59:43Z","modified":"2026-06-17T05:21:30Z","products":[{"vendor":"pdf.js_viewer_project","product":"pdf.js_viewer"},{"vendor":"unknown","product":"pdf.js viewer"}],"references":[{"url":"https://wpscan.com/vulnerability/2a67c290-2a27-44fe-95ae-2d427e9d7548","tags":["exploit","vdb-entry","technical-description","x_transferred","Exploit","Third Party Advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-4670"},{"url":"https://github.com/advisories/GHSA-prq5-cfmm-gwc2"}],"sources":{"cve":[{"id":"CVE-2022-4670","title":"PDF.js Viewer \u003c 2.1.8 - Contributor+ Stored XSS via Shortcode","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.","status":"published","published":"2023-02-06T19:59:43.771Z","modified":"2025-03-25T19:35:03.57Z","cvss":[{"version":"3.1","score":5.4,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N","level":"medium","assessor":"adp"}],"updated_at":"2026-11-02T14:34:37.599536Z"}],"euvd":[{"id":"EUVD-2022-51994","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.","status":"published","published":"2023-02-06T19:59:43Z","modified":"2025-03-25T19:35:03Z","cvss":[{"version":"3.1","score":5.4,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N","level":"medium"}],"updated_at":"2026-11-02T20:52:52.192094Z"}],"ghsa":[{"id":"GHSA-prq5-cfmm-gwc2","title":"The PDF.js Viewer WordPress plugin before 2.1.8 does not validate and escape some of its...","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.","status":"published","published":"2023-02-06T21:30:31Z","modified":"2023-02-21T05:06:45Z","cvss":[{"version":"3.1","score":5.4,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N","level":"medium"}],"cwes":["CWE-79"],"updated_at":"2026-11-02T14:54:12.44657Z"}],"nvd":[{"id":"CVE-2022-4670","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.","status":"published","published":"2023-02-06T20:15:11.797Z","modified":"2026-06-17T05:21:30.947Z","cvss":[{"version":"3.1","score":5.4,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N","level":"medium","assessor":"primary"},{"version":"3.1","score":5.4,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N","level":"medium","assessor":"secondary"}],"updated_at":"2026-11-02T14:07:36.026349Z"}]}}
