CVE Explorer
CVE-2026-7120
@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 onl
Known exploited
Not asserted
Disputed
No
Stale source
No
Conflicts
0
Affected products and versions
1 source assertion{"defaultStatus":"unaffected","packageURL":"pkg:npm/@fastify/static","product":"@fastify/static","vendor":"@fastify/static","versions":[{"lessThan":"10.1.2","status":"affected","version":"0","versionType":"semver"},{"status":"unaffected","version":"10.1.2","versionType":"semver"}]}
- cve_program_cvelist_v5affectedurn:baitaphish:normalized-source-record:v2:2a6a40b5d6b8c01183a14f684ddd7218133fd4ab53efd56962b937c6cabe6830 · sha256:bc6d2c6245a711a4… · /containers/cna/affected/0
Provider-owned CVSS observations
1 source assertion{"metric":{"baseScore":5.3,"baseSeverity":"MEDIUM","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N","version":"3.1"},"metric_type":"cvssV3_1"}
- cve_program_cvelist_v5cvssurn:baitaphish:normalized-source-record:v2:2a6a40b5d6b8c01183a14f684ddd7218133fd4ab53efd56962b937c6cabe6830 · sha256:bc6d2c6245a711a4… · /containers/cna/metrics/0/cvssV3_1
CWE assertions
1 source assertion{"cweId":"CWE-180","description":"CWE-180: Incorrect Behavior Order: Validate Before Canonicalize","lang":"en","type":"CWE"}
- cve_program_cvelist_v5cweurn:baitaphish:normalized-source-record:v2:2a6a40b5d6b8c01183a14f684ddd7218133fd4ab53efd56962b937c6cabe6830 · sha256:bc6d2c6245a711a4… · /containers/cna/problemTypes/0/descriptions/0
Source references
2 source assertions{"url":"https://cna.openjsf.org/security-advisories.html"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:2a6a40b5d6b8c01183a14f684ddd7218133fd4ab53efd56962b937c6cabe6830 · sha256:bc6d2c6245a711a4… · /containers/cna/references/1
{"url":"https://github.com/fastify/fastify-static/security/advisories/GHSA-8pvw-jcv7-9cmj"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:2a6a40b5d6b8c01183a14f684ddd7218133fd4ab53efd56962b937c6cabe6830 · sha256:bc6d2c6245a711a4… · /containers/cna/references/0
Attribution and limitations
- CVE Program CVEList V5: Reproduce the MITRE copyright designation and CVE license in copies. Source →
Provider severity values are preserved separately. Baitaphish does not convert them into a risk rating, infer affected products, or treat EPSS as observed exploitation.