CVE-2026-10108: xiaomusic contains an unauthenticated path traversal vulnerability
xiaomusic v0.5.7 contains an unauthenticated path traversal vulnerability in the GET /music/{filepath:path} endpoint that allows unauthenticated attackers to read arbitrary files outside the intended music directory by exploiting an incomplete path prefix check.
Published May 29, 2026 · Updated Jul 2, 2026
Affected packages
xiaomusic
- Ecosystem
- PyPI
- Affected
- < 0.5.8
- Fixed in
- 0.5.8
- Check
pip show xiaomusic
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
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
- https://nvd.nist.gov/vuln/detail/CVE-2026-10108
- https://github.com/hanxi/xiaomusic/issues/890
- https://github.com/hanxi/xiaomusic/pull/891
- https://github.com/hanxi/xiaomusic/commit/88404da7a283f2c0a796a4cd16bbb6e6aa1f4722
- https://www.vulncheck.com/advisories/xiaomusic-path-traversal-via-get-music-endpoint
- https://github.com/advisories/GHSA-5j8p-5rrj-8wjg
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
