{"id":"GHSA-w2qp-rph6-63g4","revision":null,"records":[{"revision":"830dc5a3caf04189b2c946f20147531b","observedAt":"2026-10-23T15:48:27.903+00:00","statement":{"source":"cve-program","id":"CVE-2026-18504","aliases":[],"title":"fastify vulnerable to schema validation bypass via root primitive coercion mismatch","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.","state":0,"publishedAt":"2026-08-18T20:19:12.611+00:00","modifiedAt":"2026-08-19T13:15:05.131+00:00","affected":[{"ecosystem":"Vendor product","name":"fastify","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"vendor\": \"fastify\",\n                    \"product\": \"fastify\",\n                    \"defaultStatus\": \"unaffected\",\n                    \"versions\": [\n                        {\n                            \"versionType\": \"semver\",\n                            \"status\": \"affected\",\n                            \"version\": \"0\",\n                            \"lessThan\": \"5.12.1\"\n                        },\n                        {\n                            \"versionType\": \"semver\",\n                            \"status\": \"unaffected\",\n                            \"version\": \"5.12.1\"\n                        }\n                    ],\n                    \"packageURL\": \"pkg:npm/fastify\"\n                }"}],"metrics":[{"system":"CVSS 3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N","score":5.4,"severity":"MEDIUM"}],"references":["https://github.com/fastify/fastify/security/advisories/GHSA-w2qp-rph6-63g4","https://cna.openjsf.org/security-advisories.html"],"sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2026-18504","license":"CVE Program Terms of Use","key":"cve-program:CVE-2026-18504","identifiers":["CVE-2026-18504"]},"retained":false,"historicalAffected":[]},{"revision":"dd195312cd1646859f09d4978ddf7805","observedAt":"2026-11-19T09:25:04.542+00:00","statement":{"source":"euvd","id":"EUVD-2026-61221","aliases":["CVE-2026-18504","GHSA-w2qp-rph6-63g4"],"title":"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 prim…","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.","state":0,"publishedAt":null,"modifiedAt":null,"affected":[],"metrics":[{"system":"EUVD CVSS 3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N","score":5.4,"severity":null}],"references":["https://github.com/fastify/fastify/security/advisories/GHSA-w2qp-rph6-63g4","https://cna.openjsf.org/security-advisories.html"],"sourceUrl":"https://euvd.enisa.europa.eu/vulnerability/EUVD-2026-61221","license":"ENISA EUVD · source terms and attribution apply","enrichment":{"sourceStatus":null,"weaknesses":[],"productCriteria":[],"sourceDates":{"datePublished":"Aug 18, 2026, 8:19:12 PM","dateUpdated":"Aug 19, 2026, 1:15:05 PM"},"relatedAdvisories":[],"note":"EUVD source date text has no stated timezone and is retained without inventing a UTC instant. Related bulletin membership is not an alias, common cause or applicability claim. A missing vector with a zero score is treated as unrated. Complete vendor/product and underlying source evidence remains in the original JSON."},"key":"euvd:EUVD-2026-61221","identifiers":["EUVD-2026-61221","CVE-2026-18504","GHSA-w2qp-rph6-63g4"]},"retained":false,"historicalAffected":[]},{"revision":"23266a9ff7be435ea3d7cdaa0204c21e","observedAt":"2026-10-25T05:17:25.909+00:00","statement":{"source":"nvd","id":"CVE-2026-18504","aliases":[],"title":"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 prim…","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.","state":0,"publishedAt":"2026-08-18T21:16:34.22+00:00","modifiedAt":"2026-09-02T14:30:22.81+00:00","affected":[],"metrics":[{"system":"CVSS 3.1 · ce714d77-add3-4f53-aff5-83d477b104bb · Secondary","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N","score":5.4,"severity":"MEDIUM"},{"system":"CVSS 3.1 · nvd@nist.gov · Primary","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N","score":5.3,"severity":"MEDIUM"}],"references":["https://cna.openjsf.org/security-advisories.html","https://github.com/fastify/fastify/security/advisories/GHSA-w2qp-rph6-63g4"],"sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2026-18504","license":"NIST NVD usage terms; underlying source attribution retained","enrichment":{"sourceStatus":"Analyzed","weaknesses":["CWE-20"],"productCriteria":["cpe:2.3:a:fastify:fastify:*:*:*:*:*:node.js:*:*"],"sourceDates":{"published":"2026-08-18T21:16:34.220","lastModified":"2026-09-02T14:30:22.810"},"relatedAdvisories":[],"note":"NVD analysis and CPE criteria are source context, not proof that a package or your environment is affected. Complete affected data, logical configurations and SSVC are retained in the original JSON."},"key":"nvd:CVE-2026-18504","identifiers":["CVE-2026-18504"]},"retained":false,"historicalAffected":[]},{"revision":"a1f95cfae32c4b05973622bcc34f9176","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"GHSA-w2qp-rph6-63g4","aliases":["CVE-2026-18504"],"title":"fastify vulnerable to schema validation bypass via root primitive coercion mismatch","description":"### Impact\n\n`fastify` before 5.12.1, when a route uses a root-level primitive body schema (for example an integer with a minimum and maximum) and the default type coercion, validates the coerced value but exposes the original, uncoerced value to the route handler. For example, a JSON body `\"10\"` is coerced to the number `10` and passes an integer 1 to 10 schema, but `request.body` stays the string `\"10\"`. An application that trusts the validated type is handed a value that did not satisfy the schema, which can bypass limits the application enforces on that typed value. Object and array body schemas are not affected, they coerce their members in place.\n\n### Patches\n\nUpgrade to `fastify` 5.12.1.\n\n### Workarounds\n\nUntil you can upgrade, avoid relying on the validated type of a root primitive body. Wrap the value in an object schema (object properties are coerced in place), for example accept `{ \"value\": 10 }` and read `request.body.value`, or re-check the type in the handler.","state":0,"publishedAt":"2026-09-02T15:13:23+00:00","modifiedAt":"2026-09-02T15:31:16.7709921+00:00","affected":[{"ecosystem":"npm","name":"fastify","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"},{"kind":"fixed","version":"5.12.1"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[{"system":"CVSS_V3","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N","score":null,"severity":null},{"system":"Publisher rating","vector":null,"score":null,"severity":"MODERATE"}],"references":["https://github.com/fastify/fastify/security/advisories/GHSA-w2qp-rph6-63g4","https://nvd.nist.gov/vuln/detail/CVE-2026-18504","https://github.com/fastify/fastify/commit/1ef8a60c87e94f42f666aa15ad68957772a83655","https://cna.openjsf.org/security-advisories.html","https://github.com/fastify/fastify","https://github.com/fastify/fastify/releases/tag/v5.12.1"],"sourceUrl":"https://github.com/advisories/GHSA-w2qp-rph6-63g4","license":"GitHub Advisory Database · CC-BY-4.0","key":"osv:GHSA-w2qp-rph6-63g4","identifiers":["GHSA-w2qp-rph6-63g4","CVE-2026-18504"]},"retained":false,"historicalAffected":[]}],"coverage":[{"source":"cisa-kev:global","scope":"Complete CISA KEV catalog; all vendors. Missing entries do not establish absence of exploitation.","generation":"2026-11-19T19:49:02.2080688+00:00","complete":true,"records":1786,"lastAttemptAt":"2026-11-19T19:49:02.2080688+00:00","lastSuccessAt":"2026-11-19T19:49:02.4104946+00:00","error":null,"lastVerifiedAt":"2026-11-19T19:49:02.4104951+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"cve-program","scope":"Official CVE Program baseline and cumulative hourly delta; all vendors, published and rejected records","generation":"cve-e55c589538e0700b45c7d6d41fe1447a79199283262c371c864535c791a040b9-e926604b00572495d2532e7e16a009d33144d82739d00d5c817145c91beef649","complete":true,"records":429005,"lastAttemptAt":"2026-11-19T19:47:03.5468516+00:00","lastSuccessAt":"2026-11-19T19:47:03.3773964+00:00","error":null,"lastVerifiedAt":"2026-11-19T19:47:03.5468516+00:00","snapshotPublishedAt":"2026-11-19T19:29:05+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"euvd","scope":"Rolling EUVD lookups of CVE aliases in current public OSV archives; 500 identifiers per refresh, rechecked after 48 hours. Not a global EUVD catalog. Successful not-found lookups count as checked; they do not imply withdrawal or safety. No reader inventory is sent.","generation":"enrichment-4bfdec5112b243e48c56bc5172ee869c","complete":false,"records":13866,"lastAttemptAt":"2026-11-19T19:58:47.4812903+00:00","lastSuccessAt":"2026-11-19T19:58:47.477+00:00","error":"518 identifier lookups failed; latest failures include AccessDenied (HTTP 403). Other identifiers were checked independently.","lastVerifiedAt":"2026-11-19T19:58:47.477+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":13396,"expectedIdentifiers":13914,"failedIdentifiers":518},{"source":"first-epss:nuget","scope":"FIRST EPSS for explicit CVE aliases in the collected public NuGet archive. Not a global EPSS backfill.","generation":"2026-11-19T19:49:02.2080688+00:00","complete":true,"records":1125,"lastAttemptAt":"2026-11-19T19:49:02.2080688+00:00","lastSuccessAt":"2026-11-19T19:49:02.4114037+00:00","error":null,"lastVerifiedAt":"2026-11-19T19:49:02.411404+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"nvd","scope":"Rolling NVD lookups of CVE aliases in current public OSV archives; 500 identifiers per refresh, rechecked after 48 hours. Not a global NVD catalog. Successful not-found lookups count as checked; they do not imply withdrawal or safety. No reader inventory is sent.","generation":"enrichment-d87b508fe7254e86be9d11625119f28e","complete":true,"records":13878,"lastAttemptAt":"2026-11-19T19:49:15.6570679+00:00","lastSuccessAt":"2026-11-19T19:49:15.653+00:00","error":null,"lastVerifiedAt":"2026-11-19T19:49:15.653+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":13914,"expectedIdentifiers":13914,"failedIdentifiers":0},{"source":"osv:Go","scope":"Complete OSV Go ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"go-7b847de8d346a4b605d25dfaa256e6048ccf033cdf1e65b5fde14a9872a0b2a6","complete":true,"records":9965,"lastAttemptAt":"2026-11-19T19:48:57.4826868+00:00","lastSuccessAt":"2026-11-19T16:46:59.4476531+00:00","error":null,"lastVerifiedAt":"2026-11-19T19:48:57.4826868+00:00","snapshotPublishedAt":"2026-11-19T16:18:26+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:NuGet","scope":"Complete OSV NuGet ecosystem archive, including GitHub Advisory Database records; NuGet version matching only","generation":"nuget-f4424d7d4861b1af1404bd15abcb83f295dcd003412a9340ca99dc8200aa148a","complete":true,"records":2014,"lastAttemptAt":"2026-11-19T19:47:03.7252084+00:00","lastSuccessAt":"2026-11-13T19:57:08.2864435+00:00","error":null,"lastVerifiedAt":"2026-11-19T19:47:03.7252084+00:00","snapshotPublishedAt":"2026-11-13T19:33:10+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:crates.io","scope":"Complete OSV crates.io ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"crates.io-144175a7f246d52f4b35e8013958783dc7f5518066becd11cdfe790dd8f37e96","complete":true,"records":3195,"lastAttemptAt":"2026-11-19T19:49:02.1686664+00:00","lastSuccessAt":"2026-11-19T19:49:02.0382337+00:00","error":null,"lastVerifiedAt":"2026-11-19T19:49:02.1686664+00:00","snapshotPublishedAt":"2026-11-19T18:48:09+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:npm","scope":"Complete OSV npm ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"npm-a1d34507d5acbe17a3a29de77ee1f538c1b64c7595ee398fa4460b04b2528058","complete":true,"records":232772,"lastAttemptAt":"2026-11-19T19:48:57.3318311+00:00","lastSuccessAt":"2026-11-19T19:48:56.3067292+00:00","error":null,"lastVerifiedAt":"2026-11-19T19:48:57.3318311+00:00","snapshotPublishedAt":"2026-11-19T18:48:13+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null}]}