Skip to content
Heist/ feed
Back to feed
High

Stored XSS in WordPress

Type: advisorySources: OSV

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.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2022-21662
Confirmed fixed CVEs
Not specified
Updated in this feed
4 Nov 2026, 03:52 UTC · Revision 1

Source evidence

Stored XSS in WordPress

core-osv · Original source

Published 6 Jan 2022, 23:05 UTC

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.

osv:CVE-2022-21662
Complete source record
{
  "id": "9a6e1a1d8f4b67cec483a65cb9d7b724e7a83150b02cb77957e21e5080ff8abb",
  "url": "https://osv.dev/vulnerability/CVE-2022-21662",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "Stored XSS in WordPress",
    "summary": "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.",
    "evidence": "osv:CVE-2022-21662",
    "products": [],
    "severity": "high",
    "structured": {
      "id": "CVE-2022-21662",
      "aliases": [
        "BIT-wordpress-2022-21662",
        "BIT-wordpress-multisite-2022-21662",
        "CVE-2022-21662",
        "GHSA-699q-3hj9-889w"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/wordpress/wordpress",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "3c8a81ce485f3ed16617d99d0da9c1bedac4791c"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:wordpress:wordpress:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "fixed": "5.8.3"
                      }
                    ],
                    "source": "CPE_RANGE"
                  }
                ]
              }
            },
            {
              "repo": "https://github.com/wordpress/wordpress-develop",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "d01af687fab3faff4b3d406a0b4daff6915b50dc"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "fixed": "5.8.3"
                      }
                    ],
                    "source": "AFFECTED_FIELD",
                    "strategy": "StringRangeExpression"
                  },
                  {
                    "cpe": "cpe:2.3:a:wordpress:wordpress:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "fixed": "5.8.3"
                      }
                    ],
                    "source": "CPE_RANGE"
                  }
                ]
              }
            }
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-21662.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:32.845029950Z",
      "provider": "osv",
      "references": [
        "https://wordpress.org/news/2022/01/wordpress-5-8-3-security-release/",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/21xxx/CVE-2022-21662.json",
        "https://github.com/WordPress/wordpress-develop/security/advisories/GHSA-699q-3hj9-889w",
        "https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/CV4UNEC63UU5GEU47IIR4RMTZAHNEOJG/",
        "https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/DM6XPH3JN6V4NF4WBOJTOXZIVE6VKKE3/",
        "https://nvd.nist.gov/vuln/detail/CVE-2022-21662",
        "https://www.debian.org/security/2022/dsa-5039",
        "https://lists.debian.org/debian-lts-announce/2022/01/msg00019.html"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-79"
        ],
        "cna_assigner": "GitHub_M",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/21xxx/CVE-2022-21662.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2022-21662",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 500135,
  "published_at": "2022-01-06T23:05:10+00:00"
}