{"document":{"category":"csaf_vex","csaf_version":"2.0","title":"CVE-2026-6556: @fastify/express vulnerable to middleware bypass via non-string mount paths in prefixed plugins","publisher":{"category":"vendor","name":"HarborGuard Database","namespace":"https://database.harborguard.co"},"tracking":{"id":"CVE-2026-6556","status":"final","version":"1","initial_release_date":"2026-06-30T12:48:41.474Z","current_release_date":"2026-06-30T13:30:34.905Z","revision_history":[{"date":"2026-06-30T12:48:41.474Z","number":"1","summary":"Initial machine-readable export from HarborGuard."}]},"distribution":{"tlp":{"label":"WHITE"},"text":"Public CVE data; freely redistributable."},"notes":[{"category":"description","text":"@fastify/express versions 4.0.6 and earlier only rewrite the plugin prefix for middleware mount paths when the path argument is a string. Non-string mount paths (arrays of paths and regular expressions) are left unprefixed inside prefixed plugin scopes, so middleware registered with those forms does not match the actual prefixed request path. Applications that use path-scoped middleware for authentication, authorization, rate limiting, or auditing on routes inside a prefixed scope can be bypassed by sending a request to the prefixed route, because Fastify still matches the route but the middleware is skipped. Patches: upgrade to @fastify/express 4.0.7. Workarounds: use string mount paths instead of arrays or regular expressions in prefixed plugins, or register one use call per path.","title":"CVE description"}],"references":[{"category":"self","summary":"CVE-2026-6556 on HarborGuard Database","url":"https://database.harborguard.co/cve/CVE-2026-6556"},{"category":"external","summary":"CVE Record","url":"https://www.cve.org/CVERecord?id=CVE-2026-6556"},{"category":"external","summary":"github.com","url":"https://github.com/fastify/fastify-express/security/advisories/GHSA-3wf5-7852-vcfq"},{"category":"external","summary":"cna.openjsf.org","url":"https://cna.openjsf.org/security-advisories.html"}]},"product_tree":{"branches":[{"category":"vendor","name":"@fastify/express","branches":[{"category":"product_name","name":"@fastify/express","branches":[{"category":"product_version_range","name":"<4.0.7","product":{"name":"@fastify/express @fastify/express <4.0.7","product_id":"CSAFPID-1","product_identification_helper":{"cpe":"cpe:2.3:a:\\@fastify\\/express:\\@fastify\\/express:*:*:*:*:*:*:*:*"}}},{"category":"product_version","name":"4.0.7","product":{"name":"@fastify/express @fastify/express 4.0.7","product_id":"CSAFPID-2","product_identification_helper":{"cpe":"cpe:2.3:a:\\@fastify\\/express:\\@fastify\\/express:*:*:*:*:*:*:*:*"}}}]}]}]},"vulnerabilities":[{"cve":"CVE-2026-6556","title":"@fastify/express vulnerable to middleware bypass via non-string mount paths in prefixed plugins","notes":[{"category":"description","text":"@fastify/express versions 4.0.6 and earlier only rewrite the plugin prefix for middleware mount paths when the path argument is a string. Non-string mount paths (arrays of paths and regular expressions) are left unprefixed inside prefixed plugin scopes, so middleware registered with those forms does not match the actual prefixed request path. Applications that use path-scoped middleware for authentication, authorization, rate limiting, or auditing on routes inside a prefixed scope can be bypassed by sending a request to the prefixed route, because Fastify still matches the route but the middleware is skipped. Patches: upgrade to @fastify/express 4.0.7. Workarounds: use string mount paths instead of arrays or regular expressions in prefixed plugins, or register one use call per path.","title":"CVE description"}],"product_status":{"known_affected":["CSAFPID-1"],"fixed":["CSAFPID-2"]},"scores":[{"cvss_v3":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N","baseScore":9.1,"baseSeverity":"CRITICAL"},"products":["CSAFPID-1"]}],"remediations":[{"category":"vendor_fix","details":"Update to a fixed version: 4.0.7.","product_ids":["CSAFPID-1"]}]}]}