Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. @trpc/server
  4. ›
  5. CVE-2025-43855

CVE-2025-43855: tRPC 11 WebSocket DoS Vulnerability

April 24, 2025

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.

References

  • github.com/advisories/GHSA-pj3v-9cm8-gvj8
  • github.com/trpc/trpc
  • github.com/trpc/trpc/blob/8cef54eaf95d8abc8484fe1d454b6620eeb57f2f/packages/server/src/adapters/ws.ts
  • github.com/trpc/trpc/commit/9beb26c636d44852e0f407f3d7a82ad54df65b4d
  • github.com/trpc/trpc/pull/5839
  • github.com/trpc/trpc/security/advisories/GHSA-pj3v-9cm8-gvj8
  • nvd.nist.gov/vuln/detail/CVE-2025-43855

Code Behaviors & Features

Detect and mitigate CVE-2025-43855 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 11.0.0 before 11.1.1

Fixed versions

  • 11.1.1

Solution

Upgrade to version 11.1.1 or above.

Weakness

  • CWE-248: Uncaught Exception
  • CWE-460: Improper Cleanup on Thrown Exception

Source file

npm/@trpc/server/CVE-2025-43855.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:14:39 +0000.