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

- Severity: High 8.1 (CVSS:3.1, scored by openjs) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.26%, higher than 19% of CVEs (2026-12-01)
- Published: 2026-09-04T09:40:18.120Z
- Modified: 2026-10-01T00:00:04.671Z
- Also known as: GHSA-667r-xxjv-c9mm
- Weaknesses: CWE-20
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: openjs

## Description

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.

(As written by CVE List.)

## Affected

- fastify fastify: before 5.12.2 (not affected: 5.12.2)
- fastify (npm): before 5.12.2

## Every score

- openjs: CVSS:3.1 8.1 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N`
- GitHub: CVSS:3.1 8.1 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N`

## References

- <https://github.com/fastify/fastify/security/advisories/GHSA-667r-xxjv-c9mm> (mitigation, vendor-advisory, web)
- <https://cna.openjsf.org/security-advisories.html> (third-party-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)

## Sources

- CVE List: [CVE-2026-84504](https://www.cve.org/CVERecord?id=CVE-2026-84504), CVE Terms of Use, modified 2026-09-04
- GitHub Advisory Database: [GHSA-667r-xxjv-c9mm](https://github.com/advisories/GHSA-667r-xxjv-c9mm), CC-BY-4.0, modified 2026-10-01
- NVD: [CVE-2026-84504](https://nvd.nist.gov/vuln/detail/CVE-2026-84504), Public domain, modified 2026-09-15

---

Page: https://cve.day/CVE-2026-84504 · Whole record: https://cve.day/CVE-2026-84504.json · Rebuilt by cve.day 2026-11-25T22:59:36.270Z
