Update dependency @trpc/server to v11.8.0 [SECURITY] #2069
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
11.7.2->11.8.0GitHub Vulnerability Alerts
CVE-2025-68130
Summary
A Prototype Pollution vulnerability exists in
@trpc/server'sformDataToObjectfunction, which is used by the Next.js App Router adapter. An attacker can polluteObject.prototypeby submitting specially crafted FormData field names, potentially leading to authorization bypass, denial of service, or other security impacts.Affected Versions
@trpc/serverformDataToObject()insrc/unstable-core-do-not-import/http/formDataToObject.tsVulnerability Details
Root Cause
The
set()function informDataToObject.tsrecursively 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, orprototype.Vulnerable Code
Attack Vector
When a user submits a form to a tRPC mutation using Next.js Server Actions, the
nextAppDirCalleradapter processes the FormData:An attacker can craft FormData with malicious field names:
When processed, this pollutes
Object.prototype:Proof of Concept
Test.js
Impact
Authorization Bypass (HIGH)
Many applications check user permissions using property access:
After pollution, all objects will have
isAdmin: "true", bypassing authorization.Denial of Service (MEDIUM)
Polluting commonly used property names can crash applications:
Release Notes
trpc/trpc (@trpc/server)
v11.8.0Compare Source
What's Changed
Configuration
📅 Schedule: Branch creation - "" (UTC), Automerge - At any time (no schedule defined).
🚦 Automerge: Enabled.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.