Cyber Resilience

CVE-2026-7120

Fastify-Static ≤ 10.1.2

Published
23 July 2026
Modified
28 July 2026
Patch / advisory
CVSS Score v3.1 5.3
Click a component to see what it means
Raw vectorCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
EPSS Score 0.0022 13th percentile
Risk Priority 44 floored blend · peak EPSS

Summary

CVE-2026-7120 is a medium-severity Incorrect Behavior Order: Validate Before Canonicalize (CWE-180) vulnerability in Fastify Fastify-Static. Its CVSS base score is 5.3 (Medium).

Operationally, exploitation aligns with the MITRE ATT&CK technique Exploit Public-Facing Application (T1190); ranked at the 13th percentile by exploit likelihood (below the median); it is not currently listed in the CISA KEV catalog.

The strongest mitigations our analysis identified map to SA-11 (Developer Testing and Evaluation) and SI-10 (Information Input Validation) — see the control section below for these in your framework.

EU & UK References

Vulnerability Data

@fastify/static evaluates the allowedPath callback before normalizing dot segments and duplicate path separators in the pathname used for file resolution. Versions up to and including 10.1.1 are affected. An unauthenticated attacker can bypass allowedPath restrictions by requesting equivalent non-canonical pathnames,…

more

causing files that were intended to be denied to be served anyway. The bypass does not allow access outside the configured static root by itself, it defeats path-based filtering only. The issue is patched in @fastify/static 10.1.2.

CWE(s)

Related Threats

MITRE ATT&CK Enterprise Techniques

T1190 Exploit Public-Facing Application Initial Access
Adversaries may attempt to exploit a weakness in an Internet-facing host or system to initially access a network.
T1027 Obfuscated Files or Information Stealth
Adversaries may attempt to make an executable or file difficult to discover or analyze by encrypting, encoding, or otherwise obfuscating its contents on the system or in transit.
Derived from this CVE’s CWE(s) via the direct CWE→ATT&CK cross-walk.

CVEs Like This One

CVE-2026-6410Same product: Fastify Fastify-Static
CVE-2026-15074Same product: Fastify Fastify-Static
CVE-2026-6414Same product: Fastify Fastify-Static
CVE-2026-39409Shared CWE-180
CVE-2026-52747Shared CWE-180
CVE-2026-22031Same vendor: Fastify
CVE-2023-27495Same vendor: Fastify
CVE-2024-28607Shared CWE-180
CVE-2023-31999Same vendor: Fastify
CVE-2023-51701Same vendor: Fastify

Affected Assets

fastify
fastify-static
≤ 10.1.2

Mitigating Controls

Control response

Prevent
Stop it (NIST 800-53)

Detect
Catch it (NIST detect / respond)

Harden
Shrink the surface (DISA STIG)

Validate
Prove the fix (OWASP ASVS)
  • V1.3.8
  • V1.1.1
  • V12.1.3

Mitigating Controls (NIST 800-53 r5) AI

SA-11 requires developer testing and evaluation that can discover validation-order defects after they have been coded.

SI-10 requires validity checks on inputs; when implemented with canonicalization preceding validation it structurally prevents the exact ordering flaw.

SA-8 mandates security engineering principles that include correct canonicalization-before-validation ordering for input handling.

Mitigating Controls (NIST CSF 2.0) AI

Derived directly from the weakness types (CWEs) cited in the NVD entry via our AI-authored CWE→CSF cross-walk (authority under review) — links open the control.

PR.PS-06 mostly match
prevents

Secure SDLC practices directly require correct validation order after canonicalization to prevent bypasses.

Mitigating Controls (ISO/IEC 27001:2022 Annex A) AI

Derived directly from the weakness types (CWEs) cited in the NVD entry via our AI-authored CWE→ISO cross-walk (authority under review) — links open the control.

finds

Security testing can detect validation-order defects before deployment.

prevents

Secure SDLC mandates input validation and canonicalization order, directly addressing CWE-180.

prevents

Application security requirements include proper input handling to prevent validation-before-canonicalization flaws.

prevents

Secure architecture principles reduce the likelihood of ordering errors in input processing.

prevents

Secure coding standards explicitly require canonicalize-then-validate to eliminate CWE-180.

References