CVE-2022-29969
Medium · 6.1CVSS
6.1
EPSS
0.7%
Published
May 2, 2022
CISA due date
—
Cloudanix analysis
A flaw in the RSS feature for wiki sites lets attackers run harmful code in visitors' browsers if a malicious news feed is allowed.
- Exploitation
- Requires User Interaction
- Attacker needs
- User Interaction
- Complexity
- Low
- Impact
- Data Exposure
- Component
- Application
- Class
- XSS
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
Allows cross-site scripting by injecting executable script into rendered RSS output when an attacker-controlled feed is present in the whitelist and link tags are permitted.
Why it matters to the business
Attackers can hijack user sessions, steal credentials, or perform actions on behalf of wiki visitors, leading to data exposure, unauthorized edits, or loss of trust in the platform.
How an attack unfolds
An attacker places malicious JavaScript inside an RSS feed that is already on the MediaWiki RSS whitelist. When a user views content that pulls from this feed, the browser executes the script because link tags are allowed, resulting in client-side compromise without any authentication required from the attacker.
How to fix it
Upgrade the RSS extension to the version released on or after 2022-04-29. If immediate upgrade is not possible, set $wgRSSAllowLinkTag to false or remove untrusted feeds from $wgRSSUrlWhitelist.
How to confirm the fix worked
Confirm the installed RSS extension timestamp is 2022-04-29 or later, verify that $wgRSSAllowLinkTag is disabled, and test rendering of a sample whitelisted feed containing a benign script tag to ensure it is sanitized.
Typical attack path
- Identify or compromise an RSS feed listed in $wgRSSUrlWhitelist
- Craft feed entries containing script payloads inside link or other permitted tags
- Wait for or entice users to load wiki pages that render the malicious feed
- Execute arbitrary JavaScript in victims' browsers to exfiltrate cookies or perform actions
How to detect it
Inspect web server and MediaWiki access logs for requests that include RSS rendering parameters combined with unexpected HTML or script tags; review recent changes to RSS-related configuration variables and audit any whitelisted external feed sources.
What your security team should do
- Apply the 2022-04-29 or newer RSS extension update immediately across all MediaWiki instances
- Review and minimize the contents of $wgRSSUrlWhitelist to only verified internal feeds
- Disable $wgRSSAllowLinkTag unless a documented business need exists
- Monitor for unusual script execution or cookie exfiltration attempts originating from wiki pages
The record
The RSS extension before 2022-04-29 for MediaWiki allows XSS via an rss element (if the feed is in $wgRSSUrlWhitelist and $wgRSSAllowLinkTag is true).
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| Ubuntu:18.04:LTS | mediawiki | 0 | No fix |
| Ubuntu:20.04:LTS | mediawiki | 0 | No fix |
| Ubuntu:22.04:LTS | mediawiki | 0 | No fix |
| Ubuntu:24.04:LTS | mediawiki | 0 | No fix |
| Ubuntu:24.10 | mediawiki | 0 | No fix |
| Ubuntu:25.04 | mediawiki | 0 | No fix |
| Ubuntu:25.10 | mediawiki | 0 | No fix |
| Ubuntu:Pro:18.04:LTS | mediawiki | 0 | No fix |
| Ubuntu:Pro:20.04:LTS | mediawiki | 0 | No fix |
Related vulnerabilities
- CVE-2023-45361 An issue was discovered in VectorComponentUserLinks.php in the Vector Skin component in… Also affects mediawiki
- CVE-2023-45359 An issue was discovered in the Vector Skin component for MediaWiki before 1.39.5 and… Also affects mediawiki
- CVE-2024-47913 An issue was discovered in the AbuseFilter extension for MediaWiki before 1.39.9, 1.40.x… Also affects mediawiki
- CVE-2024-34507 An issue was discovered in includes/CommentFormatter/CommentParser.php in MediaWiki… Also affects mediawiki
- CVE-2024-34506 An issue was discovered in includes/specials/SpecialMovePage.php in MediaWiki before… Also affects mediawiki
- CVE-2026-96379 Improper Neutralization of Input During Web Page Generation ("Cross-site Scripting")… CWE-79
- CVE-2026-96382 Improper Neutralization of Input During Web Page Generation ("Cross-site Scripting")… CWE-79
- CVE-2026-96368 Improper Neutralization of Input During Web Page Generation ("Cross-site Scripting")… CWE-79