CVE-2023-45359
Medium · 6.5CVSS
6.5
EPSS
0.4%
Published
Oct 9, 2024
CISA due date
—
Cloudanix analysis
A flaw in wiki software can let attackers run hidden code in visitors' browsers if users click a specially made link.
- Exploitation
- Remote Unauthenticated
- Attacker needs
- None
- Complexity
- Low
- Impact
- Data Tampering
- Component
- Application
- Class
- XSS
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
Unescaped line parameter allows arbitrary markup injection into the vector-toc-toggle-button-label element in the Vector skin, resulting in reflected cross-site scripting.
Why it matters to the business
Attackers can run unauthorized scripts in users' browsers on affected wikis, risking session hijacking, data theft, or unauthorized actions; low exploit prevalence and no ransomware use reduce immediate urgency but still require prompt patching of exposed installations.
How an attack unfolds
An attacker supplies a crafted URL containing markup in the line parameter; the Vector skin renders the value directly into the table-of-contents toggle label without escaping, causing the browser to execute the injected code when the page loads.
How to fix it
Upgrade to MediaWiki 1.39.5 or 1.40.1 or later; for the listed Alpine packages apply the 1.0.11-r1 fixes where applicable.
How to confirm the fix worked
Confirm the vector-toc-toggle-button-label output is properly escaped by testing the line parameter with HTML entities; verify package versions match the fixed releases.
Typical attack path
- Identify a MediaWiki instance using the Vector skin
- Craft a URL with malicious markup in the line parameter
- Deliver the link to a target user
- Script executes in the victim's browser context
How to detect it
Search web access logs and application logs for requests containing the line parameter with HTML or script tags; inspect rendered page source for unescaped content in the table-of-contents toggle.
What your security team should do
- Apply the listed fixed versions immediately on any exposed MediaWiki deployments
- Review web server logs for suspicious line parameter values
- Monitor EPSS trend for any future increase in exploitation likelihood
The record
An issue was discovered in the Vector Skin component for MediaWiki before 1.39.5 and 1.40.x before 1.40.1. vector-toc-toggle-button-label is not escaped, but should be, because the line param can have markup.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| Debian:12 | mediawiki | 0 | 1:1.39.5-1~deb12u1 |
| Debian:13 | mediawiki | 0 | 1:1.39.5-1 |
| Mageia:9 | mediawiki | 0 | 1.35.14-1.mga9 |
| 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-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-2014-1610 MediaWiki 1.22.x before 1.22.2, 1.21.x before 1.21.5, and 1.19.x before 1.19.11, when… Also affects mediawiki
- CVE-2008-0460 Cross-site scripting (XSS) vulnerability in api.php in (1) MediaWiki 1.11 through… Also affects mediawiki
- CVE-2025-61653 Vulnerability in Wikimedia Foundation TextExtracts. Also affects mediawiki
- CVE-2025-61646 Vulnerability in Wikimedia Foundation MediaWiki. Also affects mediawiki