CVE-2026-132696 in MediaWiki
Summary
by MITRE • 11/25/2026
Improper Access Control vulnerability in Wikimedia Foundation MediaWiki - OATHAuth Extension. This vulnerability is associated with program files src/HTMLForm/RecoveryCodesRemoveTemporaryForm.php, src/HTMLForm/RecoveryCodesStatusForm.php, src/Module/RecoveryCodes.php, src/Special/OATHManage.php. This issue affects MediaWiki - OATHAuth Extension: from 1.43.0 before 1.43.12, from 1.45.0 before 1.45.7, from 1.46.0 before 1.46.3.
If you want to get the best quality for vulnerability data then you always have to consider VulDB.
Analysis
by VulDB Data Team • 11/25/2026
The Wikimedia Foundation MediaWiki OATHAuth extension contains an improper access control vulnerability that allows unauthorized users to bypass security mechanisms designed for two-factor authentication recovery processes. This flaw is present in specific source files including src/HTMLForm/RecoveryCodesRemoveTemporaryForm.php, src/HTMLForm/RecoveryCodesStatusForm.php, src/Module/RecoveryCodes.php, and src/Special/OATHManage.php within versions of the OATHAuth extension ranging from 1.43.0 up to but not including 1.43.12, from 1.45.0 before 1.45.7, and from 1.46.0 before 1.46.3. The vulnerability stems from insufficient validation of user permissions when handling sensitive operations related to the management and removal of two-factor authentication recovery codes.
In a typical secure implementation, any action that modifies or displays critical security credentials such as TOTP recovery codes must be strictly gated behind robust authorization checks ensuring that only the authenticated owner of the account can perform these actions. However, in this vulnerable configuration, the application fails to adequately verify whether the requesting user has legitimate authority over the specific OATHAuth profile being accessed. This oversight creates a path for attackers who have obtained valid credentials or session tokens for one account to potentially interact with recovery code management interfaces intended for other accounts if they can manipulate request parameters or exploit session handling weaknesses.
The technical nature of this flaw aligns closely with CWE-284, which describes Improper Access Control where an actor is granted privileges that it should not have. Furthermore, the exploitation potential relates to ATT&CK technique T1078, Valid Accounts, as attackers would leverage legitimate but potentially compromised or misused credentials to access administrative functions they are not authorized for. The lack of proper authorization checks on endpoints responsible for removing temporary recovery codes and displaying their status means that an attacker could theoretically disable two-factor authentication protections for a target user without possessing the correct permissions, effectively stripping away a critical layer of defense.
The operational impact of this vulnerability is significant because it undermines the integrity of multi-factor authentication systems deployed across MediaWiki instances used by Wikimedia projects and other organizations relying on OATHAuth for enhanced security. If an attacker successfully exploits this access control flaw, they could remove recovery codes that serve as backup methods for account restoration, potentially locking out legitimate users or facilitating further unauthorized access if combined with other vulnerabilities such as session hijacking. This disruption affects both the availability of secure login mechanisms and the confidentiality of authentication data, leading to potential service denial and increased risk of account compromise.
Mitigation strategies require immediate upgrading of the OATHAuth extension to patched versions that address these authorization gaps. Administrators running MediaWiki should ensure they are using version 1.43.12 or later for the 1.43 branch, 1.45.7 or later for the 1.45 branch, and 1.46.3 or later for the 1.46 branch. Until upgrades can be performed, organizations should implement strict web application firewall rules to monitor and restrict access to OATHAuth management endpoints based on IP reputation and behavioral anomalies. Additionally, enforcing strong session management policies and monitoring logs for unusual patterns in recovery code manipulation requests can help detect potential exploitation attempts while patching efforts are underway.