The vulnerability is an incomplete fix of CVE-2026-84428. Fastify normalizes header names in a headers schema to lowercase before compilation (because Node.js stores request header names in lowercase). The original fix covered header names used as property keys (required, properties, dependencies, etc.) but did not reach header names held as values inside a propertyNames subschema's enum and const.
The vulnerable function is lowerCaseHeadersSchema in lib/validation.js. In the vulnerable version (5.12.2 through 5.12.5), this function recursively lowercased header-name keys but, in its default: branch, simply copied enum/const values verbatim (result[key] = value). Because a propertyNames subschema validates each header name itself, the enum/const values there are header names, not header values. A deny-list written in canonical case (e.g. propertyNames: { not: { enum: ['X-Debug-Override'] } }) therefore never matched the lowercased request header x-debug-override, allowing the forbidden header to reach the handler.
The fix (commits 35c32375731c111439682b2f9e6e0baed2694269 and its 5.x backport 3241fbd2f10a8ca1503533726836b53b6e8775a2) adds an insidePropertyNames context flag to lowerCaseHeadersSchema, so that when traversing a propertyNames subschema, enum array string items and const string values are lowercased. It also adds findPropertyNamesRef to detect a $ref inside propertyNames (which cannot be safely normalized) and emits the new FSTSEC003 warning from compileSchemasForValidation.
The two functions that would appear in a runtime profile during exploitation are:
lowerCaseHeadersSchema — the normalization function that failed to lowercase propertyNames enum/ values (the direct root cause).