Improper access control in nest - CVE-2026-2293

 

Improper access control in nest - CVE-2026-2293

Published: April 7, 2026


Vulnerability identifier: #VU125028
CSH Severity: Medium
CVSS v4.0: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:H/VA:N/SC:N/SI:N/SA:N/E:U/U:Green
CVE-ID: CVE-2026-2293
CWE-ID: CWE-284
Exploitation vector: Remote access
Exploit availability: No public exploit available
Vendor: nestjs
Affected software:
nest

Detailed vulnerability 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.


How to mitigate CVE-2026-2293

Install security update from vendor's website.

Sources