fastify vulnerable to Body Schema Validation Bypass via Leading Space in Content-Type Header
fastify
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| fastify npm |
|
|
Original description
Impact:
Fastify applications using schema.body.content for per-content-type body validation can have validation bypassed entirely by prepending a space to the Content-Type header. The body is still parsed correctly but schema validation is skipped.