Vulnerability
CVE-2025-68130
tRPC allows users to build and consume fully typesafe APIs without schemas or code generation. Starting in version 10.27.0 and prior to versions 10.45.3 and 11.8.0, a 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. Note that this vulnerability is only present when using `experimental_caller` / `experimental_nextAppDirCaller`. Versions 10.45.3 and 11.8.0 fix the issue.
23 advisories report this vulnerability, across 3 ecosystems.
Advisories
- CGA-2vcf-879m-7c6v
- CGA-4ppr-4xgf-wfp4
- CGA-5crc-6qhr-53c2
- CGA-6cj8-q4w3-86xf
- CGA-72vj-3jpv-p357
- CGA-7cmh-m934-2ccw
- CGA-8c36-6xjp-v3f2
- CGA-8grq-x5rg-f9vc
- CGA-8hvq-grw8-f99c
- CGA-8j58-hh5x-3928
- CGA-98vm-hf5m-5jgf
- CGA-cg6c-3hc5-mh69
- CGA-chc7-3r8j-3m3j
- CGA-cwcp-rvhc-pc4c
- CGA-grr8-v3h3-5w7j
- CGA-hh2h-jfx7-4fhr
- CGA-jmc7-c84q-7xcg
- CGA-jqpc-c9cm-fqr3
- CGA-pc7p-ch6f-vj3v
- CGA-px7c-28cg-5ggr
- CGA-qr4w-h5q5-4r9g
- CGA-wv4w-qmfv-w95f
-
GHSA-43p4-m455-4f4j
tRPC has possible prototype pollution in `experimental_nextAppDirCaller`