@orpc/nest is vulnerable to Authorization Bypass
82
High Risk
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.
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.
@orpc/nest is vulnerable to Authorization Bypass in versions 0.0.1 - 1.14.13.
Upgrade the @orpc/nest library to the patch version.
Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.
Free. No credit card required.

I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant