CVE-2026-62858

YOURLS: Unauthenticated File Inclusion

Published Oct 14, 2026 CVSS 3.1 · 5.3 Medium EPSS < 1% KEV · Not listed
Description
YOURLS is a self-hosted, customizable URL shortener written in PHP. Prior to 1.10.5, yourls_get_request() extracted the request path without sanitization, after which yourls_sanitize_url() and yourls_esc_url() preserved dot and slash traversal sequences before an attacker-controlled keyword reached file_exists() and include() under YOURLS_PAGEDIR. An unauthenticated remote attacker could traverse outside the intended pages directory and include a local PHP file that was already present on the server, such as an uploaded or injected file, causing the file to execute in the YOURLS web process. This issue is fixed in version 1.10.5.

Analysis

AI-generated

Technical impact

The vulnerability is a PHP file inclusion flaw that allows an unauthenticated attacker to construct a request path containing directory traversal sequences. The underlying OWASP CWE-98 weakness bypasses input sanitization, enabling the attacker to include a local PHP file that already exists on the server. If such a file is uploaded or present through other means, its code will execute within the YOURLS web process, providing complete control over the application scope. The impact is therefore remote code execution, which compromises confidentiality, integrity, and availability of the web process and any underlying data.

Affected Systems

YOURLS, a self-hosted URL shortener written in PHP, is affected in all releases prior to 1.10.5. The flaw resides in the yourls_get_request function, and the included files are resolved under the YOURLS_PAGEDIR directory. No specific patch version beyond 1.10.5 is required; any version earlier than that remains vulnerable.

Risk and Exploitability

The CVSS score of 5.3 indicates moderate severity, but the attack surface is broad: an unauthenticated external request can trigger the flaw. EPSS score of < 1% indicates a very low probability of exploitation at the present time, and the vulnerability is not listed in CISA KEV. Because the flaw allows arbitrary file inclusion without authentication or file permission checks, an attacker with network connectivity to the application can invoke the inclusion by crafting a request path. The ease of triggering it from any external client suggests a potential risk, but the low EPSS score indicates the current exploitation likelihood remains low.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply YOURLS 1.10.5 or later to remove the vulnerable inclusion logic and disable directory traversal in yourls_get_request
  • Prior to upgrading, delete or relocate any PHP files that are unintentionally placed in the YOURLS_PAGEDIR directory to prevent accidental execution
  • Ensure that the YOURLS_PAGEDIR is accessible only by authenticated users and implement proper access controls to limit exposure of the inclusion endpoint

Generated by OpenCVE AI on October 15, 2026 at 18:12 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-f8ff-652m-j5rx YOURLS: Unauthenticated File Inclusion
History
Type Values Removed Values Added
Metrics ssvc

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

Type Values Removed Values Added
First Time appeared Yourls
Yourls yourls
Vendors & Products Yourls
Yourls yourls
Type Values Removed Values Added
Description YOURLS is a self-hosted, customizable URL shortener written in PHP. Prior to 1.10.5, yourls_get_request() extracted the request path without sanitization, after which yourls_sanitize_url() and yourls_esc_url() preserved dot and slash traversal sequences before an attacker-controlled keyword reached file_exists() and include() under YOURLS_PAGEDIR. An unauthenticated remote attacker could traverse outside the intended pages directory and include a local PHP file that was already present on the server, such as an uploaded or injected file, causing the file to execute in the YOURLS web process. This issue is fixed in version 1.10.5.
Title YOURLS: Unauthenticated File Inclusion
Weaknesses CWE-98
References
Metrics cvssV3_1

{'score': 5.3, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L'}

Weaknesses
  • CWE-98

    Improper Control of Filename for Include/Require Statement in PHP Program ('PHP Remote File Inclusion')

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Oct 14, 2026, 5:47 PM
Reserved
Jul 14, 2026, 9:10 PM
Status
Deferred
Published
Oct 14, 2026, 4:17 PM
Modified
Oct 16, 2026, 8:04 PM