CVE-2014-2242 Cross-site scripting in n/a
Remote attackers can execute arbitrary scripts via malicious SVG uploads in MediaWiki, requiring user interaction to trigger the XSS payload.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is CVE-2014-2242?
CVE-2014-2242 is a medium-severity cross-site scripting vulnerability in Mediawiki Mediawiki, published on 2 Mar 2014. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.
Official description
includes/upload/UploadBase.php in MediaWiki before 1.19.12, 1.20.x and 1.21.x before 1.21.6, and 1.22.x before 1.22.3 does not prevent use of invalid namespaces in SVG files, which allows remote attackers to conduct cross-site scripting (XSS) attacks via an SVG upload, as demonstrated by use of a W3C XHTML namespace in conjunction with an IFRAME element.
Weakness: CWE-79
Which versions are affected by CVE-2014-2242?
It affects 1 product.
Products include Mediawiki Mediawiki.
How do I fix CVE-2014-2242?
Upgrade to a fixed version.
Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.
Is CVE-2014-2242 being exploited?
There is no known exploitation of CVE-2014-2242 in the wild and no public exploit code.
Other vulnerabilities in Mediawiki Mediawiki
Sources
Also known as DEBIAN-CVE-2014-2242, GHSA-xvhv-fm6p-g8q4.