CVE-2014-2853: Mediawiki/core Cross-Site Scripting Vulnerability

MODERATE
Advisory Identifier: GHSA-6h86-9r5g-f2h5
CWE-79
Published
Advisory Summary

CVE-2014-2853 is a MODERATE cross-site scripting vulnerability (CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')) affecting Mediawiki/core libraries in the Packagist ecosystem. The issue involves cross-site scripting vulnerability in includes/actions/infoaction.php. Remediation is available by upgrading affected packages to version 1.21.9, 1.22.6.

CVE-2014-2853 at a Glance

CVE Identifier CVE-2014-2853
GHSA Identifier GHSA-6h86-9r5g-f2h5
Severity MODERATE
CVSS v3.1 Base Score N/A
CWE Classification CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
Affected Product Mediawiki/core
Package Ecosystem Packagist
Published Date
Last Updated

How to Fix CVE-2014-2853

To remediate this vulnerability, upgrade all affected Mediawiki/core dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

mediawiki/core fixed: 1.21.9
Upgrade mediawiki/core to 1.21.9
mediawiki/core fixed: 1.22.6
Upgrade mediawiki/core to 1.22.6
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for mediawiki/core

How to Check if You Are Affected

To determine whether your application is affected by CVE-2014-2853, inspect your project dependencies for Mediawiki/core:

inspect dependencies for mediawiki/core

Analyze the terminal output to locate any version of Mediawiki/core in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.21.9), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting'), where the product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. In Mediawiki/core, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

Cross-site scripting (XSS) vulnerability in includes/actions/InfoAction.php in MediaWiki before 1.21.9 and 1.22.x before 1.22.6 allows remote attackers to inject arbitrary web script or HTML via the sort key in an info action.

CVE-2014-2853 Affected Mediawiki/core Versions

2 component(s)
Fixed Versions:
1.21.91.22.6
Product / Package Ecosystem Affected Versions Fixed Version
mediawiki/core
Packagist
< 1.21.9
1.21.9
mediawiki/core
Packagist
≥ 1.22.0
< 1.22.6
1.22.6

References

Frequently Asked Questions

What is CVE-2014-2853?
CVE-2014-2853 is a security vulnerability in Mediawiki/core involving Cross-site scripting vulnerability in includes/actions/InfoAction.php under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting').
Which Mediawiki/core versions are affected?
Affected versions include releases prior to 1.21.9, 1.22.6 across affected packages: mediawiki/core.
What version fixes CVE-2014-2853?
Upgrading to 1.21.9, 1.22.6 (or the latest patched release for your respective branch) resolves the vulnerability.
Is mediawiki/core affected?
Yes, mediawiki/core is affected in releases prior to 1.21.9, 1.22.6. Upgrade your dependency to 1.21.9, 1.22.6 or later.
What CWE is associated with CVE-2014-2853?
CVE-2014-2853 is classified under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') (The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.).
How can I check Packagist dependencies for CVE-2014-2853?
Run the dependency tree command: 'inspect dependencies for mediawiki/core'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-6h86-9r5g-f2h5",
  "modified" : "2024-11-01T23:10:24Z",
  "published" : "2022-05-17T04:07:54Z",
  "aliases" : [ "CVE-2014-2853" ],
  "summary" : "Cross-site scripting vulnerability in includes/actions/InfoAction.php",
  "details" : "Cross-site scripting (XSS) vulnerability in includes/actions/InfoAction.php in MediaWiki before 1.21.9 and 1.22.x before 1.22.6 allows remote attackers to inject arbitrary web script or HTML via the sort key in an info action.",
  "severity" : [ ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "mediawiki/core"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.21.9"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "mediawiki/core"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "1.22.0"
      }, {
        "fixed" : "1.22.6"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2014-2853"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/wikimedia/mediawiki-core/commit/0b695ae09aada343ab59be4a3c9963995a1143b6"
  }, {
    "type" : "WEB",
    "url" : "https://bugzilla.redhat.com/show_bug.cgi?id=1091967"
  }, {
    "type" : "WEB",
    "url" : "https://bugzilla.wikimedia.org/show_bug.cgi?id=63251"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/wikimedia/mediawiki"
  }, {
    "type" : "WEB",
    "url" : "https://www.mediawiki.org/wiki/Release_notes/1.21#Changes_since_1.21.8"
  }, {
    "type" : "WEB",
    "url" : "https://www.mediawiki.org/wiki/Release_notes/1.22#Changes_since_1.22.5"
  }, {
    "type" : "WEB",
    "url" : "http://lists.wikimedia.org/pipermail/mediawiki-announce/2014-April/000149.html"
  }, {
    "type" : "WEB",
    "url" : "http://secunia.com/advisories/58262"
  }, {
    "type" : "WEB",
    "url" : "http://www.securityfocus.com/bid/67068"
  }, {
    "type" : "WEB",
    "url" : "http://www.securitytracker.com/id/1030161"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-79" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-11-01T23:10:24Z",
    "nvd_published_at" : "2014-04-29T18:55:00Z"
  }
}