Skip to main content
← All vulnerabilities
CVE-2026-84504GHSA-667R-XXJV-C9MM

fastify vulnerable to request body replacement via an async validation result collision

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 5.12.2
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: none
  • Automatable: no
  • Technical impact: total

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: none · Automatable: no · Technical impact: total

  3. Record last updated

Affected versions

  • fastify fastify

    fixed in 5.12.2

  • fastifynpm

    fixed in 5.12.2

References 2

GitHub · fastify/fastify

cna.openjsf.org