Intel

AIKIDO-2026-378356

@orpc/nest is vulnerable to Authorization Bypass

Authorization BypassGHSA-58r7-2f58-x3f6 Published 2 days ago

82

High Risk

This Affects:

JS@orpc/nest
0.0.1 - 1.14.13
Fixed in 1.14.14
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.

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.

Background info

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

How to fix this

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