1. Archivio CVE
  2. 2026
  3. CVE-2026-7120

CVE-2026-7120

5.3 Gravità media CVSS v3.1 · fonte NVD CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N 5.3 – Media

Descrizione

@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, 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.

Prodotti coinvolti

FornitoreProdottoVersionePiattaforma
fastify fastify-static < 10.1.2 –

Tipo di vulnerabilità

CWE-180 Incorrect Behavior Order: Validate Before Canonicalize

The product validates input before it is canonicalized.

Impatto sui sistemi

AmbitoImpatto
Controllo degli accessi Aggirare i meccanismi di protezione

Come si previene

Sviluppo · Validazione dell’input Inputs should be decoded and canonicalized to the application's current internal representation before being validated (CWE-180). Make sure that the application does not decode the same input twice (CWE-174). Such errors could be used to bypass allowlist validation schemes by introducing dangerous inputs after they have been checked.

Le indicazioni di mitigazione sono riportate nella lingua originale del catalogo CWE del MITRE.

Tutte le 45 CVE di tipo CWE-180, con andamento e prevenzione

Fonte: catalogo CWE del MITRE · cwe.mitre.org