{"id":"GHSA-j9v4-rhgr-4m5f","revision":"15eb67330c5b4f62a42bd484ffa48d55","records":[{"revision":"15eb67330c5b4f62a42bd484ffa48d55","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"GHSA-j9v4-rhgr-4m5f","aliases":["CVE-2026-77360"],"title":"oRPC: Vary Header Injection in CORS Plugin leading to potential Cache/CORS Bypass","description":"### 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.","state":0,"publishedAt":"2026-09-17T14:52:37+00:00","modifiedAt":"2026-09-17T15:00:05.8981383+00:00","affected":[{"ecosystem":"npm","name":"@orpc/server","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"},{"kind":"fixed","version":"1.14.8"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[{"system":"CVSS_V4","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":null,"severity":null},{"system":"Publisher rating","vector":null,"score":null,"severity":"MODERATE"}],"references":["https://github.com/middleapi/orpc/security/advisories/GHSA-j9v4-rhgr-4m5f","https://nvd.nist.gov/vuln/detail/CVE-2026-77360","https://github.com/middleapi/orpc/issues/1661","https://github.com/middleapi/orpc/pull/1662","https://github.com/middleapi/orpc/commit/daabded122a89d323357c4c401e879701864cb2f","https://github.com/middleapi/orpc","https://github.com/middleapi/orpc/releases/tag/v1.14.8"],"sourceUrl":"https://github.com/advisories/GHSA-j9v4-rhgr-4m5f","license":"GitHub Advisory Database · CC-BY-4.0","key":"osv:GHSA-j9v4-rhgr-4m5f","identifiers":["GHSA-j9v4-rhgr-4m5f","CVE-2026-77360"]},"retained":false,"historicalAffected":[]}],"coverage":[]}