Vulnerability · Published Apr 24, 2025 · Assigned by GitHub_M

CVE-2025-43855tRPC 11 WebSocket DoS Vulnerability

High 8.7

In plain English

A high-severity security flaw in trpc from trpc. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.4% (higher than 37% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 4.0)8.7High
Exploit odds (30 days)0.4%top 63.2% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official description

tRPC allows users to build & consume fully typesafe APIs without schemas or code generation. In versions starting from 11.0.0 to before 11.1.1, an unhandled error is thrown when validating invalid connectionParams which crashes a tRPC WebSocket server. This allows any unauthenticated user to crash a tRPC 11 WebSocket server. Any tRPC 11 server with WebSocket enabled with a createContext method set is vulnerable. This issue has been patched in version 11.1.1.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
npm@trpc/server11.1.1GHSA-pj3v-9cm8-gvj8

Affected products (as reported)

VendorProductVersions
trpc trpc >= 11.0.0, < 11.1.1

Weakness: CWE-248 · Vector: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N

References