Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2026-111925 Overview
CVE-2026-111925 is a path traversal vulnerability [CWE-22] in Mopidy before version 4.0.5. The flaw resides in the FileLibraryProvider.lookup() method inside the file backend extension, which fails to verify that requested paths remain within the configured file/media_dirs directories. Unauthenticated clients can invoke core.library.lookup or core.tracklist.add over JSON-RPC or WebSocket with crafted file:// URIs. This lets attackers probe filesystem contents, read tag metadata, and play audio files located outside the intended sandbox.
Critical Impact
Unauthenticated remote attackers can enumerate arbitrary files on the Mopidy host and extract metadata from media outside the configured library directories.
Affected Products
- Mopidy music server versions prior to 4.0.5
- Mopidy file backend extension (mopidy._exts.file)
- Any deployment exposing the Mopidy JSON-RPC HTTP or WebSocket interface
Discovery Timeline
- 2026-10-19 - CVE CVE-2026-111925 published to NVD
- 2026-10-19 - Last updated in NVD database
Technical Details for CVE-2026-111925
Vulnerability Analysis
Mopidy exposes a JSON-RPC and WebSocket API through its HTTP frontend, and client calls such as core.library.lookup(uris) accept arbitrary URI strings. The file backend registers a handler for file:// URIs and resolves them through FileLibraryProvider.lookup(). Before the patch, that method converted the URI into a local filesystem path using paths.uri_to_path(uri) and then passed it directly to the media reader without validating that the result was inside any of the directories declared in the file/media_dirs configuration option.
Because the Mopidy HTTP frontend does not require authentication by default, any network-reachable client can issue these calls. The responses differentiate between existing readable files, unreadable paths, and non-media files, giving attackers an oracle for file enumeration. Metadata parsing additionally returns tag data embedded in media files found outside the sandbox, and core.tracklist.add can be used to play the discovered files on the server.
Root Cause
The root cause is a missing containment check in src/mopidy/_exts/file/library.py. The lookup logic trusted the input URI to point inside the operator-configured media directories, violating the principle of path canonicalization before use. No normalization or startswith-style comparison against the base directories was performed.
Attack Vector
Exploitation is network-based and requires no authentication or user interaction. An attacker sends a JSON-RPC request such as {"method":"core.library.lookup","params":{"uris":["file:///etc/passwd"]}} to the Mopidy HTTP endpoint. Error patterns and returned metadata reveal file existence and content attributes. Chaining with core.tracklist.add allows out-of-sandbox audio playback on the host.
logger.debug("Looking up file URI: %s", uri)
local_path = paths.uri_to_path(uri)
+ if not self._is_in_basedir(local_path):
+ logger.warning(
+ "Rejected attempt to look up path (%s) outside dirs defined "
+ "in file/media_dirs config.",
+ uri,
+ )
+ return []
+
try:
track = self._media_reader.read_media_info(uri).track
except MediaReaderError as e:
Source: Mopidy Commit f23c1f8. The patch introduces an _is_in_basedir() check that rejects any resolved path outside the configured file/media_dirs and logs the attempt.
Detection Methods for CVE-2026-111925
Indicators of Compromise
- JSON-RPC requests to /mopidy/rpc containing core.library.lookup or core.tracklist.add with file:// URIs referencing paths outside configured media_dirs.
- Repeated requests that iterate through sensitive paths such as /etc/, /root/, /home/*/.ssh/, or Windows user profile directories.
- WebSocket frames to the Mopidy HTTP frontend with file:// URIs targeting non-media file extensions.
Detection Strategies
- Enable HTTP access logging on the Mopidy frontend and alert on inbound RPC bodies containing file:// schemes with absolute paths outside the media library.
- After upgrading, monitor Mopidy logs for the warning string Rejected attempt to look up path introduced by the fix, which flags active probing.
- Correlate client IPs issuing high-volume lookup calls with the Mopidy process to identify enumeration attempts.
Monitoring Recommendations
- Forward Mopidy application and reverse proxy logs to a centralized log platform for retention and search.
- Baseline normal JSON-RPC method usage; alert on first-seen source addresses invoking library methods.
- Track process-level file access on the Mopidy host to detect reads of files outside configured library directories.
How to Mitigate CVE-2026-111925
Immediate Actions Required
- Upgrade Mopidy to version 4.0.5 or later, which includes the containment check.
- Restrict network exposure of the Mopidy HTTP and WebSocket endpoints to trusted management networks only.
- Place Mopidy behind an authenticating reverse proxy if remote access is required.
Patch Information
The fix is included in Mopidy Release v4.0.5 via commit f23c1f8621c3f4eb07a35d37fccb597449d36415. The patch adds an _is_in_basedir() guard in FileLibraryProvider.lookup() that rejects URIs resolving outside the configured file/media_dirs. See the VulnCheck Advisory for Mopidy and the related Mopidy Issue #2350 Discussion for additional context.
Workarounds
- Disable the file backend extension by setting [file] enabled = false in mopidy.conf if local file playback is not required.
- Bind the HTTP frontend to 127.0.0.1 using the [http] hostname configuration to prevent remote JSON-RPC access.
- Run Mopidy under a dedicated unprivileged user account whose filesystem read permissions are limited to the intended media directories.
# /etc/mopidy/mopidy.conf - restrict exposure until patched
[http]
hostname = 127.0.0.1
port = 6680
[file]
enabled = false
media_dirs =
/var/lib/mopidy/media
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

