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.
CVE-2026-18504
“—” beside the score: it is equal to NVD's CVSS score.
This medium-severity CVE scores 5.3 under NVD CVSS v3. EPSS exploit probability: 0.3% (22nd percentile of EPSS-scored CVEs). No GitHub Security Advisory CVSS is on record for this CVE.
- Lower severity and no public exploit yet
A fix is available — apply it.
- CVSS v3
- 5.3
- EG Score
- 5.3MEDIUMmedium confidence
- EG Risk
- 24EG Risk 24/100
EG Risk is EchelonGraph's 0–100 priority score: it fuses intrinsic severity with real-world exploitation and automatability so you can rank equal-severity CVEs and fix the most dangerous first. Higher = act sooner. Distinct from the 0–10 EG Score (severity).
How it’s computed (value × EchelonGraph’s weight)Severity53% × 45%The EG Score, 5.3 of 10.Exploitation0.3% × 40%FIRST EPSS: the 30-day exploitation probability when EchelonGraph scored this CVE.Automatability0% × 15%CISA's SSVC Automatable value: no (Vulnrichment).SSVC (CISA's decision table, applied by EchelonGraph): Track at every mission impact level.Exploitation none (CISA Vulnrichment) · Automatable no (CISA Vulnrichment) · Technical impact partial (CISA Vulnrichment). All three are CISA's SSVC values (Vulnrichment). EchelonGraph applied CISA's decision table to them; CISA publishes SSVC inputs and the table, not a decision for each CVE.Action: A fix is available. Apply it within your standard update timelines. - EPSS PROB
- 0.3%
- EPSS %ILE
- 22nd
- KEV
- Not listed
SSVC (CISA's decision table, applied by EchelonGraph)Track at every mission impact level.
A fix is available. Apply it within your standard update timelines.
Exploitation none (CISA Vulnrichment) · Automatable no (CISA Vulnrichment) · Technical impact partial (CISA Vulnrichment). All three are CISA's SSVC values (Vulnrichment). EchelonGraph applied CISA's decision table to them; CISA publishes SSVC inputs and the table, not a decision for each CVE. Mission impact is CISA's Mission & Well-being decision point, and only you can judge it. CISA's table makes it high when Mission Prevalence is Essential — the vulnerable component "directly provides capabilities that constitute at least one MEF for at least one entity" (MEF: mission essential function) — or when Public Well-Being Impact is Irreversible: "multiple fatalities are likely", the cyber-physical system "is likely lost or destroyed", "extreme or serious externalities" are imposed on other parties, or social systems such as elections or the financial grid "are destabilized and potentially collapse". CISA's decision table
BOD 26-04 (CISA's remediation timeline, Table 1)60 days if the affected system is publicly exposed; Fix on system upgrade if it is not.
In CISA KEV no (CISA's KEV catalog) · Automatable no (CISA Vulnrichment) · Technical impact partial (CISA Vulnrichment). Whether your system is publicly exposed is yours to answer. BOD 26-04 binds US Federal Civilian Executive Branch agencies; for anyone else it is CISA's published timeline, a reference rather than an obligation. The directive · how EchelonGraph applies it
Published
August 18, 2026
Last Modified
September 2, 2026
Advisory Details (2)
Auto-updated Aug 18, 2026Security Advisories | OpenJS Foundation CVE Numbering Authority
https://cna.openjsf.org/security-advisories.htmlfastify vulnerable to schema validation bypass via root primitive coercion mismatch · Advisory · fastify/fastify · GitHub
https://github.com/fastify/fastify/security/advisories/GHSA-w2qp-rph6-63g4Vendor Advisories for CVE-2026-18504(1)
These vendors published their own advisory mentioning this CVE — often with vendor-specific remediation steps + affected product lists not in NVD.
Affected Packages
(1 across 1 ecosystem)
npm(1)
| Package | Vulnerable range | Fix by version range | Dependents |
|---|---|---|---|
| fastify | — |
| — |
Weakness Classification(1)
MITRE Common Weakness Enumeration — the root-cause categories this CVE belongs to.
Data Freshness Timeline
(refreshed 11× in last 7d / 41× in last 30d)
Each row is a time one of our pipelines fetched, updated or re-scored this CVE. For example, "NVD update" means NVD published or revised its analysis for this CVE; "MITRE cvelistV5" means we ingested or refreshed it from the CNA feed. An arrow marks a change the record states ("CVSS v3 → 9.1"); EPSS and GHSA rows show the values recorded at that time, not what changed (EPSS values are rounded; hover one for the exact figures). Most recent first.
- 2026-10-13 16:33 UTCEPSS rescoreEPSS 0.3% · 22nd percentile
- 2026-10-12 16:33 UTCEPSS rescoreEPSS 0.3% · 21st percentile
- 2026-10-12 16:27 UTCEG score recompute
- 2026-10-11 20:07 UTCEG score recompute
- 2026-10-11 17:20 UTCEG score recompute
- 2026-10-11 14:52 UTCEG score recompute
- 2026-10-11 13:48 UTCEPSS rescoreEPSS 0.3% · 21st percentile
- 2026-10-10 19:59 UTCEPSS rescoreEPSS 0.3% · 21st percentile
- 2026-10-09 20:06 UTCEPSS rescoreEPSS 0.3% · 21st percentile
- 2026-10-08 17:11 UTCEPSS rescoreEPSS 0.3% · 21st percentile
- 2026-10-07 23:47 UTCEPSS rescoreEPSS 0.3% · 21st percentile
- 2026-10-07 11:10 UTCEG score recompute
- 2026-10-06 15:17 UTCEPSS rescoreEPSS 0.3% · 21st percentile
- 2026-10-06 08:21 UTCEG score recompute
- 2026-10-05 17:42 UTCEPSS rescoreEPSS 0.3% · 21st percentile
- 2026-10-04 23:21 UTCEPSS rescoreEPSS 0.3% · 21st percentile
- 2026-10-03 17:37 UTCEG score recompute
- 2026-10-03 14:25 UTCEPSS rescoreEPSS 0.3% · 21st percentile
- 2026-10-02 15:05 UTCEG score recompute
- 2026-10-01 19:49 UTCEPSS rescoreEPSS 0.3% · 21st percentile
- 2026-10-01 10:45 UTCEG score recompute
- 2026-09-30 15:02 UTCEPSS rescoreEPSS 0.3% · 21st percentile
- 2026-09-30 09:47 UTCEG score recompute
- 2026-09-29 15:20 UTCEPSS rescoreEPSS 0.3% · 21st percentile
- 2026-09-28 13:51 UTCEPSS rescoreEPSS 0.3% · 21st percentile
Show 65 moreShow fewer
- 2026-09-28 08:41 UTCEG score recompute
- 2026-09-27 13:47 UTCEPSS rescoreEPSS 0.3% · 21st percentile
- 2026-09-27 07:54 UTCEG score recompute
- 2026-09-26 15:58 UTCEPSS rescoreEPSS 0.3% · 21st percentile
- 2026-09-25 01:24 UTCEG score recompute
- 2026-09-22 20:24 UTCEG score recompute
- 2026-09-21 15:46 UTCEG score recompute
- 2026-09-20 14:01 UTCEG score recompute
- 2026-09-19 12:32 UTCEG score recompute
- 2026-09-18 19:27 UTCEPSS rescoreEPSS 0.3% · 23rd percentile
- 2026-09-18 11:44 UTCEG score recompute
- 2026-09-17 10:56 UTCEG score recompute
- 2026-09-16 14:07 UTCEPSS rescoreEPSS 0.3% · 23rd percentile
- 2026-09-16 10:07 UTCEG score recompute
- 2026-09-16 05:14 UTCEPSS rescoreEPSS 0.3% · 23rd percentile
- 2026-09-15 08:15 UTCEG score recompute
- 2026-09-14 07:27 UTCEG score recompute
- 2026-09-13 16:46 UTCEPSS rescoreEPSS 0.3% · 23rd percentile
- 2026-09-13 06:39 UTCEG score recompute
- 2026-09-12 15:00 UTCEPSS rescoreEPSS 0.3% · 23rd percentile
- 2026-09-12 05:51 UTCEG score recompute
- 2026-09-11 14:52 UTCEPSS rescoreEPSS 0.3% · 23rd percentile
- 2026-09-11 09:36 UTCEPSS rescoreEPSS 0.3% · 23rd percentile
- 2026-09-11 05:03 UTCEG score recompute
- 2026-09-10 09:34 UTCEPSS rescoreEPSS 0.3% · 23rd percentile
- 2026-09-09 03:22 UTCEG score recompute
- 2026-09-08 22:00 UTCEPSS rescoreEPSS 0.3% · 23rd percentile
- 2026-09-07 19:21 UTCEG score recompute
- 2026-09-07 16:01 UTCEPSS rescoreEPSS 0.3% · 23rd percentile
- 2026-09-06 18:33 UTCEG score recompute
- 2026-09-06 13:47 UTCEPSS rescoreEPSS 0.3% · 23rd percentile
- 2026-09-05 17:45 UTCEG score recompute
- 2026-09-04 16:55 UTCEG score recompute
- 2026-09-04 05:06 UTCEPSS rescoreEPSS 0.3% · 23rd percentile
- 2026-09-02 14:46 UTCEG score recompute▼ 0.10
- 2026-09-02 14:43 UTCNVD updateCVSS v3 → 5.3
- 2026-09-02 14:11 UTCEPSS rescoreEPSS 0.3% · 23rd percentile
- 2026-09-01 23:11 UTCEG score recompute
- 2026-09-01 13:53 UTCEPSS rescoreEPSS 0.3% · 23rd percentile
- 2026-09-01 04:39 UTCEPSS rescoreEPSS 0.3% · 23rd percentile
- 2026-08-30 21:35 UTCEG score recompute
- 2026-08-30 19:17 UTCEPSS rescoreEPSS 0.3% · 23rd percentile
- 2026-08-30 01:22 UTCEPSS rescoreEPSS 0.3% · 23rd percentile
- 2026-08-29 20:47 UTCEG score recompute
- 2026-08-28 21:41 UTCEPSS rescoreEPSS 0.3% · 23rd percentile
- 2026-08-27 20:59 UTCEG score recompute
- 2026-08-27 14:25 UTCEPSS rescoreEPSS 0.3% · 23rd percentile
- 2026-08-26 20:11 UTCEG score recompute
- 2026-08-26 14:46 UTCEPSS rescoreEPSS 0.3% · 23rd percentile
- 2026-08-25 19:14 UTCEG score recompute
- 2026-08-25 13:48 UTCEPSS rescoreEPSS 0.3% · 23rd percentile
- 2026-08-24 18:26 UTCEG score recompute
- 2026-08-23 17:38 UTCEG score recompute
- 2026-08-23 00:19 UTCEPSS rescoreEPSS 0.3% · 24th percentile
- 2026-08-22 16:51 UTCEG score recompute
- 2026-08-21 23:49 UTCEPSS rescoreEPSS 0.3% · 24th percentile
- 2026-08-21 16:03 UTCEG score recompute
- 2026-08-20 22:55 UTCEPSS rescoreEPSS 0.3% · 24th percentile
- 2026-08-20 15:15 UTCEG score recompute
- 2026-08-19 17:03 UTCEPSS rescoreEPSS 0.3% · 24th percentile
- 2026-08-19 14:27 UTCEG score recompute
- 2026-08-19 13:41 UTCEG score recompute
- 2026-08-18 21:36 UTCEG score recompute
- 2026-08-18 20:33 UTCEG score recomputeFirst assessed: 5.4 MEDIUM
- 2026-08-18 20:33 UTCMITRE cvelistV5first tracked
Related CVEs(same product + same CWE)
Same product
10 shownnpm:fastify
Frequently asked(5)
What is CVE-2026-18504?
When was the CVE record for CVE-2026-18504 published?
Is CVE-2026-18504 actively exploited?
What is the CVSS score of CVE-2026-18504?
How do I remediate CVE-2026-18504?
Dependency Blast Radius
See which npm, PyPI, Go, and Maven packages are affected by CVE-2026-18504
Is Your Infrastructure Affected by CVE-2026-18504?
EchelonGraph automatically scans your cloud infrastructure and maps CVE exposure using blast radius analysis.