CVE-2026-13706

UrlShortener extension url validation can be bypassed due to difference between php url parsing and WHATWG

Published Jul 1, 2026 CVSS 4.0 · 0 Low EPSS < 1% KEV · Not listed
Description
Improper input validation vulnerability in Wikimedia Foundation UrlShortener.

This vulnerability is associated with program files includes/UrlShortenerUtils.Php.

Analysis

AI-generated

Technical impact

The vulnerability stems from an improper input validation in the UrlShortener extension’s URL handling function, which first applies PHP’s native URL parser and then processes the URL according to the WHATWG standard. Because the two parsers interpret certain syntactic constructs differently, an attacker can craft a short URL that passes PHP’s checks but is parsed differently by the WHATWG validator, allowing the link to redirect to an arbitrary host. The primary impact is an open redirect that can be leveraged for phishing or malware delivery, and the weakness aligns with CWE-20.

Affected Systems

The UrlShortener extension is part of Wikimedia Foundation sites. The CVE description does not specify affected versions, so the scope of the vulnerability is unknown. Sites that have not applied the fix documented in Phabricator ticket T418533 should verify whether they are vulnerable.

Risk and Exploitability

The EPSS score is below 1 %, indicating a low overall probability of public exploitation, and the vulnerability is not present in the CISA KEV catalog. The CVSS score of 8.8 indicates a high severity risk, underscoring the vulnerability’s potential to significantly undermine user trust and facilitate phishing. Based on the description, it is inferred that an attacker could craft a short URL that passes initial checks but redirects to an arbitrary host, causing a victim clicking the URL to be redirected to a malicious host. The low exploitation probability keeps the immediate risk moderate, yet the potential impact remains high if the extension is widely deployed.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply the updated UrlShortener extension released in Wikimedia Phabricator ticket T418533, which corrects the validation mismatch.
  • If an immediate update is not possible, disable the UrlShortener extension or block shortlink generation until the secure version is available.
  • Implement strict URL validation that follows the WHATWG specification and enforce a whitelist of trusted hostnames to prevent unintended redirects.

Generated by OpenCVE AI on August 12, 2026 at 00:36 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
References
History
Type Values Removed Values Added
First Time appeared Wikimedia
Wikimedia urlshortener
Vendors & Products Wikimedia
Wikimedia urlshortener
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description Improper input validation vulnerability in Wikimedia Foundation UrlShortener. This vulnerability is associated with program files includes/UrlShortenerUtils.Php.
Title UrlShortener extension url validation can be bypassed due to difference between php url parsing and WHATWG
Weaknesses CWE-20
References
Metrics cvssV4_0

{'score': 0, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:N/SC:N/SI:N/SA:N'}

Weaknesses
  • CWE-20

    Improper Input Validation

Sources

Status
PUBLISHED
Assigner
wikimedia-foundation
Published
Updated
Nov 17, 2026, 11:21 PM
Reserved
Jun 29, 2026, 1:21 PM
Status
Analyzed
Published
Jul 1, 2026, 4:16 PM
Modified
Nov 18, 2026, 12:18 AM