---
id: CVE-2026-10108
aliases:
  - GHSA-5j8p-5rrj-8wjg
title: xiaomusic contains an unauthenticated path traversal vulnerability
summary: xiaomusic contains an unauthenticated path traversal vulnerability
severity: high
cvss: 7.5
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N'
vendor: xiaomusic
product: xiaomusic
ecosystem: pip
affected:
  - xiaomusic < 0.5.8
patched:
  - xiaomusic 0.5.8
published: '2026-05-29'
updated: '2026-07-02'
source: OSV
sourceUrl: 'https://osv.dev/vulnerability/GHSA-5j8p-5rrj-8wjg'
references:
  - url: 'https://nvd.nist.gov/vuln/detail/CVE-2026-10108'
  - url: 'https://github.com/hanxi/xiaomusic/issues/890'
  - url: 'https://github.com/hanxi/xiaomusic/pull/891'
  - url: >-
      https://github.com/hanxi/xiaomusic/commit/88404da7a283f2c0a796a4cd16bbb6e6aa1f4722
  - url: 'https://github.com/hanxi/xiaomusic'
  - url: >-
      https://www.vulncheck.com/advisories/xiaomusic-path-traversal-via-get-music-endpoint
tags:
  - osv
  - pip
epss: 0.00513
epssPercentile: 0.42751
ingestedAt: '2026-07-08T18:25:46.017Z'
---

## Overview

xiaomusic v0.5.7 contains an unauthenticated path traversal vulnerability in the GET /music/{file_path:path} endpoint that allows unauthenticated attackers to read arbitrary files outside the intended music directory by exploiting an incomplete path prefix check. Attackers can request files from sibling directories whose names share the music_path prefix by crafting traversal sequences, bypassing the path restriction due to the missing trailing separator in the comparison logic to retrieve arbitrary files from the server.

## Affected packages

- `xiaomusic < 0.5.8`

## Remediation

Upgrade to a patched release:

- `xiaomusic 0.5.8`
