Description
Fastify is a fast and low overhead web framework, for Node.js. Prior to version 5.7.2, a validation bypass vulnerability exists in Fastify where request body validation schemas specified by Content-Type can be completely circumvented. By appending a tab character (\t) followed by arbitrary content to the Content-Type header, attackers can bypass body validation while the server still processes the body as the original content type. This issue has been patched in version 5.7.2.
Problem types
CWE-436: Interpretation Conflict
Product status
References
github.com/...astify/security/advisories/GHSA-jx2c-rxcm-jvmq
github.com/...ommit/32d7b6add39ddf082d92579a58bea7018c5ac821
fastify.dev/...latest/Reference/Validation-and-Serialization
github.com/...8e42a17bffba7521348/lib/content-type-parser.js
github.com/...9abf953068e42a17bffba7521348/lib/validation.js