Skip to content
Heist/ feed
Back to feed
Medium

@orpc/zod: Prototype injection in smart coercion

Type: advisorySources: OSV

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.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2026-103918
Confirmed fixed CVEs
Not specified
Updated in this feed
5 Nov 2026, 03:41 UTC · Revision 1

Source evidence

@orpc/zod: Prototype injection in smart coercion

core-osv · Original source

Published 2 Oct 2026, 20:02 UTC

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.

osv:CVE-2026-103918
Complete source record
{
  "id": "e78f79658466167b02c65377a8ea1c2dbdf61ef3fb8d0d6f84f36f012980d74d",
  "url": "https://osv.dev/vulnerability/CVE-2026-103918",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "@orpc/zod: Prototype injection in smart coercion",
    "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.",
    "evidence": "osv:CVE-2026-103918",
    "products": [],
    "severity": "medium",
    "structured": {
      "id": "CVE-2026-103918",
      "aliases": [
        "CVE-2026-103918",
        "GHSA-gcgf-fh7c-8gf2"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/middleapi/orpc",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "a8dd6da781b7f21337cdcb3cd66db293638b1fbe"
                },
                {
                  "fixed": "26314dfb443237c495116c5794d3d30a7a22c570"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "fixed": "1.14.10"
                      }
                    ],
                    "source": "AFFECTED_FIELD",
                    "strategy": "StringRangeExpression"
                  },
                  {
                    "range": [
                      {
                        "fixed": "26314dfb443237c495116c5794d3d30a7a22c570"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  },
                  {
                    "range": [
                      {
                        "fixed": "a8dd6da781b7f21337cdcb3cd66db293638b1fbe"
                      }
                    ],
                    "source": "REFERENCES_TAG",
                    "original_tag": "v1.14.10"
                  }
                ]
              }
            }
          ],
          "versions": [
            "v1.14.9",
            "v1.14.8",
            "v1.14.7",
            "v1.14.6",
            "v1.14.5",
            "v1.14.4",
            "v1.14.3",
            "v1.14.2",
            "v1.14.1",
            "v1.14.0",
            "v1.13.14",
            "v1.13.13",
            "v1.13.12",
            "v1.13.11",
            "v1.13.10",
            "v1.13.9",
            "v1.13.8",
            "v1.13.7",
            "v1.13.6",
            "v1.13.5",
            "v1.13.4",
            "v1.13.2",
            "v1.13.1",
            "v1.13.0",
            "v1.12.3",
            "v1.12.2",
            "v1.12.1",
            "v1.12.0",
            "v1.11.3",
            "v1.11.2",
            "v1.11.1",
            "v1.11.0",
            "v1.10.4",
            "v1.10.3",
            "v1.10.2",
            "v1.10.1",
            "v1.10.0",
            "v1.9.4",
            "v1.9.3",
            "v1.9.2",
            "v1.9.1",
            "v1.9.0",
            "v1.8.9",
            "v1.8.8",
            "v1.8.7",
            "v1.8.6",
            "v1.8.5",
            "v1.8.4",
            "v1.8.3",
            "v1.8.2",
            "v1.8.1",
            "v1.8.0",
            "v1.7.11",
            "v1.7.10",
            "v1.7.9",
            "v1.7.8",
            "v1.7.7",
            "v1.7.6",
            "v1.7.5",
            "v1.7.4",
            "v1.7.3",
            "v1.7.2",
            "v1.7.1",
            "v1.7.0",
            "v1.6.6",
            "v1.6.5",
            "v1.6.4",
            "v1.6.3",
            "v1.6.2",
            "v1.6.1",
            "v1.6.0",
            "v1.5.2",
            "v1.5.1",
            "v1.5.0",
            "v1.4.5",
            "v1.4.4",
            "v1.4.3",
            "v1.4.2",
            "v1.4.1",
            "v1.4.0",
            "v1.3.0",
            "v1.2.0",
            "v1.1.1",
            "v1.1.0",
            "v1.0.3",
            "v1.0.0-beta.7",
            "v0.54.0",
            "v1.0.0-beta.6",
            "v0.53.0",
            "v1.0.0-beta.5",
            "v0.52.0",
            "v1.0.0-beta.4",
            "v0.51.0",
            "v1.0.0-beta.3",
            "v0.50.0",
            "v1.0.0-beta.2",
            "v0.49.0",
            "v0.48.0",
            "v1.0.0-beta.1",
            "v0.47.0",
            "v0.46.0",
            "v0.45.1",
            "v0.45.0",
            "v0.44.0",
            "v0.43.0",
            "v0.42.0",
            "v0.41.2",
            "v0.41.1",
            "v0.41.0",
            "v0.40.0",
            "v0.39.0",
            "v0.38.0",
            "v0.37.0",
            "v0.36.1",
            "v0.36.0",
            "v0.35.1",
            "v0.35.0",
            "v0.34.0",
            "v0.33.0",
            "v0.32.0",
            "v0.31.0",
            "v0.30.0",
            "v0.29.0",
            "v0.28.0",
            "v0.27.0",
            "v0.26.0",
            "v0.25.0",
            "v0.24.0",
            "v0.23.0",
            "v0.22.0",
            "v0.21.0",
            "v0.20.0",
            "v0.19.0",
            "v0.18.0",
            "v0.17.0",
            "v0.16.0",
            "v0.15.0",
            "v0.14.0",
            "v0.13.0",
            "v0.12.0",
            "v0.11.0",
            "v0.10.0",
            "v0.10.0-beta.1",
            "v0.9.0",
            "v0.9.0-beta.1",
            "v0.8.0",
            "v0.8.0-beta.1",
            "v0.8.0-alpha.2",
            "v0.8.0-alpha.1",
            "v0.7.0",
            "v0.6.0",
            "@orpc/server@0.4.0",
            "@orpc/openapi@0.0.11",
            "@orpc/zod@0.0.2",
            "@orpc/transformer@0.0.6",
            "@orpc/shared@0.1.1",
            "@orpc/server@0.3.1",
            "@orpc/react@0.0.7",
            "@orpc/openapi@0.0.10",
            "@orpc/contract@0.1.3",
            "@orpc/client@0.0.6",
            "@orpc/transformer@0.0.5",
            "@orpc/shared@0.1.0",
            "@orpc/server@0.3.0",
            "@orpc/react@0.0.6",
            "@orpc/openapi@0.0.9",
            "@orpc/contract@0.1.2",
            "@orpc/client@0.0.5",
            "@orpc/server@0.2.1",
            "@orpc/react@0.0.5",
            "@orpc/openapi@0.0.8",
            "@orpc/contract@0.1.1",
            "@orpc/client@0.0.4",
            "@orpc/server@0.2.0",
            "@orpc/react@2.0.0",
            "@orpc/openapi@0.0.7",
            "@orpc/contract@0.1.0",
            "@orpc/client@2.0.0",
            "@orpc/server@0.1.2",
            "@orpc/react@1.0.2",
            "@orpc/openapi@0.0.6",
            "@orpc/client@1.0.2",
            "@orpc/zod@0.0.1",
            "@orpc/transformer@0.0.4",
            "@orpc/shared@0.0.5",
            "@orpc/server@0.1.0",
            "@orpc/react@1.0.0",
            "@orpc/openapi@0.0.4",
            "@orpc/contract@0.0.4",
            "@orpc/client@1.0.0",
            "@orpc/react@0.0.4",
            "@orpc/transformer@0.0.3",
            "@orpc/shared@0.0.4",
            "@orpc/server@0.0.3",
            "@orpc/react@0.0.3",
            "@orpc/openapi@0.0.3",
            "@orpc/contract@0.0.3",
            "@orpc/client@0.0.3",
            "@orpc/transformer@0.0.2",
            "@orpc/shared@0.0.3",
            "@orpc/server@0.0.2",
            "@orpc/react@0.0.2",
            "@orpc/openapi@0.0.2",
            "@orpc/contract@0.0.2",
            "@orpc/client@0.0.2"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-103918.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:42.311109880Z",
      "provider": "osv",
      "references": [
        "https://github.com/middleapi/orpc/releases/tag/v1.14.10",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/103xxx/CVE-2026-103918.json",
        "https://github.com/middleapi/orpc/security/advisories/GHSA-gcgf-fh7c-8gf2",
        "https://nvd.nist.gov/vuln/detail/CVE-2026-103918",
        "https://github.com/middleapi/orpc/commit/26314dfb443237c495116c5794d3d30a7a22c570",
        "https://github.com/middleapi/orpc/pull/1727"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-1321",
          "CWE-915"
        ],
        "cna_assigner": "GitHub_M",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/103xxx/CVE-2026-103918.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2026-103918",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 509919,
  "published_at": "2026-10-02T20:02:50.946+00:00"
}