Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. xiaomusic
  4. ›
  5. CVE-2026-10108

CVE-2026-10108: xiaomusic contains an unauthenticated path traversal vulnerability

May 29, 2026 (updated July 2, 2026)

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.

References

  • github.com/advisories/GHSA-5j8p-5rrj-8wjg
  • github.com/hanxi/xiaomusic/commit/88404da7a283f2c0a796a4cd16bbb6e6aa1f4722
  • github.com/hanxi/xiaomusic/issues/890
  • github.com/hanxi/xiaomusic/pull/891
  • nvd.nist.gov/vuln/detail/CVE-2026-10108
  • www.vulncheck.com/advisories/xiaomusic-path-traversal-via-get-music-endpoint

Code Behaviors & Features

Detect and mitigate CVE-2026-10108 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 0.5.8

Fixed versions

  • 0.5.8

Solution

Upgrade to version 0.5.8 or above.

Impact 7.5 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

Learn more about CVSS

Weakness

  • CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

Source file

pypi/xiaomusic/CVE-2026-10108.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Thu, 16 Jul 2026 00:19:32 +0000.