CVE Explorer
CVE-2026-48049
@hapi/inert provides static file and directory handlers for hapi.js. From 4.0.0 to 7.1.0, @hapi/inert serves static files from a directory configured with path in the directory or file handlers or relativeTo for h.file(), with confinement enforced by the confine option, but the confinement check compared the resolved absolute path against the confine directory using a raw string-prefix test, so a sibling directory such as /app/static-secret next to /app/static was incorrectly accepted and could
Known exploited
Not asserted
Disputed
No
Stale source
No
Conflicts
0
Affected products and versions
1 source assertion{"product":"inert","vendor":"hapijs","versions":[{"status":"affected","version":">= 4.0.0, < 7.1.1"}]}
- cve_program_cvelist_v5affectedurn:baitaphish:normalized-source-record:v2:233f9bcae18e9cd9f094daacb7006da1302f09f8c6b6f87861b05915324425b6 · sha256:9741601e506ef3eb… · /containers/cna/affected/0
Provider-owned CVSS observations
1 source assertion{"metric":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"NONE","baseScore":5.3,"baseSeverity":"MEDIUM","confidentialityImpact":"LOW","integrityImpact":"NONE","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"NONE","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:233f9bcae18e9cd9f094daacb7006da1302f09f8c6b6f87861b05915324425b6 · sha256:9741601e506ef3eb… · /containers/cna/metrics/0/cvssV3_1
CWE assertions
1 source assertion{"cweId":"CWE-22","description":"CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')","lang":"en","type":"CWE"}
- cve_program_cvelist_v5cweurn:baitaphish:normalized-source-record:v2:233f9bcae18e9cd9f094daacb7006da1302f09f8c6b6f87861b05915324425b6 · sha256:9741601e506ef3eb… · /containers/cna/problemTypes/0/descriptions/0
Source references
4 source assertions{"name":"https://github.com/hapijs/inert/commit/bcceb761a43b9d1178eb6bd553e4ad2bb70494d9","tags":["x_refsource_MISC"],"url":"https://github.com/hapijs/inert/commit/bcceb761a43b9d1178eb6bd553e4ad2bb70494d9"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:233f9bcae18e9cd9f094daacb7006da1302f09f8c6b6f87861b05915324425b6 · sha256:9741601e506ef3eb… · /containers/cna/references/2
{"name":"https://github.com/hapijs/inert/pull/176","tags":["x_refsource_MISC"],"url":"https://github.com/hapijs/inert/pull/176"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:233f9bcae18e9cd9f094daacb7006da1302f09f8c6b6f87861b05915324425b6 · sha256:9741601e506ef3eb… · /containers/cna/references/1
{"name":"https://github.com/hapijs/inert/releases/tag/v7.1.1","tags":["x_refsource_MISC"],"url":"https://github.com/hapijs/inert/releases/tag/v7.1.1"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:233f9bcae18e9cd9f094daacb7006da1302f09f8c6b6f87861b05915324425b6 · sha256:9741601e506ef3eb… · /containers/cna/references/3
{"name":"https://github.com/hapijs/inert/security/advisories/GHSA-rcvq-m9j9-6f4g","tags":["x_refsource_CONFIRM"],"url":"https://github.com/hapijs/inert/security/advisories/GHSA-rcvq-m9j9-6f4g"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:233f9bcae18e9cd9f094daacb7006da1302f09f8c6b6f87861b05915324425b6 · sha256:9741601e506ef3eb… · /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.