/

CVE-2026-121555

Severity:

HIGH RISK

(7.5)

Missing Authentication (CWE-306) in Foxel File APIs

CVE-2026-121555

Deferred

Vulnerability type

Category:

Missing Authentication

CWE:

CWE-306

Impact:

Unauthorized file disclosure

Severity:

HIGH RISK

(7.5)

CVSS version:

3.1

Catch this CVE while code is being written

Detect vulnerable code directly in pull requests, so CVEs are fixed before merge.

Summary

Foxel's file streaming and thumbnail endpoints lack authentication, potentially allowing unauthenticated users to read files. The risk arises when these endpoints are reachable and a requester can provide a VFS mount prefix and relative path to access content across mounts, bypassing PathRule permission grants.

Foxel's file streaming and thumbnail endpoints lack authentication, potentially allowing unauthenticated users to read files. The risk arises when these endpoints are reachable and a requester can provide a VFS mount prefix and relative path to access content across mounts, bypassing PathRule permission grants.

Affected context

The issue concerns Foxel's /api/fs/stream and /api/fs/thumb endpoints. According to the vulnerability description, requests using a VFS mount prefix and relative path can retrieve full file contents or thumbnails across mounts, bypassing PathRule permission grants.

The issue concerns Foxel's /api/fs/stream and /api/fs/thumb endpoints. According to the vulnerability description, requests using a VFS mount prefix and relative path can retrieve full file contents or thumbnails across mounts, bypassing PathRule permission grants.

Exploit preconditions

  • Attack surface: The /api/fs/stream or /api/fs/thumb endpoint is reachable.
  • Required access: No authentication is required, according to the vulnerability description.
  • Trigger point: A request to either endpoint that specifies a VFS mount prefix and relative path.
  • Why exploitation is possible: The endpoints do not require authentication, and the described access path can bypass PathRule permission grants.
  • Attack surface: The /api/fs/stream or /api/fs/thumb endpoint is reachable.
  • Required access: No authentication is required, according to the vulnerability description.
  • Trigger point: A request to either endpoint that specifies a VFS mount prefix and relative path.
  • Why exploitation is possible: The endpoints do not require authentication, and the described access path can bypass PathRule permission grants.

Why this happens

The underlying issue is a missing authentication check on file access endpoints. This maps to CWE-306: Missing Authentication for Critical Function: a sensitive operation is available without first verifying the requester's identity. The described bypass of PathRule grants also indicates that authorization rules need to be enforced consistently for each requested file.

The underlying issue is a missing authentication check on file access endpoints. This maps to CWE-306: Missing Authentication for Critical Function: a sensitive operation is available without first verifying the requester's identity. The described bypass of PathRule grants also indicates that authorization rules need to be enforced consistently for each requested file.

Potential impact

  • Unauthenticated users may retrieve full file contents.
  • Unauthenticated users may access thumbnails.
  • Sensitive information stored across VFS mounts could be disclosed.
  • Unauthenticated users may retrieve full file contents.
  • Unauthenticated users may access thumbnails.
  • Sensitive information stored across VFS mounts could be disclosed.

General mitigation guidance

Defensive approaches generally ensure that sensitive file operations require authentication and that authorization is checked for every requested resource.

  • Apply secure-by-default authentication to file-serving endpoints.
  • Enforce per-file authorization and PathRule checks after resolving the requested mount and path.
  • Treat mount prefixes and relative paths as untrusted input; validate and constrain them to authorized resources.
  • Limit service and user privileges, and avoid exposing file-serving endpoints beyond their intended audience.

Defensive approaches generally ensure that sensitive file operations require authentication and that authorization is checked for every requested resource.

  • Apply secure-by-default authentication to file-serving endpoints.
  • Enforce per-file authorization and PathRule checks after resolving the requested mount and path.
  • Treat mount prefixes and relative paths as untrusted input; validate and constrain them to authorized resources.
  • Limit service and user privileges, and avoid exposing file-serving endpoints beyond their intended audience.

How teams detect issues like this

Review endpoint handlers and middleware for file access routes that can proceed without authentication or per-resource authorization. Static analysis and code review can look for streaming or thumbnail code paths that accept caller-controlled paths without applying access checks. Policy enforcement can require authentication and authorization checks for all sensitive file-serving routes; automated review tools may help identify inconsistent coverage.

Review endpoint handlers and middleware for file access routes that can proceed without authentication or per-resource authorization. Static analysis and code review can look for streaming or thumbnail code paths that accept caller-controlled paths without applying access checks. Policy enforcement can require authentication and authorization checks for all sensitive file-serving routes; automated review tools may help identify inconsistent coverage.

Sources

SourceLink
github.comgithub.com/DrizzleTime/Foxel
github.comgithub.com/DrizzleTime/Foxel/blob/v2.4.0/api/routers.py#L31
github.comgithub.com/DrizzleTime/Foxel/blob/v2.4.0/domain/virtual_fs/api.py#L164-L182
github.comgithub.com/DrizzleTime/Foxel/commit/73d9fa825e1004d37abb7b10faea0cd7f5bcb463
github.comgithub.com/DrizzleTime/Foxel/issues/152
vulncheck.comvulncheck.com/advisories/foxel-through-2.4.0-unauthenticated-file-read-via-api-fs-stream-and-api-fs-thumb

Frequently asked

questions

The described issue can be reached through the Foxel API endpoints if they are accessible to the requester; authentication is not required.

No authenticated account is required according to the description. The attacker must be able to reach an affected endpoint and supply a VFS mount prefix and relative path.

Require authentication for sensitive file operations and enforce authorization for each resolved file, including checks that honor PathRule grants.

Apply authentication and per-resource authorization consistently, treat paths as untrusted input, and include endpoint access-control checks in code review and security policy tests.

The described issue can be reached through the Foxel API endpoints if they are accessible to the requester; authentication is not required.

No authenticated account is required according to the description. The attacker must be able to reach an affected endpoint and supply a VFS mount prefix and relative path.

Require authentication for sensitive file operations and enforce authorization for each resolved file, including checks that honor PathRule grants.

Apply authentication and per-resource authorization consistently, treat paths as untrusted input, and include endpoint access-control checks in code review and security policy tests.

Find out what's already
exploitable in your codebase.