GHSA-5pqx-77vf-85rw
Wikimedia Parsoid vulnerable to Cross-site Scripting (XSS)
Packages
| Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|
| Packagist | wikimedia/parsoid | >= 0.12, < 0.12.2 | 0.12.2 |
| Packagist | wikimedia/parsoid | < 0.11.1 | 0.11.1 |
Details
As written in the advisory (Markdown source, shown as plain text).
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.
References
External links from the advisory. They lead to third-party sites.
- https://nvd.nist.gov/vuln/detail/CVE-2021-30458
- https://github.com/FriendsOfPHP/security-advisories/blob/master/wikimedia/parsoid/CVE-2021-30458.yaml
- https://github.com/wikimedia/mediawiki-services-parsoid
- https://phabricator.wikimedia.org/T279451
- https://security.gentoo.org/glsa/202107-40
- https://www.mediawiki.org/wiki/Parsoid