Skip to content

Unsigned guest UUID cookie allows administrators to mint JWTs for any guest

High
chase-roohms published GHSA-38pw-jjq6-6w6p Sep 29, 2026

Package

transmute

Affected versions

>= 0.7.0, <= 2.0.0

Patched versions

>= 2.1.0

Description

Summary

When guest access is enabled, POST /api/guest/session resumes an existing guest solely from the unsigned transmute_guest_id cookie. The cookie value is the guest's ordinary database UUID, not an independent secret or a server-authenticated session token. If an attacker learns a guest UUID, the attacker can place it in the cookie and obtain a fresh JWT for that guest.

This is directly exploitable by an application administrator: the admin-only user listing discloses every guest's complete UUID, while normal file endpoints correctly deny an administrator direct access to guest-owned files. Forging the resume cookie bypasses that boundary and exposes the guest's file list and contents.

Affected versions

  • Introduced with guest functionality in a97fcb874f90292b2682357cbc54a89af93b4010.
  • Affected tagged releases: v0.7.0 through v2.0.0 (including alias tags).
  • Guest access must be enabled with ALLOW_UNAUTHENTICATED=true.
  • Confirmed through the real API in the official v2.0.0 image.

Root cause

The server reads the cookie and directly treats its value as a user primary key, then issues an access token for the matched account. There is no signature, MAC, random guest-session secret, or proof that the requester originally created that guest. UUID v4 entropy prevents blind online guessing, but does not make a public account identifier an authenticated session credential. In particular, the application deliberately returns the same UUID from the administrator user-list endpoint.

Impact

An application administrator can bypass file ownership checks and fully act as any guest, including listing, downloading, converting, modifying, and deleting guest-owned data. Any other disclosure of a guest UUID would enable the same takeover without administrator privileges. The forged cookie also mints a new JWT, so possession of a previous victim JWT is unnecessary.

Severity

Suggested CVSS v3.1:

CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H — 7.2

This score uses the demonstrated, reliable administrator path. The conditional guest-UUID disclosure path should not be used to claim a lower privilege requirement without a separate proof.

Weaknesses: CWE-287 (Improper Authentication) and CWE-639 (Authorization Bypass Through User-Controlled Key).

Recommended remediation

Do not use the public user UUID as a guest session credential. Generate a separate cryptographically random resume secret, store only its hash against the guest record/session, and rotate it when used or when the guest is renewed. Alternatively, use an authenticated-encryption or signed cookie with strict expiration and purpose separation. A signature must cover the guest UUID and expiry using a server secret.

Keep HttpOnly, SameSite=Strict, Secure under HTTPS, and the narrow cookie path as defense in depth. Add negative tests proving that an arbitrary or another guest's UUID cannot resume that guest, even when the UUID is known.

AI-assistance disclosure

AI-assisted tooling was used to inspect code, construct the isolated API proof, and draft this report. The reporter reviewed and reproduced the issue against the official image and takes responsibility for the submission.

Severity

High

CVSS overall score

This score calculates overall vulnerability severity from 0 to 10 and is based on the Common Vulnerability Scoring System (CVSS).
/ 10

CVSS v3 base metrics

Attack vector
Network
Attack complexity
Low
Privileges required
High
User interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

CVSS v3 base metrics

Attack vector: More severe the more the remote (logically and physically) an attacker can be in order to exploit the vulnerability.
Attack complexity: More severe for the least complex attacks.
Privileges required: More severe if no privileges are required.
User interaction: More severe when no user interaction is required.
Scope: More severe when a scope change occurs, e.g. one vulnerable component impacts resources in components beyond its security scope.
Confidentiality: More severe when loss of data confidentiality is highest, measuring the level of data access available to an unauthorized user.
Integrity: More severe when loss of data integrity is the highest, measuring the consequence of data modification possible by an unauthorized user.
Availability: More severe when the loss of impacted component availability is highest.
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H

CVE ID

No known CVE

Weaknesses

Improper Authentication

When an actor claims to have a given identity, the product does not prove or insufficiently proves that the claim is correct. Learn more on MITRE.

Authorization Bypass Through User-Controlled Key

The system's authorization functionality does not prevent one user from gaining access to another user's data or record by modifying the key value identifying the data. Learn more on MITRE.

Credits