Summary
CVE-2026-132734 is an information exposure vulnerability in the ExternalData extension for MediaWiki (Wikimedia Foundation). It lets a user who can expand templates or wikitext make the server read local files that the web server can access, and leak the first few hundred bytes of each file. The CVE record rates it High (CVSS 8.7).
Technical details
- Root cause: The
#external_valueparser function accepts user-supplieduser fileandpassword fileparameters for database and LDAP connectors. These let wikitext point to arbitrary file system paths. - Trigger conditions: The attacker needs permission to add wikitext or template expansion on the wiki. They also need a database server they control.
- Attack vector: The attacker writes wikitext that sets
user file=/etc/passwd, for example, and points the connector at an attacker-controlled database host. When the server connects, the file contents are sent as authentication credentials. - Impact: Loss of confidentiality. According to the Wikimedia tracking task, roughly the first 250–330 bytes of any file readable by the web server can be disclosed.
- The CVE record lists these affected files:
includes/connectors/EDConnectorDb.php,includes/connectors/EDConnectorLdap.php,includes/presets/Test.phpandincludes/presets/docker-compose.yml.
Affected software
- MediaWiki ExternalData extension 3.7.1 and earlier, per the Wikimedia tracking task.
- The CVE record lists the MediaWiki release branches 1.43, 1.45, 1.46 and 1.47.
Severity
- CVSS v4.0 base score 8.7 (High):
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N - The CVE record provides only a CVSS v4.0 score. No v3.1 vector was found.
- The Wikimedia task describes the issue as medium severity.
Mitigation and recommended actions
- Immediate: Upgrade ExternalData to version 3.7.2 (released November 24, 2026) or later. This version removes the
user fileandpassword fileparameters for database and LDAP access. Credential files can now be set only in administrator-controlled PHP configuration. - If you cannot patch immediately: Restrict who can edit pages and expand templates on the wiki. Alternatively, disable the extension until you can upgrade. Block outbound database and LDAP connections from the web server to untrusted hosts. These steps are general precautions and are not vendor-documented workarounds.
- Review wiki content for
#external_valueand other ExternalData calls that useuser fileorpassword file.

