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.
Published: 2026-10-14
Score: 5.3 Medium
EPSS: < 1% Very Low
KEV: No
Impact: Remote Code Execution
Action: Immediate Patch
AI Analysis

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.

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

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

Sat, 17 Oct 2026 18:00:00 +0000

Type Values Removed Values Added
First Time appeared Yourls
Yourls yourls
Vendors & Products Yourls
Yourls yourls

Wed, 14 Oct 2026 16:00:00 +0000

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'}


cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-10-14T17:47:22.055Z

Reserved: 2026-07-14T21:10:50.032Z

Link: CVE-2026-62858

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Deferred

Published: 2026-10-14T16:17:47.617

Modified: 2026-10-16T20:04:29.760

Link: CVE-2026-62858

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-10-17T17:45:11Z

Weaknesses
  • CWE-98

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