Here’s your Medium article draft on CVE-2026–10108.
The xiaomusic v0.5.7 file-serving endpoint checks whether a requested path starts with the configured music directory string but does not append a trailing separator, so sibling directories whose names share that prefix pass the check. An unauthenticated attacker could use path traversal sequences to read arbitrary files on the server.
medium.com
Published on medium.com
A newly disclosed high-severity vulnerability in xiaomusic v0.5.7 allows attackers to read arbitrary files from a server without any authentication, simply by exploiting a flaw in how the application validates file paths.[nvd.nist]
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
The path containment check compares the requested path against the music directory as a plain string prefix without appending a trailing path separator, so sibling directories sharing that prefix are accepted.
Impact
An unauthenticated remote attacker could read sensitive files such as configuration data, credentials, or logs from the server.
What the attacker needed
Network access to the endpoint; no authentication needed
The fix
The comparison should append the OS-specific trailing separator to the base directory and normalise and resolve the requested path before validating it, or use a dedicated path-containment function; the text does not say a patch was released.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
The app is supposed to hand out only files inside its music folder. To decide, it checks whether the requested path begins with the same text as the music folder's name. Because it forgets the final slash, a folder like 'music_backup' also begins with 'music', so the check wrongly lets it through, and an attacker can walk out of the music folder to read other files.
What is Path traversal?
Input that builds a file path escapes the intended folder, reading or writing files the application should never touch.