CVE-2026-103918: @orpc/zod: Prototype injection in smart coercion
ZodSmartCoercionPlugin and experimental_ZodSmartCoercionPlugin mishandle object keys that name Object.prototype members. Both coerce request input before validation, so any client that can reach a procedure whose input schema contains an object or a record can:
- replace the prototype of the coerced input object, and
- make a request fail with an unhandled
TypeErrorby sending a key such asconstructor.
This is the same class of bug as GHSA-4h5r-cv8j-4456 in @orpc/json-schema, in a different package.
References
- github.com/advisories/GHSA-gcgf-fh7c-8gf2
- github.com/middleapi/orpc/commit/26314dfb443237c495116c5794d3d30a7a22c570
- github.com/middleapi/orpc/pull/1727
- github.com/middleapi/orpc/releases/tag/v1.14.10
- github.com/middleapi/orpc/security/advisories/GHSA-gcgf-fh7c-8gf2
- nvd.nist.gov/vuln/detail/CVE-2026-103918
Code Behaviors & Features
Detect and mitigate CVE-2026-103918 with GitLab Dependency Scanning
Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →