Intel

AIKIDO-2026-983198

@orpc/zod is vulnerable to Prototype Pollution

CVE-2026-103918Published Jul 27, 2026
July 27, 2026

65

CVE Score

Medium

Prototype Pollution

Are you affected? Scan for Free

TL;DR

ZodSmartCoercionPlugin and its experimental variant coerce request input before validation and mishandle object keys that name Object.prototype members. A client reaching a procedure whose input schema contains an object or record can send a key such as __proto__ to replace the prototype of the coerced value, or a key such as constructor to trigger an unhandled TypeError that fails the request. The effect is scoped to the coerced value for that request and does not modify the global Object.prototype, but a handler reading inherited properties can act on attacker-controlled data. The fix collects coerced object and record properties into a null-prototype object and guards shape lookups with Object.hasOwn.

How do I fix this?

Upgrade the @orpc/zod library to the patch version.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and your server installs the ZodSmartCoercionPlugin or its experimental variant with at least one procedure whose input schema contains an object or record.

Package

Versions

0.0.1 - 1.14.9

Fixed in 1.14.10

Background info

@orpc/zod is vulnerable to Prototype Pollution in versions 0.0.1 - 1.14.9.

Get secure today,
quickly and for free.

Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.

No credit card required | Scan results in 32 seconds.

Trusted by 150k+ orgs
  • Revolut
  • n8n
  • Lovable
  • Deel
  • Prove
  • Omnea