Medium severity · published Aug 18, 2026
CVE-2026-18504
fastify vulnerable to schema validation bypass via root primitive coercion mismatch
5.3
CVSS
0.3%
EPSS
No
On KEV
Description
fastify is a fast and low overhead web framework for Node.js. Versions of fastify before 5.12.1 are affected by a schema validation bypass when a request body schema targets a root primitive value. When the schema validates a top-level primitive such as an integer, Ajv can coerce a JSON string into the expected type during validation, but Fastify does not replace the root request body with the coerced value, so the route handler receives the original unvalidated string. As a result, a request that should have failed validation can reach application logic with a value that does not satisfy the schema, which can undermine integrity and access-control checks that rely on the validated type. Users should upgrade to fastify 5.12.1, which fixes the mismatch. No known workarounds are available.
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
Attack vector
Network
Complexity
Low
Privileges
None
User interaction
None
Confidentiality
None
Integrity
Low
Availability
None
Scope
Unchanged
Exploitation
Is it being used?
Exploit prediction (EPSS)0.3% · higher than 20% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
FA
fastify · fastify
before 5.12.1 · source: vendor, NVD
Affected product
FA
fastify
fastify
More from fastify
8.8
CVE-2022-41919
Fastify is a web framework with minimal overhead and plugin architecture
8.1
CVE-2026-84504
fastify vulnerable to request body replacement via an async validation result collision
7.5
CVE-2026-84428
fastify vulnerable to header validation bypass via incomplete schema case normalization
7.5
CVE-2026-84469
fastify vulnerable to request validation bypass via skipped boolean false schemas
7.5
CVE-2026-76169
fastify vulnerable to authentication bypass via malformed URLs reaching encapsulated not-found handlers