# CVE-2026-84504: fastify vulnerable to request body replacement via an async validation result collision

- Priority: **Routine**
- Reason: Not severe (CVSS 8.1, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2026-09-04 · Modified: 2026-09-04
- Aliases: GHSA-667r-xxjv-c9mm, CGA-wmp8-pj9q-g78f, CGA-9x5q-ggqx-8g2q, CGA-whhv-433f-82xv
- Record: https://cvemate.com/vulnerability/CVE-2026-84504 · JSON: https://cvemate.com/vulnerability/CVE-2026-84504/json

## 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.
```

## Signals

- CVSS: 8.1 high (v3.1, CVE.org) CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N
- EPSS: 0.262%, percentile 19.212%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- chainguard postgres-meta (Chainguard): All versions (No fix recorded)
- chainguard postgres-meta-fips (Chainguard): All versions (No fix recorded)
- fastify fastify: \< 5.12.2
- Npm fastify (Npm): \< 5.12.2

## References

- <https://github.com/fastify/fastify/security/advisories/GHSA-667r-xxjv-c9mm>
- <https://cna.openjsf.org/security-advisories.html>
- <https://nvd.nist.gov/vuln/detail/CVE-2026-84504>
- <https://github.com/fastify/fastify/commit/f02d8d4ab1ab208f10819c4dc213595b06497833>
- <https://github.com/fastify/fastify>
- <https://github.com/fastify/fastify/releases/tag/v5.12.2>
- <https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/84xxx/CVE-2026-84504.json>

---

Data as of 2026-12-05T09:19:17.747Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
