Skip to content

← Public intelligence

npm package

@trpc/server

Open actionable advisories and recorded vendor fixes. This public package view has no inventory attached and cannot establish whether your deployment is affected. A vendor fix never resolves your finding; verify your installed version and the source guidance.

Open advisories

2 actionable advisories, newest first. Withdrawn advisories and news are excluded. Coverage is partial.

  1. High, CVSS 8.5npmAmendedPublished

    tRPC has possible prototype pollution in experimental_nextAppDirCaller

    CVE-2025-68130 · GHSA-43p4-m455-4f4j

    Affected
    • npm @trpc/server >= 10.27.0, < 10.45.3; >= 11.0.0, < 11.8.0
    Fixed in
    10.45.311.8.0· Vendor fix available
    Issue
    Note that this vulnerability is only present when using experimentalcaller / experimentalnextAppDirCaller. Summary A Prototype Pollution vulnerability exists in @trpc/server's formDataToObject function, which is used by the Next.js App Router adapter. An attacker can pollute Object.prototype by submitting specially crafted FormData field names, potentially leading to authorization bypass, denial of service, or other security impacts. Affected Versions - Package: @trpc/server - Affected Versions: =10.27.0 - Vulnerable Component: formDataToObject() in src/unstable-core-do-not-import/http/formDataToObject.ts Vulnerability Details Root Cause The set() function in formDataToObject.ts recursively processes FormData field names containing bracket/dot notation (e.g., user[name], user.address.city) to create nested objects. However, it does not validate or sanitize dangerous keys like proto, constructor, or prototype. Vulnerable Code Attack Vector When a user submits a form to a tRPC mutation…

    Recommended action: Upgrade to 11.8.0 or 10.45.3 by release line, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:osv.dev (1)github.com (2)Source checked Evidence →
  2. High, CVSS 8.7npmAmendedPublished

    tRPC 11 WebSocket DoS Vulnerability

    CVE-2025-43855 · GHSA-pj3v-9cm8-gvj8

    Affected
    • npm @trpc/server >= 11.0.0, < 11.1.1
    Fixed in
    11.1.1· Vendor fix available
    Issue
    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. Details Any tRPC 11 server with WebSocket enabled with a createContext method set is vulnerable. Here is an example: https://github.com/user-attachments/assets/ce1b2d32-6103-4e54-8446-51535b293b05 I have a working reproduction here if you would like to test: https://github.com/lukechilds/trpc-vuln-reproduction The connectionParams logic introduced in https://github.com/trpc/trpc/pull/5839 does not safely handle invalid connectionParams objects. During validation if the object does not match an expected shape an error will be thrown: https://github.com/trpc/trpc/blob/8cef54eaf95d8abc8484fe1d454b6620eeb57f2f/packages/server/src/unstable-core-do-not-import/http/parseConnectionParams.ts#L27-L33 This is called during WebSocket connection setup inside createCtxPromise() here:…

    Recommended action: Upgrade to 11.1.1 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:osv.dev (1)github.com (2)Source checked Evidence →