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.
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
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| npm | @trpc/server | 11.1.1 | GHSA-pj3v-9cm8-gvj8 |
Affected products (as reported)
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
- https://github.com/trpc/trpc/security/advisories/GHSA-pj3v-9cm8-gvj8 x_refsource_CONFIRM
- https://github.com/trpc/trpc/commit/9beb26c636d44852e0f407f3d7a82ad54df65b4d x_refsource_MISC