Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. @fastify/express
  4. ›
  5. CVE-2026-33807

CVE-2026-33807: @fastify/express's middleware path doubling causes authentication bypass in child plugin scopes

April 16, 2026

@fastify/express v4.0.4 contains a path handling bug in the onRegister function that causes middleware paths to be doubled when inherited by child plugins. This results in complete bypass of Express middleware security controls for all routes defined within child plugin scopes that share a prefix with parent-scoped middleware. No special configuration is required — this affects the default Fastify configuration.

References

  • cna.openjsf.org/security-advisories.html
  • github.com/advisories/GHSA-hrwm-hgmj-7p9c
  • github.com/fastify/fastify-express
  • github.com/fastify/fastify-express/security/advisories/GHSA-hrwm-hgmj-7p9c
  • nvd.nist.gov/vuln/detail/CVE-2026-33807

Code Behaviors & Features

Detect and mitigate CVE-2026-33807 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 4.0.5

Fixed versions

  • 4.0.5

Solution

Upgrade to version 4.0.5 or above.

Impact 9.1 CRITICAL

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N

Learn more about CVSS

Weakness

  • CWE-436: Interpretation Conflict

Source file

npm/@fastify/express/CVE-2026-33807.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Thu, 16 Apr 2026 12:19:18 +0000.