{"id":"GHSA-389g-gv7q-r4x8","revision":"edee4464b2ad4189a2e76094480a990e","records":[{"revision":"edee4464b2ad4189a2e76094480a990e","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"GHSA-389g-gv7q-r4x8","aliases":["CVE-2026-107832"],"title":"fastify is vulnerable to header validation bypass via case-sensitive propertyNames","description":"### Impact\n\nFastify lowercases header names in a `headers` schema before compilation, because Node.js stores request header names in lowercase. This normalization does not reach the header names held in a `propertyNames` subschema's `enum` and `const`. A header-name deny-list written in the canonical header case, such as `propertyNames: { not: { enum: ['X-Debug-Override'] } }`, therefore never matches the lowercased request headers, and the forbidden header reaches the handler. Any application that uses a `propertyNames` deny-list or allow-list to constrain request header names does not get the constraint it expects. The same rule written in lowercase works, and the `not: { required: [...] }` form is unaffected, so this is a gap in the built-in normalization rather than a wrong schema. This is an incomplete fix of CVE-2026-84428 ([GHSA-9q9j-q6p8-xq58](https://github.com/fastify/fastify/security/advisories/GHSA-9q9j-q6p8-xq58)), whose normalization covered header names used as property keys but not those used as values inside `propertyNames`.\n\n### Patches\n\nUsers should upgrade to fastify `5.12.6` or later, which lowercases header names held in `enum` and `const` inside a `propertyNames` subschema so they match the lowercased request headers. Header-name constraints that cannot be normalized automatically, regular expressions (`propertyNames` `pattern` and `patternProperties` keys) and a `$ref` used inside `propertyNames`, are documented and, for the `$ref` case, warned at startup (`FSTSEC003`). Author those to match the lowercased request headers.\n\n### Workarounds\n\nWrite the `propertyNames` header-name constraint in lowercase (for example `enum: ['x-debug-override']`), or enforce the header check in an `onRequest` or `preValidation` hook instead of the schema.","state":0,"publishedAt":"2026-10-22T16:40:35+00:00","modifiedAt":"2026-10-22T16:45:04.287485+00:00","affected":[{"ecosystem":"npm","name":"fastify","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"5.12.2"},{"kind":"fixed","version":"5.12.6"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[{"system":"CVSS_V3","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N","score":null,"severity":null},{"system":"Publisher rating","vector":null,"score":null,"severity":"LOW"}],"references":["https://github.com/fastify/fastify/security/advisories/GHSA-389g-gv7q-r4x8","https://nvd.nist.gov/vuln/detail/CVE-2026-107832","https://github.com/fastify/fastify/pull/7104","https://github.com/fastify/fastify/commit/3241fbd2f10a8ca1503533726836b53b6e8775a2","https://github.com/fastify/fastify/commit/35c32375731c111439682b2f9e6e0baed2694269","https://cna.openjsf.org/security-advisories.html","https://github.com/fastify/fastify","https://github.com/fastify/fastify/releases/tag/v5.12.6"],"sourceUrl":"https://github.com/advisories/GHSA-389g-gv7q-r4x8","license":"GitHub Advisory Database · CC-BY-4.0","key":"osv:GHSA-389g-gv7q-r4x8","identifiers":["GHSA-389g-gv7q-r4x8","CVE-2026-107832"]},"retained":false,"historicalAffected":[]}],"coverage":[]}