Advisory Database
  • Advisories
  • Dependency Scanning
  1. composer
  2. ›
  3. wikimedia/parsoid
  4. ›
  5. CVE-2021-30458

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

May 24, 2022 (updated June 7, 2024)

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 tag, bypassing sanitization steps, and potentially allowing for XSS.

References

  • github.com/FriendsOfPHP/security-advisories/blob/master/wikimedia/parsoid/CVE-2021-30458.yaml
  • github.com/advisories/GHSA-5pqx-77vf-85rw
  • github.com/wikimedia/mediawiki-services-parsoid
  • nvd.nist.gov/vuln/detail/CVE-2021-30458
  • phabricator.wikimedia.org/T279451
  • security.gentoo.org/glsa/202107-40
  • www.mediawiki.org/wiki/Parsoid

Code Behaviors & Features

Detect and mitigate CVE-2021-30458 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 0.11.1, all versions starting from 0.12 before 0.12.2

Fixed versions

  • 0.12.2
  • 0.11.1

Solution

Upgrade to versions 0.11.1, 0.12.2 or above.

Impact 6.1 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

Learn more about CVSS

Weakness

  • CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Source file

packagist/wikimedia/parsoid/CVE-2021-30458.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:15:10 +0000.