# CVE-2026-33807: @fastify/express vulnerable to middleware path doubling causing authentication bypass in child plugin scopes

- Severity: Critical 9.1 (CVSS:3.1, scored by openjs) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.45%, higher than 40% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-04-15T09:52:26.838Z
- Modified: 2026-10-26T21:10:00.170Z
- Also known as: GHSA-hrwm-hgmj-7p9c
- Related: CVE-2026-6270
- Weaknesses: CWE-436
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact total
- Assigned by: openjs

## Description

@fastify/express v4.0.4 and earlier contains a path handling bug in the onRegister function that causes middleware paths to be doubled when inherited by child plugins. When a child plugin is registered with a prefix that matches a middleware path, the middleware path is prefixed a second time, causing it to never match incoming requests. This results in complete bypass of Express middleware security controls, including authentication, authorization, and rate limiting, for all routes defined within affected child plugin scopes. No special configuration or request crafting is required.

Upgrade to @fastify/express v4.0.5 or later.

(As written by CVE List.)

## Affected

- fastify @fastify/express: before 4.0.5 (not affected: 4.0.5)
- @fastify/express (npm): before 4.0.5
- fastify fastify/express: before 4.0.5

## Every score

- openjs: CVSS:3.1 9.1 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N`
- GitHub: CVSS:3.1 9.1 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N`

## References

- <https://github.com/fastify/fastify-express/security/advisories/GHSA-hrwm-hgmj-7p9c> (exploit, mitigation, vendor-advisory, web)
- <https://cna.openjsf.org/security-advisories.html> (vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-33807> (advisory)
- <https://github.com/fastify/fastify-express> (package)

## Sources

- CVE List: [CVE-2026-33807](https://www.cve.org/CVERecord?id=CVE-2026-33807), CVE Terms of Use, modified 2026-04-15
- GitHub Advisory Database: [GHSA-hrwm-hgmj-7p9c](https://github.com/advisories/GHSA-hrwm-hgmj-7p9c), CC-BY-4.0, modified 2026-07-08
- NVD: [CVE-2026-33807](https://nvd.nist.gov/vuln/detail/CVE-2026-33807), Public domain, modified 2026-10-26

---

Page: https://cve.day/CVE-2026-33807 · Whole record: https://cve.day/CVE-2026-33807.json · Rebuilt by cve.day 2026-11-25T22:59:18.825Z
