CVE-2026-22712

ApprovedRevs allows bypassing the inline CSS sanitizer

Published Jan 9, 2026 CVSS 4.0 · 2.3 Low EPSS < 1% KEV · Not listed
Description
Improper Encoding or Escaping of Output due to magic word replacement in ParserAfterTidy vulnerability in The Wikimedia Foundation Mediawiki - ApprovedRevs Extension allows Input Data Manipulation.This issue affects Mediawiki - ApprovedRevs Extension: 1.45, 1.44, 1.43, 1.39.

Analysis

AI-generated

Technical impact

Improper encoding through magic word replacement in the ParserAfterTidy step of the ApprovedRevs extension allows an attacker to inject malicious or unintended CSS into the page output. This bypasses the inline CSS sanitizer, potentially enabling style-based defacement, click‑jacking, or obscure XSS vectors. The weakness is classified under CWE‑116 for improper output encoding and has a CVSS score of 2.3, indicating low severity but the impact could still harm user experience or enable subtle content manipulation.

Affected Systems

The vulnerability affects the ApprovedRevs extension of MediaWiki produced by The Wikimedia Foundation. Versions 1.39, 1.43, 1.44, and 1.45 are vulnerable.

Risk and Exploitability

Because the CVSS is 2.3 and EPSS is less than 1%, the risk of exploitation is considered very low. The likely attack vector is content manipulation via magic words that the extension processes, which is inferred from the description. Since the issue involves output encoding, an attacker would need to inject crafted CSS through approved content or magic word processing to affect the rendering for users who view these pages. The vulnerability is not listed in CISA’s KEV catalog, further supporting its low exploitation likelihood.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade to a fixed version of the ApprovedRevs extension that addresses the magic word replacement bug.
  • If an immediate upgrade is not possible, temporarily disable magic word usage in the MediaWiki configuration to prevent the injection vectors.
  • Audit existing approved pages for unexpected inline CSS and remove or sanitize any malicious styles discovered.
  • Implement stricter content sanitization for inline styles in MediaWiki to mitigate similar issues in the future.

Generated by OpenCVE AI on April 18, 2026 at 07:28 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
First Time appeared Wikiworks
Wikiworks approved Revs
CPEs cpe:2.3:a:wikiworks:approved_revs:1.39:*:*:*:*:mediawiki:*:*
cpe:2.3:a:wikiworks:approved_revs:1.43:*:*:*:*:mediawiki:*:*
cpe:2.3:a:wikiworks:approved_revs:1.44:*:*:*:*:mediawiki:*:*
cpe:2.3:a:wikiworks:approved_revs:1.45:*:*:*:*:mediawiki:*:*
Vendors & Products Wikiworks
Wikiworks approved Revs
Metrics cvssV3_1

{'score': 4.3, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N'}

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Mediawiki
Mediawiki mediawiki
Wikimedia
Wikimedia mediawiki-approvedrevs Extension
Vendors & Products Mediawiki
Mediawiki mediawiki
Wikimedia
Wikimedia mediawiki-approvedrevs Extension
Type Values Removed Values Added
Description Improper Encoding or Escaping of Output due to magic word replacement in ParserAfterTidy vulnerability in The Wikimedia Foundation Mediawiki - ApprovedRevs Extension allows Input Data Manipulation.This issue affects Mediawiki - ApprovedRevs Extension: 1.45, 1.44, 1.43, 1.39.
Title ApprovedRevs allows bypassing the inline CSS sanitizer
Weaknesses CWE-116
References
Metrics cvssV4_0

{'score': 2.3, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:L/VI:L/VA:L/SC:L/SI:L/SA:L'}

Weaknesses
  • CWE-116

    Improper Encoding or Escaping of Output

Sources

Status
PUBLISHED
Assigner
wikimedia-foundation
Published
Updated
Jan 9, 2026, 7:15 PM
Reserved
Jan 8, 2026, 11:23 PM
Status
Analyzed
Published
Jan 9, 2026, 12:15 AM
Modified
Jun 17, 2026, 10:20 AM