/

CVE-2026-69110

Severity:

CRITICAL RISK

(9.1)

Missing Authentication (CWE-22) in OpenCode Studio

CVE-2026-69110

Deferred

Vulnerability type

Category:

Broken Access Control

CWE:

CWE-22

Impact:

Unauthorized file disclosure and destructive resource manipulation

Severity:

CRITICAL RISK

(9.1)

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

OpenCode Studio versions before 2.4.4 expose file and video-management endpoints without authentication or authorization checks. An unauthenticated remote attacker may read temporary media and subtitle artifacts belonging to other users and delete videos by identifier.

Affected context

The issue occurs in OpenCode Studio deployments where the following endpoints are reachable by remote clients without an authenticated session or object-level authorization:

  • GET /api/tmp/:tmpFile
  • GET /api/music/:fileName
  • DELETE /api/short-video/:videoId

Deployments using affected releases and storing user-generated intermediate artifacts in the exposed directories may disclose audio, video, or subtitle files across user boundaries.

Exploit preconditions

  • Attack surface: Network-accessible OpenCode Studio HTTP API
  • Required access: No authentication or prior account access is required
  • Read trigger: A request to a temporary-file or music-file endpoint with a target file reference
  • Delete trigger: A request to the video deletion endpoint with a target video identifier
  • Why exploitation is possible: The endpoints do not adequately enforce authentication, authorization, or resource ownership before serving files or performing deletion

Why this happens

The underlying defect is an access-control failure at file-serving and resource-management endpoints. User-controlled file names or resource identifiers are accepted without reliably establishing the caller's identity and permission to access the selected object.

This behavior is associated with CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') because file-oriented endpoint input is not sufficiently constrained to an authorized resource scope. The missing authentication and object-level authorization controls allow requests to cross intended user or job boundaries.

Potential impact

  • Sensitive intermediate audio, video, or subtitle artifacts may be disclosed
  • Files belonging to other users or jobs could be accessed
  • Video resources may be deleted without authorization
  • Privacy, confidentiality, and content-integrity guarantees may be weakened
  • Exposed media may support further targeting of users or processing workflows

General mitigation guidance

Mitigation generally focuses on enforcing authentication and resource-level authorization before every file or video operation.

Common defensive patterns include:

  • Require authenticated sessions or service credentials for media and management endpoints
  • Verify that the requester owns or is explicitly permitted to access the referenced job, file, or video
  • Resolve file references against a controlled server-side mapping rather than accepting unrestricted path-like input
  • Constrain file access to dedicated directories and reject normalized paths outside the intended scope
  • Use opaque, non-guessable identifiers and avoid exposing shared temporary storage directly
  • Apply least-privilege permissions to application and storage processes
  • Require authorization checks and audit logging for destructive operations such as deletion

How teams detect issues like this

Detection can combine application testing, source review, and runtime monitoring.

Useful approaches include:

  • Static analysis rules that identify unauthenticated routes serving files or mutating resources
  • Code review checks for missing middleware, ownership checks, and path canonicalization
  • Policy tests requiring authentication and authorization on every media-management route
  • API tests that attempt cross-user file access and deletion using valid identifiers from another account
  • Monitoring for repeated requests to temporary-file, music-file, and video-deletion endpoints without authenticated context
  • Automated security review tools that flag direct filesystem access and identifier-based object operations without access checks

Sources

SourceLink
github.comgithub.com/Microck/opencode-studio/commit/1f4d7a7f52beb43105d345b26fd0c0ffc2bf0004
github.comgithub.com/Microck/opencode-studio/issues/54
github.comgithub.com/Microck/opencode-studio/pull/55
github.comgithub.com/Microck/opencode-studio/releases/tag/v2.4.4
vulncheck.comvulncheck.com/advisories/opencode-studio-unauthenticated-file-read-via-api-tmp-and-api-music

Frequently asked

questions

Yes. An attacker who can reach the affected HTTP API may submit requests without first authenticating.

No valid account is generally required when the endpoints are exposed as described. Network reachability and knowledge or discovery of a file name or video identifier may be sufficient.

Require authentication, enforce object-level authorization and ownership checks, and restrict file references to server-controlled resources within approved directories.

Apply consistent authorization middleware to every read and write endpoint, test cross-user access boundaries, canonicalize and constrain filesystem paths, and log sensitive media access and deletion events.

Find out what's already
exploitable in your codebase.