GHSA-59h8-w5q6-mfmp: Trigger.dev Unauthenticated Realtime Stream Data Injection Vulnerability

MODERATE
CVSS 5.3
CWE-306
Published
Advisory Summary

GHSA-59h8-w5q6-mfmp is a MODERATE (CVSS 5.3) unauthenticated realtime stream data injection vulnerability (CWE-306: Missing Authentication for Critical Function) affecting Trigger.dev libraries in the npm ecosystem. The issue involves unauthenticated realtime stream data injection via run friendlyid. Remediation is available by upgrading affected packages to version 4.5.5.

GHSA-59h8-w5q6-mfmp at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-59h8-w5q6-mfmp
Severity MODERATE
CVSS v3.1 Base Score 5.3
CWE Classification CWE-306: Missing Authentication for Critical Function
Affected Product Trigger.dev
Package Ecosystem npm
Published Date
Last Updated

Security Impact

CVSS: 5.3

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality None (C:N)
Integrity Low (I:L)
Availability None (A:N)

How to Fix GHSA-59h8-w5q6-mfmp

To remediate this vulnerability, upgrade all affected Trigger.dev dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

trigger.dev fixed: 4.5.5
npm install trigger.dev@4.5.5
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

npm ls trigger.dev

How to Check if You Are Affected

To determine whether your Node.js application is affected by GHSA-59h8-w5q6-mfmp, inspect your project dependencies using npm:

npm ls trigger.dev

Analyze the terminal output to locate any version of Trigger.dev in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 4.5.5), your application is affected.

Note: The npm ls trigger.dev command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-306: Missing Authentication for Critical Function, where the product does not perform any authentication for functionality that requires a provable user identity or consumes a significant amount of resources. In Trigger.dev, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

## Summary The POST handler for `/realtime/v1/streams/:runId/:streamId` has no authentication. Any entity that knows or guesses a run friendlyId can inject arbitrary data into its realtime stream. ## Vulnerability Details **File:** `apps/webapp/app/routes/realtime.v1.streams.$runId.$streamId.ts` The `action` handler (line 17) has no auth wrapper. The code comment says: "Plain action for backwards compatibility with older clients that don't send auth headers." The run lookup at line 29 uses `where: { friendlyId: runId }` with NO environment scoping (`runtimeEnvironmentId` is not checked), so production runs are accessible. Run friendlyIds follow predictable patterns (e.g., `run_1234abcd`). ## Steps to Reproduce ```bash # No authentication required curl -X POST "http://localhost:8030/realtime/v1/streams/run_KNOWN_ID/stream_1" -H "Content-Type: application/json" -d '{"injected": "data"}' ``` ## Impact Unauthenticated data injection into any run realtime stream. Cross-environment access (no scoping).

GHSA-59h8-w5q6-mfmp Affected Trigger.dev Versions

1 component(s)
Fixed Versions:
4.5.5
Product / Package Ecosystem Affected Versions Fixed Version
trigger.dev
npm
< 4.5.5
4.5.5

References

Frequently Asked Questions

What is GHSA-59h8-w5q6-mfmp?
GHSA-59h8-w5q6-mfmp is a security vulnerability in Trigger.dev involving Unauthenticated Realtime Stream Data Injection via Run FriendlyId under CWE-306: Missing Authentication for Critical Function.
Which Trigger.dev versions are affected?
Affected versions include releases prior to 4.5.5 across affected packages: trigger.dev.
What version fixes GHSA-59h8-w5q6-mfmp?
Upgrading to 4.5.5 (or the latest patched release for your respective branch) resolves the vulnerability.
Is trigger.dev affected?
Yes, trigger.dev is affected in releases prior to 4.5.5. Upgrade your dependency to 4.5.5 or later.
What is the CVSS score of GHSA-59h8-w5q6-mfmp?
GHSA-59h8-w5q6-mfmp has a CVSS v3.1 base score of 5.3 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N.
What CWE is associated with GHSA-59h8-w5q6-mfmp?
GHSA-59h8-w5q6-mfmp is classified under CWE-306: Missing Authentication for Critical Function (The product does not perform any authentication for functionality that requires a provable user identity or consumes a significant amount of resources.).
How can I check npm dependencies for GHSA-59h8-w5q6-mfmp?
Run the dependency tree command: 'npm ls trigger.dev'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-59h8-w5q6-mfmp",
  "modified" : "2026-10-02T22:39:57Z",
  "published" : "2026-10-02T22:39:57Z",
  "aliases" : [ ],
  "summary" : "Trigger.dev: Unauthenticated Realtime Stream Data Injection via Run FriendlyId",
  "details" : "## Summary\n\nThe POST handler for `/realtime/v1/streams/:runId/:streamId` has no authentication. Any entity that knows or guesses a run friendlyId can inject arbitrary data into its realtime stream.\n\n## Vulnerability Details\n\n**File:** `apps/webapp/app/routes/realtime.v1.streams.$runId.$streamId.ts`\n\nThe `action` handler (line 17) has no auth wrapper. The code comment says: \"Plain action for backwards compatibility with older clients that don't send auth headers.\"\n\nThe run lookup at line 29 uses `where: { friendlyId: runId }` with NO environment scoping (`runtimeEnvironmentId` is not checked), so production runs are accessible.\n\nRun friendlyIds follow predictable patterns (e.g., `run_1234abcd`).\n\n## Steps to Reproduce\n\n```bash\n# No authentication required\ncurl -X POST \"http://localhost:8030/realtime/v1/streams/run_KNOWN_ID/stream_1\"   -H \"Content-Type: application/json\"   -d '{\"injected\": \"data\"}'\n```\n\n## Impact\n\nUnauthenticated data injection into any run realtime stream. Cross-environment access (no scoping).",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "npm",
      "name" : "trigger.dev"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "4.5.5"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 4.5.4"
    }
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/triggerdotdev/trigger.dev/security/advisories/GHSA-59h8-w5q6-mfmp"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/triggerdotdev/trigger.dev/pull/4250"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/triggerdotdev/trigger.dev/commit/73d966ad226548b5f96fb5b4fc6fa607a3b7b8f8"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/triggerdotdev/trigger.dev"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/triggerdotdev/trigger.dev/releases/tag/v4.5.5"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-306" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-10-02T22:39:57Z",
    "nvd_published_at" : null
  }
}