{"id":"CVE-2026-103918","published":"2026-10-02T20:02:50Z","modified":"2026-10-05T17:19:02Z","title":"@orpc/zod: Prototype injection in smart coercion","vendor":"middleapi","product":"orpc","tier":"tail","description":{"text":"oRPC is a tool that helps build APIs that are end-to-end type-safe and adhere to OpenAPI standards. Prior to 1.14.10, the @orpc/zod ZodSmartCoercionPlugin and experimental_ZodSmartCoercionPlugin collect object and record properties in plain objects and resolve shape keys through the prototype chain. A remote client that can reach a procedure with an object or record input can supply __proto__ to replace the prototype of the returned request object, allowing attacker-controlled inherited values to reach application lookups. For object schemas, keys such as constructor, toString, and __proto__ can instead resolve inherited members as Zod schemas and cause an unhandled TypeError before validation. The global Object.prototype, unrelated objects, other requests, and other users are not modified, and the availability effect is limited to crafted requests rather than persistent process-wide state. This issue is fixed in version 1.14.10.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.5,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00402,"percentile":0.26023,"provenance":"source"},"cwes":[{"id":"CWE-915","name":"Improperly Controlled Modification of Dynamically-Determined Object Attributes"},{"id":"CWE-1321","name":"Improperly Controlled Modification of Object Prototype Attributes"}],"references":[{"url":"https://github.com/middleapi/orpc/security/advisories/GHSA-gcgf-fh7c-8gf2","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/middleapi/orpc/pull/1727","tags":["x_refsource_MISC"]},{"url":"https://github.com/middleapi/orpc/commit/26314dfb443237c495116c5794d3d30a7a22c570","tags":["x_refsource_MISC"]},{"url":"https://github.com/middleapi/orpc/releases/tag/v1.14.10","tags":["x_refsource_MISC"]}],"priority":{"score":9.8,"factors":[{"name":"EPSS percentile","points":5.2},{"name":"CVSS severity","points":4.55}]},"vendorSlug":"middleapi","affectedVersions":[{"vendor":"middleapi","product":"orpc","versions":["< 1.14.10"]}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial","timestamp":"2026-10-05T17:18:27.416064Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"@orpc/zod","vulnerableRanges":["<1.14.10"],"patched":["1.14.10"],"from":["GHSA-gcgf-fh7c-8gf2"],"provenance":"source"}],"summary":{"text":"The @orpc/zod package's ZodSmartCoercionPlugin and experimental_ZodSmartCoercionPlugin in the oRPC API framework collect object and record properties into plain objects and resolve shape keys through the prototype chain, before version 1.14.10. A remote, unauthenticated client able to reach a procedure with an object or record input can send __proto__ or inherited key names such as constructor or toString to alter the request object's prototype or trigger an unhandled TypeError, with no user interaction or special configuration needed.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:12:30Z"},"euvd":{"id":"EUVD-2026-91793","exploited":false,"provenance":"source"}}