{"id":"CVE-2026-84504","published":"2026-09-04T09:40:18Z","modified":"2026-09-04T16:34:58Z","title":"fastify vulnerable to request body replacement via an async validation result collision","vendor":"fastify","product":"fastify","tier":"tail","description":{"text":"fastify versions before 5.12.2 treat the object resolved by a successful Ajv async validator as the value result protocol used by custom validator compilers. If a request that passes its route schema contains a property named value at the root, fastify replaces the entire request body with that property's value before the handler runs, so the handler receives a different object than the one that satisfied the schema. An authenticated low-privilege caller can use this to make nested data replace the validated body and trigger an operation the route schema did not authorize, leading to unauthorized state changes and data disclosure. Users should upgrade to fastify 5.12.2 or later.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.1,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00428,"percentile":0.37952,"provenance":"source"},"cwes":[{"id":"CWE-20","name":"Improper Input Validation"}],"references":[{"url":"https://github.com/fastify/fastify/security/advisories/GHSA-667r-xxjv-c9mm","tags":[]},{"url":"https://cna.openjsf.org/security-advisories.html","tags":[]}],"priority":{"score":13.3,"factors":[{"name":"EPSS percentile","points":7.59},{"name":"CVSS severity","points":5.67}]},"vendorSlug":"fastify","affectedVersions":[{"vendor":"fastify","product":"fastify","versions":["< 5.12.2"]}],"fixedVersions":[{"vendor":"fastify","product":"fastify","versions":["5.12.2"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2026-09-04T16:34:38.581872Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"fastify","vulnerableRanges":["<5.12.2"],"patched":["5.12.2"],"from":["GHSA-667r-xxjv-c9mm"],"provenance":"source"}],"summary":{"text":"The flaw is in Fastify's request validation handling, specifically in how the framework treats the object returned by a successful Ajv async validator in versions before 5.12.2. An attacker who has low-privilege authenticated network access can exploit it by sending a request whose body passes the route schema but contains a root-level property named \"value\", which causes Fastify to replace the whole request body with that property's contents before the handler runs, letting the handler act on data the schema never validated, with no user interaction or special configuration required.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:41:11Z"},"euvd":{"id":"EUVD-2026-70984","exploited":false,"provenance":"source"}}