CVE-2022-21662
No exploitation reported by the sources we read.
- Published2022-01-06
- Fixed in5.8.3
- WeaknessCWE-79
Am I affected?
Debian, Ubuntu or Red Hat sometimes backport a fix without changing the upstream version number: such a version reads « to verify », never « 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- 2022-01-0623:15CVE publishedNVD
- 2026-12-0204:55EPSS crossed 10 %FIRST EPSS
Versions per branch
NVD · OSV| Branch | Affected | Fixed in | Source |
|---|---|---|---|
| 5.8 | < 5.8.3 | 5.8.3 | NVD · OSV |
| Branch | Affected | Fixed in | Source |
|---|---|---|---|
| 9.0 | = 9.0 | no fix published | NVD |
| 10.0 | = 10.0 | no fix published | NVD |
| 11.0 | = 11.0 | no fix published | NVD |
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-developAffected
- = < 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
Fix
- Update WordPress to 5.8.3
Advisories and patches
- wordpress.orgRelease Notes · Vendor Advisory
Detection
- Nuclei template
- none so far ProjectDiscovery
- Exploit-DB
- no entry Exploit-DB
- Proof of concept
- PoC-in-GitHubno public repository identifiedread 2026-12-05
- 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
- BIT-wordpress-2022-21662same flawBitnami · Apache-2.0
- BIT-wordpress-multisite-2022-21662same flawBitnami · Apache-2.0
- EUVD-2022-26879same flawENISA EUVD · LicenseRef-ENISA-legal-notice
- GHSA-699q-3hj9-889wsame flawGitHub Advisory Database · CC-BY-4.0
- DLA-2884-1advisory covering several CVEsDebian · LicenseRef-unstated
- DSA-5039-1advisory covering several CVEsDebian · LicenseRef-unstated
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?
Is CVE-2022-21662 actively exploited?
What is the CVSS score for CVE-2022-21662?
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
Go further
- Following what attackers exploit right now? The CISA KEV additions of the month, with their patch deadlines.
- Running this software? Vulnerability monitoring alerts you to new vulnerabilities in your products.
Related vulnerabilities
Same product first, then the same vendor advisory and the same publication week.
- CVE-2026-63030KEVsame product
- CVE-2026-87902KEVsame product
- CVE-2026-60137KEVsame product
- CVE-2026-119977KEVsame productWordPress Core 4.7.0 - 7.1.3 - Unauthenticated Upgrade-Window Staged-Installer Remote Code Execution
- CVE-2022-21661same product
- CVE-2019-8943same product
- CVE-2021-29447same product
- CVE-2019-8942same product
Sources for this record
- CVE Program · CVE Program Terms of Use
- ENISA EU Vulnerability Database · ENISA legal notice §1.2 (reproduction authorised, provided the source is acknowledged)
- FIRST EPSS · EPSS terms of use (free use, attribution requested)
- GitHub Advisory Database · CC-BY-4.0 · GHSA-699q-3hj9-889w
- NVD · Public domain (17 U.S.C. § 105) for NVD-authored data; third-party content under its own terms
- OSV.dev · Per record, as its publisher states it: each row carries the label in sourceLicense when one is served
- Red Hat Product Security (CSAF and VEX) · CC-BY-4.0
- CISA Vulnrichment · CC0-1.0