WordPress: Cross-site scripting
WordPress is affected by cross-site scripting. Exposure depends on how the affected operation is made reachable by the site. Injected script can execute in the affected site's origin when the vulnerable output is viewed.
- Component
- WordPress
- Plugin slug
Core- Affected
- See vendor advisory
- Safe version
- See mitigation notes
- Published
- Jan 06, 2022
This CVE was published Jan 06, 2022 and is one of 45 known issues for WordPress core.
Patch or disable the affected component.
Update WordPress to a release outside the affected range, or disable and remove it until a fixed version is available.
Technical 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.
CVE / CNA vector: CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:H
NVD vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
Primary and upstream sources
- NVD record for CVE-2022-21662
- GitHub security advisory github.com
- Upstream reference lists.debian.org
- Upstream reference lists.fedoraproject.org
- Upstream reference lists.fedoraproject.org
- WordPress upstream reference wordpress.org
- Upstream reference debian.org
- GitHub security advisory github.com
- Upstream reference lists.debian.org
- Upstream reference lists.fedoraproject.org
- Upstream reference lists.fedoraproject.org
- WordPress upstream reference wordpress.org
- Upstream reference debian.org