DSA-2957-1: mediawiki - security update

mediawiki Updated 02 Oct 2025

Summary

12/06/2014
N/A
Yes i
Unrated
Not published

DSA-2957-1: mediawiki - security update. Affects mediawiki versions < 1:1.19.16+dfsg-0+deb7u1. Fixed in 1:1.19.16+dfsg-0+deb7u1. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Mobile apps built by Devnack Design, build and launch iOS and Android apps with a senior product team. From idea to store release Start a project

Background

Mediawiki is a popular wiki engine used for creating and managing collaborative websites. It provides a platform for users to create and edit content in a structured manner. This vulnerability affects Mediawiki versions with $wgRawHtml enabled, allowing an unauthenticated attacker to insert malicious JavaScript through invalid usernames on the Special:PasswordReset page. This can lead to a cross-site scripting (XSS) attack.

Vulnerability Detail

The vulnerability arises from the way Mediawiki handles invalid usernames on the Special:PasswordReset page. When $wgRawHtml is enabled, the input is parsed as wikitext, allowing an attacker to inject malicious JavaScript code. By crafting a specially crafted username, an attacker can execute arbitrary code in the context of the victim's browser, potentially leading to session hijacking, data theft, or other malicious activities.

How To Fix

Minimum fixed version

1:1.19.16+dfsg-0+deb7u1

This is the first release that contains the fix.

sudo apt-get install --only-upgrade mediawiki

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

If upgrading immediately is not feasible, a temporary workaround is to disable the $wgRawHtml feature in the Mediawiki configuration. This can be done by modifying the configuration file and setting $wgRawHtml to false. However, this workaround may impact certain functionality that relies on raw HTML input.

Conclusion

The vulnerability in Mediawiki allows an unauthenticated attacker to execute arbitrary JavaScript code through invalid usernames on the Special:PasswordReset page. Upgrading to the patched versions or disabling the $wgRawHtml feature are recommended solutions. It is crucial to apply these fixes to prevent potential XSS attacks and protect the integrity of the wiki content. For further assistance or support in vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for mediawiki →

Share this vulnerability

FAQ

The vulnerability allows an unauthenticated attacker to execute arbitrary JavaScript code on the affected Mediawiki instance. This can lead to various malicious activities, including session hijacking, data theft, and defacement of the wiki pages.

Yes, this vulnerability can be exploited remotely by sending a specially crafted request to the affected Mediawiki instance.

There have been no known instances of this vulnerability being exploited in the wild at the time of this advisory. However, it is important to apply the necessary patches to mitigate the risk.

No, there is no specific CVSS score provided for this vulnerability in the advisory.

For more information about this vulnerability, you can refer to the Debian Security Advisory DSA-2957-1.

How To Fix

Minimum fixed version

1:1.19.16+dfsg-0+deb7u1

This is the first release that contains the fix.

sudo apt-get install --only-upgrade mediawiki

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback