@orpc/zod: Prototype injection in smart coercion
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Tampering
- Confidentiality · integrity · availability
- Low · Low · None
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub. Impact type from CWE-915.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- Yes
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| middleapi | orpc | before 1.14.10 | 1.14.10 | Patch available | CNA |
| — | @orpc/zod (npm) | before 1.14.10 | 1.14.10 | Patch available | GHSA-gcgf-fh7c-8gf2 |
- orpc Vendormiddleapi Affected before 1.14.10 Fixed in 1.14.10 Patch available CNA
- @orpc/zod (npm) Vendor— Affected before 1.14.10 Fixed in 1.14.10 Patch available GHSA-gcgf-fh7c-8gf2
Remediation
- Fix · CNA orpc (middleapi) Fixed in 1.14.10
- Fix · GHSA-gcgf-fh7c-8gf2 @orpc/zod (npm) Fixed in 1.14.10 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2026-103918
- 2026-10-04 Priority changed: MEDIUM → LOW
- 2026-10-05 CISA SSVC decision points changed
- 2026-10-05 Alias added: GHSA-gcgf-fh7c-8gf2
- 2026-10-05 Fix available: npm/@orpc/[email protected] · GHSA-gcgf-fh7c-8gf2
- 2026-10-05 CVSS score added · GHSA-gcgf-fh7c-8gf2
- 2026-10-05 Weakness changed · GHSA-gcgf-fh7c-8gf2
- 2026-10-05 6 new references · GHSA-gcgf-fh7c-8gf2
References
More middleapi vulnerabilities
- TI-2026-53979 oRPC: Vary Header Injection in CORS Plugin leading to potential Cache/CORS Bypass CVSS 4.0MEDIUM 6.3
- TI-2026-66014 @orpc/json-schema: Prototype injection in smart coercion CVSS 3.1MEDIUM 6.5
Sources
- CVE-2026-103918 · CVE Program
- CVE-2026-103918 · NVD
- FIRST EPSS
- GHSA-gcgf-fh7c-8gf2 · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences