CVE-2022-21662
Published: 06 January 2022
Summary
CVE-2022-21662 is a high-severity Cross-site Scripting (CWE-79) vulnerability in Debian Debian Linux. Its CVSS base score is 8.0 (High).
Operationally, ranked in the top 5.4% of CVEs by exploit likelihood; it is not currently listed in the CISA KEV catalog.
Deeper analysis
WordPress core contains a stored cross-site scripting vulnerability tracked as CVE-2022-21662. Low-privileged authenticated users, such as those with the Author role, can inject JavaScript that executes in the context of higher-privileged accounts when the malicious content is later viewed. The flaw affects all WordPress releases prior to 5.8.3 and was also back-ported to older branches as far as 3.7.37; the corresponding CWE is 79 and the CVSS 3.1 base score is 8.0.
An attacker who already possesses a low-privileged account can craft and publish content that stores executable script. When an administrator or editor subsequently views the affected post, page, or dashboard element, the script runs with that user’s elevated rights, enabling actions such as account takeover, plugin installation, or data exfiltration. The attack requires user interaction and a non-trivial level of complexity, reflected in the CVSS vector AV:N/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:H.
Official advisories from the WordPress project, Debian, and Fedora state that the issue is resolved in version 5.8.3 and the corresponding security releases for older branches. Administrators are strongly encouraged to enable automatic updates; no workarounds are available.
EPSS for the CVE reached a peak of 0.2089 after disclosure before settling at the current value of 0.1424, indicating a measurable increase in observed exploitation interest following public release.
EU & UK References
- 🇪🇺 ENISA EUVD: EUVD-2022-26879
Vulnerability details
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…
more
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.
- CWE(s)
Related Threats
No named actor attribution yet. ATT&CK technique mapping in progress for this CVE.
Affected Assets
Mitigating Controls
Likely Mitigating Controls AI
Per-CVE control mapping for this CVE has not run yet; the list below is derived from the weakness types (CWEs) cited in the NVD entry.
Penetration testing submits XSS payloads to web applications, detecting cross-site scripting flaws for subsequent remediation.
Validates web inputs to reject script-related content that could produce XSS.
Output validation against expected content can reject or sanitize script content in generated web pages, reducing XSS exploitability.