CVE-2024-34507: mediawiki · Basic XSS
Affects mediawikiSource CVE Database V5
Not known to be exploited · CVSS 7.4 High · fixed in 1.41.1 : patch mediawiki soon.
Data as of 26 Oct 2026, 17:16 UTC
- EPSS
- 0.6% chance of exploitation in 30 days – higher than 51% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
- Patch
- Available – fixed in 1.41.1, 1.40.3, 1.39.7
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:N/A:NExploitation evidence
Disclosed: evidence found.
CVE published 5 May 2024
Detectable: no evidence on record.
No public nuclei template indexed
Weaponised: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 26 Oct 2026.
What to do
Upgrade mediawiki/mediawiki to 1.41.1, 1.40.3 or 1.39.7.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
Packagistmediawiki/mediawikipkg:composer/mediawiki/mediawikiOther threats | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
European organizations should immediately upgrade MediaWiki installations to versions 1.39.7, 1.40.3, or 1.41.1 or later, where the vulnerability is patched. If immediate upgrading is not feasible, implement strict input validation and sanitization on user-generated content, specifically filtering or encoding the 0x1b character and other control characters that can be used for injection. Employ Content Security Policy (CSP) headers to restrict the execution of unauthorized scripts in browsers. Educate users about the risks of clicking suspicious links, especially those containing unusual characters or parameters. Monitor web server logs and application behavior for unusual requests targeting Special:RecentChanges or other comment-related pages. Additionally, consider deploying Web Application Firewalls (WAFs) with custom rules to detect and block payloads containing the escape character sequences. Regularly review and audit MediaWiki extensions and customizations for similar input handling issues. Finally, ensure incident response plans include procedures for XSS attack detection and mitigation.
Description
An issue was discovered in includes/CommentFormatter/CommentParser.php in MediaWiki before 1.39.7, 1.40.x before 1.40.3, and 1.41.x before 1.41.1. XSS can occur because of mishandling of the 0x1b character, as demonstrated by Special:RecentChanges#%1b0000000.
References
- phabricator.wikimedia.org/T355538 (opens in a new tab)
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/FU2FGUXXK6TMV6R52VRECLC6XCSQQISY/ (opens in a new tab)
- lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/FU2FGUXXK6TMV6R52VRECLC6XCSQQISY/ (opens in a new tab)