CVE-2021-30458
MEDIUM 6.1CVSS 3.1Wikimedia Parsoid vulnerable to Cross-site Scripting (XSS)
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.
- Published
- 9 Apr 2021
- Last modified
- 17 Jun 2026
- Assigned by
- cve@mitre.org
- NVD status
- Modified
- Weakness
- CWE-79
- Also known as
- GHSA-5pqx-77vf-85rw
- Sources
- NVDJSONOSV GHSA-5pqx-77vf-85rwJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| OSV | GitHub | CVSS 3.1 | MEDIUM 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 4.3 | AV:N/AC:M/Au:N/C:N/I:P/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | wikimedia | parsoidcpe:2.3:a:wikimedia:parsoid:*:*:*:*:*:node.js:*:* |
< 0.11.1 | 0.11.1 |
| NVD | wikimedia | parsoidcpe:2.3:a:wikimedia:parsoid:*:*:*:*:*:node.js:*:* |
>= 0.12.0, < 0.12.2 | 0.12.2 |
| OSV | Packagist | wikimedia/parsoid | >= 0.12, < 0.12.2 | 0.12.2 |
| OSV | Packagist | wikimedia/parsoid | < 0.11.1 | 0.11.1 |
References
- https://phabricator.wikimedia.org/T279451 · Issue Tracking, Vendor Advisory, WEB
- https://security.gentoo.org/glsa/202107-40 · Third Party Advisory, WEB
- https://www.mediawiki.org/wiki/Parsoid · 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
History
- 25 Nov 2026 20:32 UTC · NVD: first stored (published 9 Apr 2021)
- 25 Nov 2026 20:15 UTC · OSV: first stored (published 24 May 2022)