CVE-2026-62858: YOURLS Unauthenticated File Inclusion Vulnerability
MODERATECVE-2026-62858 is a MODERATE (CVSS 5.3) unauthenticated file inclusion vulnerability (CWE-98: Improper Control of Filename for Include/Require Statement in PHP Program ('PHP Remote File Inclusion')) affecting YOURLS libraries in the Packagist ecosystem. The issue involves unauthenticated file inclusion. Remediation is available by upgrading affected packages to version 1.10.5.
CVE-2026-62858 at a Glance
Security Impact
CVSS: 5.3
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L).
How to Fix CVE-2026-62858
To remediate this vulnerability, upgrade all affected YOURLS dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade yourls/yourls to 1.10.5
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for yourls/yourls
How to Check if You Are Affected
To determine whether your application is affected by CVE-2026-62858, inspect your project dependencies for YOURLS:
inspect dependencies for yourls/yourls
Analyze the terminal output to locate any version of YOURLS in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.10.5), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-98: Improper Control of Filename for Include/Require Statement in PHP Program ('PHP Remote File Inclusion'), where the php application receives input from an upstream component, but it does not restrict or incorrectly restricts the input before its usage in "require," "include," or similar functions. In YOURLS, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2026-62858 Affected YOURLS Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
yourls/yourls
|
Packagist |
< 1.10.5
|
1.10.5
|
References
Frequently Asked Questions
What is CVE-2026-62858?
Which YOURLS versions are affected?
What version fixes CVE-2026-62858?
Is yourls/yourls affected?
What is the CVSS score of CVE-2026-62858?
What CWE is associated with CVE-2026-62858?
How can I check Packagist dependencies for CVE-2026-62858?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-f8ff-652m-j5rx",
"modified" : "2026-10-15T20:13:03Z",
"published" : "2026-10-15T20:13:02Z",
"aliases" : [ "CVE-2026-62858" ],
"summary" : "YOURLS: Unauthenticated File Inclusion",
"details" : "## Summary\n\nYOURLS versions ≤1.10.4 contain an unauthenticated path traversal vulnerability that allows attackers to include and execute arbitrary PHP files on the server without any credentials.\n\n## Details\n\nThe vulnerability exists because YOURLS uses **URL sanitization functions** (`yourls_sanitize_url()`, `yourls_esc_url()`) to filter request paths, but these functions are designed to clean URLs, not filesystem paths. They preserve `/` and `.` characters, allowing `../` sequences to pass through unfiltered.\n\nThe unsanitized keyword is then directly concatenated into a filesystem path and passed to `file_exists()` and later `include()` operations, enabling path traversal attacks.\n\n**Data Flow:**\n```\nHTTP Request URI (with ../)\n ↓\nyourls_get_request() (no sanitization)\n ↓\nyourls_sanitize_url() (preserves / and .)\n ↓\nyourls_esc_url() (permits / and . via regex)\n ↓\nKeyword extraction (preserves ../)\n ↓\nfile_exists(YOURLS_PAGEDIR . \"/$keyword.php\") ← Sink\n ↓\ninclude(YOURLS_PAGEDIR . \"/$keyword.php\") ← Code Execution\n```\n\n## Proof of Concept (POC)\n\nIn the concept validation, we assume that the attacker has uploaded a `test.php` file to the web root directory, but it cannot be accessed directly. (Of course, it could also be any path, such as `/tmp/test.php`)\n\n### Setup\nPlace a test file in web root:\n\n`./test.php`:\n```php\n<?php\nphpinfo();\n?>\n```\n<img width=\"502\" height=\"126\" alt=\"image\" src=\"https://github.com/user-attachments/assets/14f33f90-625b-4c65-8abf-244af2385f68\" />\n\n\n### Attack Request\n```http\nGET /../../test HTTP/1.1\nHost: target.com\nConnection: close\n```\n\n### Response (Apache Environment)\n\n<img width=\"1704\" height=\"614\" alt=\"image\" src=\"https://github.com/user-attachments/assets/8750a3c0-a96c-4896-a087-d7b5cfeccd30\" />\n\n\n## Impact\n1. Remote execution of uploaded PHP files – An attacker uploads a malicious PHP file to an arbitrary location on the server (e.g., via another vulnerability or file upload feature), obtains its absolute path but cannot access it directly. The attacker then leverages this vulnerability to include and execute the PHP file, gaining code execution privileges.\n\n2. Indirect triggering of PHP code injection – If a PHP code injection point exists on the system (e.g., log injection, session injection) but the injected file cannot be accessed directly due to configuration restrictions, the attacker can use this vulnerability to include and execute the injected code, achieving remote command execution or further compromise.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Packagist",
"name" : "yourls/yourls"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "1.10.5"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "<= 1.10.4"
}
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/YOURLS/YOURLS/security/advisories/GHSA-f8ff-652m-j5rx"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-62858"
}, {
"type" : "WEB",
"url" : "https://github.com/YOURLS/YOURLS/pull/4142"
}, {
"type" : "WEB",
"url" : "https://github.com/YOURLS/YOURLS/commit/4e85972160a96e03a419a442d5bd8f21f2f02ddb"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/YOURLS/YOURLS"
}, {
"type" : "WEB",
"url" : "https://github.com/YOURLS/YOURLS/releases/tag/1.10.5"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-98" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2026-10-15T20:13:02Z",
"nvd_published_at" : "2026-10-14T16:17:47Z"
}
}