GitHub Advisoryadvisory · PyPI
GHSA-5j8p-5rrj-8wjg xiaomusic contains an unauthenticated path traversal vulnerability
HIGH
Official page ↗
- Aliases
- CVE-2026-10108
- Ecosystem
- PyPI
- Packages
- xiaomusic
- Severity
- High
- CVSS vector
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
- Weaknesses
- CWE-22
- Reviewed
- 2026-07-02
Affected packages
• PyPI xiaomusic: < 0.5.8 → fixed in 0.5.8
Description
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.
Related
Alias · CVE (1)
- CVE-2026-10108 xiaomusic v0.5.7 contains an unauthenticated path traversal vulnerability in the GET /music/{file_path:path} endpoint that allows… vulnerability
Weakness · CWE (1)
- CWE-22 Improper Limitation of a Pathname to a Restricted Directory weakness
References
- https://nvd.nist.gov/vuln/detail/CVE-2026-10108 advisory
- https://github.com/hanxi/xiaomusic/issues/890 web
- https://github.com/hanxi/xiaomusic/pull/891 web
- https://github.com/hanxi/xiaomusic/commit/88404da7a283f2c0a796a4cd16bbb6e6aa1f4722 web
- https://github.com/hanxi/xiaomusic package
- https://www.vulncheck.com/advisories/xiaomusic-path-traversal-via-get-music-endpoint web