CVE-2026-62858 YOURLS: Unauthenticated File Inclusion

Medium 5.3 Published Updated

Unauthenticated attackers can traverse directories to include and execute local PHP files, leading to remote code execution.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Local or same network only
Victim action needed
Not needed
Fix
Available

What is CVE-2026-62858?

CVE-2026-62858 is a medium-severity path traversal vulnerability in YOURLS, published on 14 Oct 2026. It can only be exploited from the same machine or local network, with no action from the victim.

Official 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.

Weakness: CWE-98

Which versions are affected by CVE-2026-62858?

2 open source packages ship an affected version, including yourls/yourls.

PackageAffectedFixed in
yourls/yourls PackagistAll versions1.10.5
yourls/yourls PackagistAll versions1.10.5

How do I fix CVE-2026-62858?

Upgrade yourls/yourls to 1.10.5 or later.

Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.

Is CVE-2026-62858 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-62858 exists.

Sources

Also known as GHSA-f8ff-652m-j5rx.

Is CVE-2026-62858 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free