CVE-2026-62858

Medium

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.

SeverityMedium
CVSS5.3
Exploit probability—
ProductYourls/yourls
PublishedOct 14, 2026
First seenOct 14, 2026
Weakness typeCWE-98CWE-98

How to fix

Update
  • yourls/yourls1.10.5 or later

Affected products

ProductAffected versionsFixed in
yourls/yourlsPackagistv < 1.10.51.10.5

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.