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?

Private repo? Upload its lockfile instead, or connect GitHub to check every repo.

Look after several Laravel or PHP apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie

Affected packages

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.2
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.1

Details

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

Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.