CVE-2014-2242
includes/upload/UploadBase.php in MediaWiki before 1.19.12, 1.20.x and 1.21.x before 1.21.6, and...
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.
Exploit likelihood
What each source reports
NVD Score used
4.3
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.
- Record
CVE-2014-2242- CVSS 2.0
- 4.3 Medium
AV:N/AC:M/Au:N/C:N/I:P/A:N - Weakness
- CWE-79
- Updated
- 2026-11-02
CVE List No score
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.
- Record
CVE-2014-2242- Updated
- 2026-11-02
EUVDEUVD-2014-2281 No score
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.
- Record
EUVD-2014-2281- Updated
- 2026-11-03
GitHub AdvisoriesGHSA-xvhv-fm6p-g8q4 No score
includes/upload/UploadBase.php in MediaWiki before 1.19.12, 1.20.x and 1.21.x before 1.21.6, and...
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.
- Record
GHSA-xvhv-fm6p-g8q4- Weakness
- CWE-79
- Updated
- 2026-11-02
OSV No score
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.
- Record
CVE-2014-2242- Updated
- 2026-11-02
OSVDEBIAN-CVE-2014-2242 No score
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.
- Record
DEBIAN-CVE-2014-2242- Updated
- 2026-11-02
OSVMGASA-2014-0124 No score
Updated mediawiki packages fix multiple vulnerabilities
Updated mediawiki packages fix security vulnerabilities:
MediaWiki before 1.22.3 does not block unsafe namespaces, such as a W3C XHTML namespace, in uploaded SVG files. Some client software may use these namespaces in a way that results in XSS. This was fixed by disallowing uploading SVG files using non-whitelisted namespaces (CVE-2014-2242).
MediaWiki before 1.22.3 performs token comparison that may be vulnerable to timing attacks. This was fixed by making token comparison use constant time (CVE-2014-2243).
MediaWiki before 1.22.3 could allow an attacker to perform XSS attacks, due to flaw with link handling in api.php. This was fixed such that it won't find links in the middle of api.php links (CVE-2014-2244).
- Record
MGASA-2014-0124- Updated
- 2026-11-02
OSVUBUNTU-CVE-2014-2242 No score
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.
- Record
UBUNTU-CVE-2014-2242- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
mediawikiDebian:12 |
before 1:1.19.12+dfsg-1 | 1:1.19.12+dfsg-1 |
mediawikiDebian:13 |
before 1:1.19.12+dfsg-1 | 1:1.19.12+dfsg-1 |
mediawikiDebian:14 |
before 1:1.19.12+dfsg-1 | 1:1.19.12+dfsg-1 |
mediawikiMageia:3 From an advisory covering 3 CVEs |
before 1.22.3-1.mga3 | 1.22.3-1.mga3 |
mediawikiMageia:4 From an advisory covering 3 CVEs |
before 1.22.3-1.mga4 | 1.22.3-1.mga4 |
History
| Recorded | Changed | Sources |
|---|---|---|
| affected, facts | ||
| affected | ||
| aliases | EUVD | |
| first indexed | CVE List, GitHub Advisories, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2014-2242 is a medium vulnerability (CVSS 4.3) in Mediawiki, published March 2, 2014. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 2.44%, the 84th percentile. Fixed in mediawiki 1:1.19.12+dfsg-1.
References
securityfocus.com/bid/65910
openwall.com/lists/oss-security/2014/02/28/1
gerrit.wikimedia.org/r
lists.wikimedia.org/pipermail/mediawiki-announce/2014-February/000141.html
bugzilla.wikimedia.org/show_bug.cgi?id=60771
openwall.com/lists/oss-security/2014/03/01/2
Show 8 moreShow less
bugzilla.redhat.com/show_bug.cgi?id=1071135
nvd.nist.gov/vuln/detail/CVE-2014-2242
github.com/advisories/GHSA-xvhv-fm6p-g8q4
security-tracker.debian.org/tracker/CVE-2014-2242
advisories.mageia.org/MGASA-2014-0124.html
bugs.mageia.org/show_bug.cgi?id=12931
ubuntu.com/security/CVE-2014-2242
cve.org/CVERecord?id=CVE-2014-2242