MediumGHSA-5pqx-77vf-85rwCVE-2021-30458
Wikimedia Parsoid vulnerable to Cross-site Scripting (XSS)
Published 24 May 2022 · Updated 7 Jun 2024
Is your project on an affected wikimedia/parsoid?
Look after several Laravel or PHP apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie
Affected packages
wikimedia/parsoidComposer
- Affected
- >=0.12 <0.12.2
- Fixed in
- 0.12.2
Update to the fixed version for your release line, for example:
composer require wikimedia/parsoid:^0.12.2wikimedia/parsoidComposer
- Affected
- <0.11.1
- Fixed in
- 0.11.1
Update to the fixed version for your release line, for example:
composer require wikimedia/parsoid:^0.11.1Details
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.
Is GHSA-5pqx-77vf-85rw in any of your client repos?
Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected wikimedia/parsoid, and gives you the command that fixes it.
References
- Advisorynvd.nist.gov/vuln/detail/CVE-2021-30458
- Linkgithub.com/FriendsOfPHP/security-advisories/blob/master/wikimedia/parsoid/CVE-2021-30458.yaml
- Packagegithub.com/wikimedia/mediawiki-services-parsoid
- Linkphabricator.wikimedia.org/T279451
- Linksecurity.gentoo.org/glsa/202107-40
- Linkwww.mediawiki.org/wiki/Parsoid
Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.