Skip to content

Overly broad realtime session credentials allow cross-session stream modification and deletion

High
carderne published GHSA-cpx8-cffg-mp4w Jul 21, 2026

Software

triggerdotdev/trigger.dev

Affected versions

< 4.6.2

Patched versions

>= 4.6.2

Description

Summary

A caller with a public access token granting write access to a realtime session could initialize that session's input stream and receive a storage credential scoped to all realtime streams in the same environment, rather than only the authorized input stream.

This affected deployments using the S2 realtime backend.

Impact

The credential permitted appending records, creating streams, and trimming stream data. A caller could use it to forge output in their own session and, if they knew another stream's name, modify or trim other session and run streams in the same environment.

Trimming could permanently remove records from the affected realtime streams. The credential did not grant read access.

Details

Session input initialization correctly checked the caller's access to the requested session, but the returned storage credential used an environment-wide stream-prefix scope.

Restricting output initialization to secret-key authentication did not fully address the issue: public-token callers could still obtain the broad credential through input initialization and use it directly against the storage API.

Incomplete remediation

The original remediation restricted session output initialization to secret-key authentication. It did not narrow the storage credentials returned by session input initialization, which remained available to public tokens with session write access.

Consequently, the previously listed patched version, 4.5.6, did not fully resolve the vulnerability. The complete fix is included in version 4.6.2.

Patches

Upgrade all server instances to version 4.6.2 or later. Updating SDK packages alone does not apply this server-side fix.

The fix scopes session credentials to the exact authorized stream, including the channel name where applicable. Input credentials permit only append and stream creation; output credentials retain trimming permission only for their exact stream.

The credential cache has also been updated so fixed servers do not reuse previously cached, overly broad credentials.

Previously issued credentials remain valid until revoked or expired. After upgrading all instances, revoke affected credentials or allow their full configured lifetime to elapse after the last vulnerable instance stops issuing them. The default lifetime is 24 hours. The vulnerability remains exploitable through those credentials until revocation or expiry.

Workarounds

Until an upgrade is possible, prevent untrusted callers from initializing session streams. This disrupts session input functionality and does not invalidate credentials already issued; those must also be revoked or expire.

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
Low
User interaction
None
Scope
Unchanged
Confidentiality
None
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:L/UI:N/S:U/C:N/I:H/A:H

CVE ID

No known CVE

Weaknesses

Missing Authorization

The product does not perform an authorization check when an actor attempts to access a resource or perform an action. Learn more on MITRE.

Incorrect Authorization

The product performs an authorization check when an actor attempts to access a resource or perform an action, but it does not correctly perform the check. Learn more on MITRE.

Credits