{"id":"CVE-2026-77360","aliases":["CVE-2026-77360","GHSA-j9v4-rhgr-4m5f"],"related":[],"kind":"vulnerability","state":"published","title":"oRPC: Vary Header Injection in CORS Plugin leading to potential Cache/CORS Bypass","summary":"oRPC is an tool that helps build APIs that are end-to-end type-safe and adhere to OpenAPI standards. Prior to 1.14.8, the @orpc/server CORS plugin in packages/server/src/plugins/cors.ts copies a client's incoming Vary request header into the response instead of controlling Vary as a response-only header and using Origin for request-origin variation. In deployments behind a shared cache, CDN, or reverse proxy that keys responses using Vary, a client can inject arbitrary variation values, pollute cache keys, and cause inconsistent CORS enforcement for other clients. Default non-cached configurations have no established direct confidentiality, integrity, or availability impact. This issue is fixed in version 1.14.8.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"oRPC is an tool that helps build APIs that are end-to-end type-safe and adhere to OpenAPI standards. Prior to 1.14.8, the @orpc/server CORS plugin in packages/server/src/plugins/cors.ts copies a client's incoming Vary request header into the response instead of controlling Vary as a response-only header and using Origin for request-origin variation. In deployments behind a shared cache, CDN, or reverse proxy that keys responses using Vary, a client can inject arbitrary variation values, pollute cache keys, and cause inconsistent CORS enforcement for other clients. Default non-cached configurations have no established direct confidentiality, integrity, or availability impact. This issue is fixed in version 1.14.8.","source":"cvelist"},{"lang":"en","text":"### Summary\nA flaw in the CORS plugin allowed the incoming request's `Vary` header to be reflected into the response, letting a client influence a header that should be controlled solely by the server.\n\n### Details\nThe CORS plugin previously copied the request's `Vary` header directly onto the response instead of treating `Vary` as a response-only header. Because `Vary` tells downstream caches and proxies how to key their cached responses, this allowed a client to inject arbitrary values into the response's `Vary` header, potentially distorting cache-key behavior in shared caches/CDNs sitting in front of an oRPC server and leading to inconsistent CORS enforcement for other clients.\n\nPractical impact is limited to deployments where a shared cache or reverse proxy keys on the `Vary` header; the real-world effect depends on the caching layer's configuration.\n\n### Impact\nMay cause cache key pollution and inconsistent CORS enforcement in setups that rely on shared/edge caches keying on `Vary`. No direct confidentiality, integrity, or availability impact in default (non-cached) configurations.\n\n### Resolution\nUpdate `@orpc/server` (and any other `@orpc/*` packages bundling the CORS plugin) to `1.14.8`. The CORS plugin now derives `Vary` exclusively from the response, appending `Origin` and preserving existing values instead of reflecting request headers.","format":"markdown","source":"ghsa"}],"published":"2026-09-16T18:42:45.816Z","modified":"2026-09-30T17:51:56.193Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N","score":6.3,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N","score":6.3,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N","rating":"MEDIUM"}],"cwes":["CWE-113"],"affected":[{"ranges":[{"version":"< 1.14.8","status":"affected"}],"vendor":"middleapi","product":"orpc","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"1.14.8"}],"ecosystem":"npm","package":"@orpc/server","purl":"pkg:npm/%40orpc/server","source":"ghsa"}],"references":[{"url":"https://github.com/middleapi/orpc/security/advisories/GHSA-j9v4-rhgr-4m5f","tags":["web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/middleapi/orpc/issues/1661","tags":["exploit","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/middleapi/orpc/pull/1662","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/middleapi/orpc/commit/daabded122a89d323357c4c401e879701864cb2f","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/middleapi/orpc/releases/tag/v1.14.8","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-77360","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/middleapi/orpc","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"no","technicalImpact":"partial","date":"2026-09-16T19:40:46.280Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-77360","url":"https://www.cve.org/CVERecord?id=CVE-2026-77360","licence":"CVE Terms of Use","modified":"2026-09-16T19:40:51.991Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-j9v4-rhgr-4m5f","url":"https://github.com/advisories/GHSA-j9v4-rhgr-4m5f","licence":"CC-BY-4.0","modified":"2026-09-17T15:00:05.898Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-77360","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-77360","licence":"Public domain","modified":"2026-09-30T17:51:56.193Z"}],"updatedAt":"2026-11-25T22:59:39.098Z","epss":{"score":0.00623,"percentile":0.51232,"date":"2026-12-02T12:00:21.000Z"}}