# CVE-2021-30458: Wikimedia Parsoid vulnerable to Cross-site Scripting (XSS)

- Severity: Medium 6.1 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.98%, higher than 61% of CVEs (2026-11-30)
- Published: 2021-04-09T06:06:04.000Z
- Modified: 2026-06-17T03:50:16.960Z
- Also known as: GHSA-5pqx-77vf-85rw
- Weaknesses: CWE-79
- Assigned by: mitre

## Description

An issue was discovered in Wikimedia Parsoid before 0.11.1 and 0.12.x before 0.12.2. An attacker can send crafted wikitext that Utils/WTUtils.php will transform by using a <meta> tag, bypassing sanitization steps, and potentially allowing for XSS.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- wikimedia/parsoid (Packagist): from 0.12 before 0.12.2; before 0.11.1
- wikimedia parsoid: before 0.11.1; from 0.12.0 before 0.12.2

## Every score

- GitHub: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- NVD: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- NVD: CVSS:2.0 4.3 Medium `AV:N/AC:M/Au:N/C:N/I:P/A:N`

## References

- <https://phabricator.wikimedia.org/T279451> (issue-tracking, vendor-advisory, web)
- <https://www.mediawiki.org/wiki/Parsoid> (vendor-advisory, web)
- <https://security.gentoo.org/glsa/202107-40> (third-party-advisory, vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2021-30458> (advisory)
- <https://github.com/FriendsOfPHP/security-advisories/blob/master/wikimedia/parsoid/CVE-2021-30458.yaml> (web)
- <https://github.com/wikimedia/mediawiki-services-parsoid> (package)

## Sources

- CVE List: [CVE-2021-30458](https://www.cve.org/CVERecord?id=CVE-2021-30458), CVE Terms of Use, modified 2024-08-03
- GitHub Advisory Database: [GHSA-5pqx-77vf-85rw](https://github.com/advisories/GHSA-5pqx-77vf-85rw), CC-BY-4.0, modified 2024-06-07
- NVD: [CVE-2021-30458](https://nvd.nist.gov/vuln/detail/CVE-2021-30458), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-30458 · Whole record: https://cve.day/CVE-2021-30458.json · Rebuilt by cve.day 2026-11-25T22:58:00.689Z
