PT-2026-77312 · Npm · Fastify
CVSS v3.1
5.4
Medium
| Vector | AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N |
Name of the Vulnerable Software and Affected Versions
fastify versions prior to 5.12.1
Description
A schema validation bypass occurs when a request body schema targets a root primitive value. When validating a top-level primitive, such as an integer, Ajv (a JSON schema validator) may coerce a JSON string into the expected type. However, the framework fails to replace the root request body with this coerced value, causing the route handler to receive the original unvalidated string. This allows requests that should have failed validation to reach application logic with values that do not satisfy the schema, potentially undermining integrity and access-control checks that rely on the validated type.
Recommendations
Update to version 5.12.1.
Exploit
Fix
RCE
Found an issue in the description? Have something to add? Feel free to write us 👾
Weakness Enumeration
Related Identifiers
Affected Products
Fastify