CVE-2026-48049
Description
@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 allow an unauthenticated remote attacker to read files via /..%2fstatic-secret/secret.txt. This issue is fixed in version 7.1.1.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
@hapi/inertnpm | >= 4.0.0, < 7.1.1 | 7.1.1 |
Affected products
21- osv-coords20 versionspkg:apk/chainguard/kibana-8.17pkg:apk/chainguard/kibana-8.17-bitnamipkg:apk/chainguard/kibana-8.17-iamguardedpkg:apk/chainguard/kibana-8.19pkg:apk/chainguard/kibana-8.19-bitnamipkg:apk/chainguard/kibana-8.19-iamguardedpkg:apk/chainguard/kibana-9.0pkg:apk/chainguard/kibana-9.0-bitnamipkg:apk/chainguard/kibana-9.0-iamguardedpkg:apk/chainguard/kibana-9.1pkg:apk/chainguard/kibana-9.1-iamguardedpkg:apk/chainguard/kibana-9.2pkg:apk/chainguard/kibana-9.2-iamguardedpkg:apk/chainguard/kibana-9.3pkg:apk/chainguard/kibana-9.3-iamguardedpkg:apk/chainguard/kibana-9.4pkg:apk/chainguard/kibana-9.4-iamguardedpkg:apk/chainguard/opensearch-dashboards-3pkg:apk/chainguard/opensearch-dashboards-3-fipspkg:apk/wolfi/opensearch-dashboards-3
< 8.17.10-r25+ 19 more
- (no CPE)range: < 8.17.10-r25
- (no CPE)range: < 8.17.10-r25
- (no CPE)range: < 8.17.10-r25
- (no CPE)range: < 8.19.17-r0
- (no CPE)range: < 8.19.17-r0
- (no CPE)range: < 8.19.17-r0
- (no CPE)range: < 9.0.8-r32
- (no CPE)range: < 9.0.8-r32
- (no CPE)range: < 9.0.8-r32
- (no CPE)range: < 9.1.10-r22
- (no CPE)range: < 9.1.10-r22
- (no CPE)range: < 9.2.8-r10
- (no CPE)range: < 9.2.8-r10
- (no CPE)range: < 9.3.6-r0
- (no CPE)range: < 9.3.6-r0
- (no CPE)range: < 9.4.2-r3
- (no CPE)range: < 9.4.2-r3
- (no CPE)range: < 3.8.0-r0
- (no CPE)range: < 3.8.0-r0
- (no CPE)range: < 3.8.0-r0
Patches
Vulnerability mechanics
References
6- github.com/advisories/GHSA-rcvq-m9j9-6f4gghsaADVISORY
- github.com/hapijs/inert/commit/a65e5b271b5c3405af463469959c5e052eb23a62ghsaWEB
- github.com/hapijs/inert/pull/176nvdWEB
- github.com/hapijs/inert/security/advisories/GHSA-rcvq-m9j9-6f4gnvdWEB
- github.com/hapijs/inert/commit/bcceb761a43b9d1178eb6bd553e4ad2bb70494d9nvd
- github.com/hapijs/inert/releases/tag/v7.1.1nvd
News mentions
0No linked articles in our index yet.