CVE-2022-21662: Stored XSS in WordPress

Published Jan 6, 2022
·
Updated

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.

Affected Software

8 affected componentsFixes available
WordPress WordPress<5.8.3
Debian Debian Linux=9.0
Debian Debian Linux=10.0
Debian Debian Linux=11.0
debian/wordpress<5.8.3+dfsg1-1
5.8.3+dfsg1-1
debian/wordpress<5.8.3+dfsg1-1
5.8.3+dfsg1-1
debian/wordpress<5.8.3+dfsg1-1
5.8.3+dfsg1-1
debian/wordpress
6.1.9+dfsg1-0+deb12u16.8.7+dfsg1-0+deb13u16.8.12+dfsg1-0+deb13u17.1.4+dfsg1-1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade debian/wordpress to a version that resolves this vulnerability.

    Fixed in 6.1.9+dfsg1-0+deb12u1Fixed in 6.8.7+dfsg1-0+deb13u1Fixed in 6.8.12+dfsg1-0+deb13u1Fixed in 7.1.4+dfsg1-1
  2. Upgrade

    Upgrade debian/wordpress to a version that resolves this vulnerability.

    Fixed in 5.8.3+dfsg1-1
  3. Upgrade

    Upgrade WordPress to a version that resolves this vulnerability.

    Fixed in 5.8.3
  4. Upgrade

    Upgrade WordPress to a version that resolves this vulnerability.

    Fixed in 3.7.37
  5. Configuration

    Keep auto-updates enabled

    WordPress auto-updates = enabled

Event History

Jan 6, 2022
CVE Published
via MITRE·11:05 PM
Data Sourced
via MITRE·11:05 PM
DescriptionSeverityWeakness
Data Sourced
via OSV·11:15 PM
DescriptionSeverityAffected Software

Parent advisories

This vulnerability appears in the following advisories.

Peer vulnerabilities

Found alongside the following vulnerabilities.

Frequently Asked Questions

1

What is CVE-2022-21662?

CVE-2022-21662 is a vulnerability in WordPress that allows low-privileged authenticated users to perform stored XSS attacks, potentially impacting high-privileged users.

2

How does CVE-2022-21662 affect WordPress?

CVE-2022-21662 affects WordPress by allowing low-privileged authenticated users to execute JavaScript and perform stored XSS attacks.

3

What is the severity of CVE-2022-21662?

The severity of CVE-2022-21662 is rated as high.

4

Which versions of WordPress are affected by CVE-2022-21662?

WordPress versions up to and excluding 5.8.3 are affected by CVE-2022-21662.

5

How can I fix CVE-2022-21662 in WordPress?

To fix CVE-2022-21662, update WordPress to version 5.8.3 or newer.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203