Intel

AIKIDO-2026-378356

@orpc/nest is vulnerable to Authorization Bypass

GHSA-58r7-2f58-x3f6Published Aug 5, 2026
August 5, 2026

82

CVE Score

High

Authorization Bypass

Are you affected? Scan for Free

TL;DR

The oRPC NestJS integration lets a controller method implement a whole contract router by decorating it with @Implement, which synthesizes a separate route function per procedure and registers those as the real Nest handlers. Nest reads method-level enhancer metadata such as @UseGuards, @UsePipes, @UseFilters, and @SetMetadata from the synthesized functions rather than from the original decorated method, so those guards never execute. Routes that appear protected are reachable without passing the configured authentication or authorization checks, regardless of decorator order. The fix links each synthesized route function to the original method through its prototype chain so Nest resolves the enhancer metadata and runs the guards.

How do I fix this?

Upgrade the @orpc/nest library to the patch version.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and you use the NestJS integration's @Implement decorator with a contract router and rely on method-level guards such as @UseGuards to protect those routes.

Package

Versions

0.0.1 - 1.14.13

Fixed in 1.14.14

Background info

@orpc/nest is vulnerable to Authorization Bypass in versions 0.0.1 - 1.14.13.

Get secure today,
quickly and for free.

Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.

No credit card required | Scan results in 32 seconds.

Trusted by 150k+ orgs
  • Revolut
  • n8n
  • Lovable
  • Deel
  • Prove
  • Omnea