---
id: CVE-2026-62858
title: 'YOURLS is a self-hosted, customizable URL shortener written in PHP'
summary: >-
  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
  tra…
severity: medium
cvss: 5.3
cvssVector: 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L'
cwe:
  - CWE-98
vendor: YOURLS
product: YOURLS
affected:
  - YOURLS < 1.10.5
patched:
  - yourls/yourls 1.10.5
published: '2026-10-14'
updated: '2026-10-16'
sourceUpdated: '2026-10-16T20:04:29.760'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-62858'
references:
  - url: >-
      https://github.com/YOURLS/YOURLS/commit/4e85972160a96e03a419a442d5bd8f21f2f02ddb
    label: security-advisories@github.com
  - url: 'https://github.com/YOURLS/YOURLS/pull/4142'
    label: security-advisories@github.com
  - url: 'https://github.com/YOURLS/YOURLS/releases/tag/1.10.5'
    label: security-advisories@github.com
  - url: 'https://github.com/YOURLS/YOURLS/security/advisories/GHSA-f8ff-652m-j5rx'
    label: security-advisories@github.com
  - url: 'https://github.com/YOURLS/YOURLS/security/advisories/GHSA-f8ff-652m-j5rx'
    label: 134c704f-9b21-4f2e-91b3-4a467353bcc0
  - url: 'https://nvd.nist.gov/vuln/detail/CVE-2026-62858'
  - url: 'https://github.com/advisories/GHSA-f8ff-652m-j5rx'
tags:
  - nvd
  - cve.org
  - exploit-available
  - ghsa
  - composer
epss: 0.00468
epssPercentile: 0.40353
aliases:
  - GHSA-f8ff-652m-j5rx
ecosystem: composer
exploitAvailable: true
ssvc:
  exploitation: poc
  automatable: 'no'
  technicalImpact: partial
  timestamp: '2026-10-14T17:46:13.681061Z'
ingestedAt: '2026-10-14T16:40:32.126Z'
---

## Overview

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.

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.

## Package advisory (CVE-2026-62858)

Affected packages:

- `yourls/yourls <= 1.10.4`

Patched in:

- `yourls/yourls 1.10.5`

Source: https://github.com/advisories/GHSA-f8ff-652m-j5rx
