PatchClock

PHP security digest · 18 Sep 2026

Semantic MediaWiki has an open redirect in Special:URIResolver

Medium CVE-2026-77609

Package
mediawiki/semantic-media-wiki
Fixed in
7.2.0
Published
Fri 18 Sep 2026, 17:51 LisbonUpdated Mon 26 Oct 2026, 00:25 Lisbon
Installs on Packagist
405K

In plain words

An attacker can use Special:URIResolver to redirect a visitor from a trusted wiki URL to an attacker-influenced host, which can support phishing. This happens when a user-controlled subpage resolves to an off-host target, including through an interwiki prefix, because the final redirect URL is not validated.

Affected versions

PackageAffectedFixed in
mediawiki/semantic-media-wiki<= 7.1.07.2.0

Am I affected?

Look for mediawiki/semantic-media-wiki in composer.lock. Versions up to and including 7.1.0 are affected; 7.2.0 is fixed. Check whether your wiki makes Special:URIResolver available, and review interwiki prefixes that resolve to foreign wikis: the vulnerable feature redirects to resolved targets without checking that they stay on the current host.

What to do

Check which version you have, then update to a fixed release for your branch (7.2.0):

composer show mediawiki/semantic-media-wiki | grep versions
composer update mediawiki/semantic-media-wiki

If your version constraint in composer.json keeps you below a fixed release, raise it first. Whether your configuration is affected, and the exact version ranges, are in the advisory itself.

The advisory's description

Failure mode

Special:URIResolver resolves its user-controlled subpage to a MediaWiki title and issues an HTTP 303 redirect to $title->getFullURL() without validating the resolved target. A crafted subpage can make that target point off-host: an interwiki prefix redirects to the foreign wiki (for example Special:URIResolver/mw-3AFoo, which decodes to mw:Foo, redirects to https://www.mediawiki.org/wiki/Foo), and where the resolved URL carries an authority the target can even embed user:pass@host credentials. The result is an open redirect to an attacker-influenced host, usable for phishing from a trusted wiki URL.

Remediation

  • The resolved target URL is parsed and compared against the current host at the redirect sink.
  • The redirect is rejected (bad-title error page) when a user or pass component is present, or when the host does not match the current host.

Maintenance note

Redirect code must validate the final target URL, not just the input path. Host comparison belongs at the redirect sink: each sink (special page, entry point) must validate its own target rather than relying on upstream normalisation.

Weakness: CWE-601 URL Redirection to Untrusted Site ('Open Redirect'). Reported by krabina.

The advisory

From OSV.dev, which gathers the GitHub Advisory Database, FriendsOfPHP and Drupal security advisories; the summary is theirs. The description, affected versions, weakness and credits are from the GitHub Advisory Database (CC BY 4.0). "In plain words", "Am I affected?" and "If you cannot update yet" are based on that advisory, and checked to name no version it does not.