CVE-2026-62858: YOURLS unauthenticated path traversal file inclusion

CVE-2026-62858 · Severity: medium · CVSS 5.3 · Published 2026-10-14

YOURLS is a URL shortener service. Versions up to 1.10.4 allow unauthenticated attackers to bypass security checks and execute arbitrary PHP code on the server by crafting specially-formed requests that traverse outside the intended directory. This could lead to complete server compromise if an attacker can upload or inject malicious code.

Technologies: yourls/yourls (Packagist), YOURLS. Vendors: Packagist, YOURLS.

Quick answers

Is CVE-2026-62858 exploited in the wild?
No. Junglewise Threat Intelligence has no report of CVE-2026-62858 being exploited in the wild.
How severe is CVE-2026-62858?
Medium severity, with a CVSS score of 5.3, published 14 October 2026.
Which products and versions are affected?
yourls/yourls (Packagist) <= 1.10.4, ECOSYSTEM:introduced=0,fixed=1.10.5; YOURLS ≤1.10.4.
Is there a fix for CVE-2026-62858?
Yes. yourls/yourls (Packagist): upgrade to 1.10.5 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
How is CVE-2026-62858 attacked?
It is attacked over the network, in a web application.
Am I affected by CVE-2026-62858?
Check whether you run yourls/yourls (Packagist) or YOURLS at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

How to fix

  • yourls/yourls (Packagist): upgrade to 1.10.5 or later
    composer require yourls/yourls:^1.10.5

Technical details

The vulnerability is a path traversal flaw in the keyword sanitization logic. YOURLS uses URL sanitization functions (`yourls_sanitize_url()`, `yourls_esc_url()`) that preserve `/` and `.` characters, allowing `../` sequences to bypass filtering. The unsanitized keyword is directly concatenated into filesystem paths passed to `file_exists()` and `include()`, enabling arbitrary local file inclusion and PHP execution.

Affected products

  • YOURLS YOURLS ≤1.10.4

Identifiers

  • CVE-2026-62858
  • GHSA-f8ff-652m-j5rx

Timeline

  • 2026-10-15: disclosed

This page as Markdown. Free to reuse under CC BY 4.0 with a link back.