#VU125028 Improper access control in nest - CVE-2026-2293
Published: April 7, 2026
nest
nestjs
Description
The vulnerability allows a remote attacker to bypass middleware-based security checks.
The vulnerability exists due to improper access control in the Nest Fastify adapter middleware matching logic when handling requests with variant paths under Fastify path-normalization options. A remote attacker can send a specially crafted request to bypass middleware-based security checks.
The issue occurs because middleware matching uses a regex check over req.originalUrl while route dispatch uses Fastify-normalized paths, allowing route-scoped middleware to be skipped while the protected handler is still reached.