Skip to main content
No exploitation reportedFix available

CVE-2022-21662

No exploitation reported by the sources we read.

  • Published2022-01-06
  • Fixed in5.8.3
  • WeaknessCWE-79

Am I affected?

With a domain, we read the version its public headers and pages expose. A distribution build can carry the fix under an older number.

Description

WordPress is a free and open-source content management system written in PHP and paired with a MariaDB database. Low-privileged authenticated users (like author) in WordPress core are able to execute JavaScript/perform stored XSS attack, which can affect high-privileged users. This has been patched in WordPress version 5.8.3. Older affected versions are also fixed via security release, that go back till 3.7.37. We strongly recommend that you keep auto-updates enabled. There are no known workarounds for this issue.

Timeline

dates in UTC
  1. 2022-01-0623:15CVE publishedNVD
  2. 2026-12-0204:55EPSS crossed 10 %FIRST EPSS

Versions per branch

NVD · OSV
WordPress
BranchAffectedFixed in
5.8< 5.8.35.8.3
Debian debian linux
BranchAffectedFixed in
9.0= 9.0no fix published
10.0= 10.0no fix published
11.0= 11.0no fix published

as publishedRanges as NVD and OSV publish them; a distribution’s build can be fixed under an older number.

Products declared by the CNA1 product

As GitHub_M, the CNA that assigned this CVE, declared them in the CVE record; versions as written.

  • wordpress-develop
    Affected
    • = < 5.8.3no fix stated

Source: the CNA record (CVE Program), © The MITRE Corporation,CVE terms of useCVE recordupdated 2022-01-23

Distribution builds and vendor advisories

Packages from OSV.dev and products from the vendors' CSAF advisories.

version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.

Packages

  • wordpressUbuntu:20.04:LTSall versions · no fixed version listed
  • wordpressUbuntu:18.04:LTSall versions · no fixed version listed
  • wordpressUbuntu:16.04:LTSall versions · no fixed version listed
  • wordpressDebian:14all versions · fixed in 5.8.3+dfsg1-1
  • wordpressDebian:13all versions · fixed in 5.8.3+dfsg1-1
  • wordpressDebian:12all versions · fixed in 5.8.3+dfsg1-1
  • wordpressDebian:11all versions · fixed in 5.7.5+dfsg1-0+deb11u1
  • wordpressDebian:10all versions · fixed in 5.0.15+dfsg1-0+deb10u1

1 more package range on OSV.dev

Vendor advisories

  • CVE-2022-21662 Red Hat Product Security

    wordpress: stored XSS through authenticated users

Full record on NVD

Fix

  1. Update WordPress to 5.8.3

Advisories and patches

Detection

Nuclei template
none so far
ProjectDiscovery
Exploit-DB
no entry
Exploit-DB
Proof of concept
Metasploit modules
none listed
Metasploit Framework

Sources

  • CISA-ADPSSVC decisionnone2025-04-23
  • CNACVSS 3.18known since 2026-10-23
  • NVDCVSS 3.15.4read 2026-10-23
  • NVDCVSS 2.03.5read 2026-10-23
  • CNAweakness (CWE)CWE-79known since 2026-10-23
  • NVDweakness (CWE)CWE-79read 2026-10-23
  • FIRST EPSSEPSS score64.5 %read 2026-12-05
  • OSVaffected packages—
  • GitHub Advisoriesadvisory—

Identifiers

Technical details

CVSS v3 vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
Published
2022-01-06
Last modified
2026-06-17
NVD status
Modified
GitHub advisory
GHSA-699q-3hj9-889w

Frequently asked questions

What is CVE-2022-21662?

WordPress is a free and open-source content management system written in PHP and paired with a MariaDB database. Low-privileged authenticated users (like author) in WordPress core are able to execute JavaScript/perform stored XSS attack, which can affect high-privileged users. This has been patched in WordPress version 5.8.3. Older affected versions are also fixed via security release, that go back till 3.7.37. We strongly recommend that you keep auto-updates enabled. There are no known workarounds for this issue.

Is CVE-2022-21662 actively exploited?

Active exploitation of CVE-2022-21662 has not been confirmed. Its EPSS score was 64.5% on 2026-12-05, the estimated probability of exploitation in the next 30 days.

What is the CVSS score for CVE-2022-21662?

CVE-2022-21662 has a CVSS v3 base score of 5.4 (Medium severity), with vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N.

Running WordPress? Hear about its next vulnerability

Surveillance reads the versions in your stack — a domain, a lockfile or a list — checks each CVE against the ranges its sources publish, and alerts you when one you run is exploited or enters CISA KEV. A version it cannot read stays « version not verified ».

No credit card required · No monthly cap on website checks · 250 API requests/month

Sources for this record