Discover the impact of CVE-2021-42048, a vulnerability in MediaWiki allowing admins to add malicious JavaScript code to the Newcomer home page. Learn how to mitigate this security risk.
An issue in the Growth extension in MediaWiki through version 1.36.2 allows admins to inject arbitrary JavaScript code into the Newcomer home page footer, potentially leading to its execution by zero-edit viewers.
Understanding CVE-2021-42048
What is CVE-2021-42048?
This CVE pertains to a vulnerability in MediaWiki that enables admin users to insert malicious JavaScript code in the Newcomer home page footer.
The Impact of CVE-2021-42048
The vulnerability allows attackers to execute arbitrary JavaScript code on viewers accessing the affected MediaWiki instance with zero edits to the page.
Technical Details of CVE-2021-42048
Vulnerability Description
The issue resides in the Growth extension of MediaWiki version 1.36.2, enabling unauthorized JavaScript injection by admins.
Affected Systems and Versions
Exploitation Mechanism
Admins can abuse this vulnerability to embed malicious JavaScript into the Newcomer home page footer, which gets executed when viewed by users with no edits.
Mitigation and Prevention
Immediate Steps to Take
Long-Term Security Practices
Patching and Updates
Apply all security patches and updates released by MediaWiki promptly to address known vulnerabilities.