Skip to content

CVE-2025-68130 tRPC has possible prototype pollution in `experimental_nextAppDirCaller`

HighCVSS 8.5 EPSS 0.43%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
Proof of concept public · automatable: yes · technical impact: partial

Description

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.

Upgrade path

2 packages: 1 fixed.

PackageAffectedFixed inStatus
trpc @trpc/server(npm) >= 10.27.0, < 10.45.3; >= 11.0.0, < 11.8.0 10.45.3, 11.8.0 Fixed
trpc = >= 10.27.0, < 10.45.3; = >= 11.0.0, < 11.8.0 No fix listed Versions listed

Affected products

ProductAffected versionsFixed in
trpc @trpc/server(npm) >= 10.27.0, < 10.45.3 10.45.3
trpc @trpc/server(npm) >= 11.0.0, < 11.8.0 11.8.0
trpc = >= 10.27.0, < 10.45.3 No fix listed
trpc = >= 11.0.0, < 11.8.0 No fix listed

References