CVE-2026-84504
HIGH 8.1CVSS 3.1fastify vulnerable to request body replacement via an async validation result collision
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.
- Published
- 4 Sep 2026
- Last modified
- 1 Oct 2026
- Assigned by
- ce714d77-add3-4f53-aff5-83d477b104bb
- NVD status
- Analyzed
- Weakness
- CWE-20
- Also known as
- GHSA-667r-xxjv-c9mm
- Sources
- NVDJSONOSV GHSA-667r-xxjv-c9mmJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | ce714d77-add3-4f53-aff5-83d477b104bb (Secondary) | CVSS 3.1 | HIGH 8.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N |
| OSV | GitHub | CVSS 3.1 | HIGH 8.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | fastify | fastifycpe:2.3:a:fastify:fastify:*:*:*:*:*:node.js:*:* |
< 5.12.2 | 5.12.2 |
| OSV | npm | fastify | < 5.12.2 | 5.12.2 |
References
- https://cna.openjsf.org/security-advisories.html · Third Party Advisory, WEB
- https://github.com/fastify/fastify/security/advisories/GHSA-667r-xxjv-c9mm · Mitigation, Vendor Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2026-84504 · ADVISORY
- https://github.com/fastify/fastify/commit/f02d8d4ab1ab208f10819c4dc213595b06497833 · WEB
- https://github.com/fastify/fastify · PACKAGE
- https://github.com/fastify/fastify/releases/tag/v5.12.2 · WEB
History
- 25 Nov 2026 21:05 UTC · NVD: first stored (published 4 Sep 2026)
- 25 Nov 2026 20:10 UTC · OSV: first stored (published 30 Sep 2026)