# CVE-2026-48049: @hapi/inert: Static-file confinement bypass via sibling-prefix path

- Priority: **Routine**
- Reason: Not severe (CVSS 5.3, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2026-07-17 · Modified: 2026-07-21
- Aliases: CGA-8x93-f7h7-x7v9, CGA-gwvv-c7hv-m7xr, GHSA-rcvq-m9j9-6f4g, CGA-2hm9-7xfc-vc9x, CGA-2mfv-8w2w-q76g, CGA-2qjj-rvg4-cm4w, CGA-2vrp-36m3-432p, CGA-3v7x-c9wg-q785, CGA-3x3x-jf99-h2fw, CGA-3xfp-6wmh-f3h2, CGA-5vjg-f9jh-9vfg, CGA-5w24-fr5r-7mq5, CGA-62hv-h3j5-4jvh, CGA-65p5-rx85-g78p, CGA-6fg4-ch3c-3qrj, CGA-6pr2-9f5g-j4gr, CGA-7fxm-qpff-vvhm, CGA-7mr9-6vxr-3chx, CGA-7xw9-r7vj-h4pr, CGA-8wqr-rvvg-rv6g, CGA-9xrx-3q8x-r97h, CGA-ffrc-7cwq-c853, CGA-fj3f-4fwf-77rf, CGA-g434-m5j4-whwv, CGA-g47p-37wf-448p, CGA-gpw2-j666-wh8v, CGA-hr3m-mmq6-ppm5, CGA-j6gp-mwp4-23mp, CGA-j6r7-cqfc-5vp9, CGA-j97r-ffm4-8wm5, CGA-jc87-9jq5-8j34, CGA-jfqq-gwmw-gmmh, CGA-jmwc-j4wc-j89j, CGA-m9mr-hcx4-4mp8, CGA-mwxv-vwjj-42h3, CGA-p8r6-28mc-5qhq, CGA-pfwj-q45x-mv78, CGA-pr8w-47c2-j8q6, CGA-pw3w-pfqv-mpgj, CGA-q89h-j6j5-gv4r, CGA-r7hx-3xxq-q2qg, CGA-rgj4-v3p4-2pjv, CGA-rm99-pv99-fg5m, CGA-rrv7-w8j3-r3v8, CGA-v78f-vg76-hjgc, CGA-vch4-6jjv-5fp5, CGA-vcrh-2gxv-37qm, CGA-wq82-9xv6-fh4r, CGA-xmx6-7m93-5jqv
- Record: https://cvemate.com/vulnerability/CVE-2026-48049 · JSON: https://cvemate.com/vulnerability/CVE-2026-48049/json

## Description

```text
@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.
```

## Signals

- CVSS: 5.3 medium (v3.1, CVE.org) CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
- EPSS: 0.446%, percentile 40.554%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected (first 20 of 27)

- chainguard kibana-7 (Chainguard): All versions (No fix recorded)
- chainguard kibana-8.17 (Chainguard): \< 8.17.10-r25
- chainguard kibana-8.17-bitnami (Chainguard): \< 8.17.10-r25
- chainguard kibana-8.17-iamguarded (Chainguard): \< 8.17.10-r25
- chainguard kibana-8.19 (Chainguard): \< 8.19.17-r0
- chainguard kibana-8.19-bitnami (Chainguard): \< 8.19.17-r0
- chainguard kibana-8.19-iamguarded (Chainguard): \< 8.19.17-r0
- chainguard kibana-9.0 (Chainguard): \< 9.0.8-r32
- chainguard kibana-9.0-bitnami (Chainguard): \< 9.0.8-r32
- chainguard kibana-9.0-iamguarded (Chainguard): \< 9.0.8-r32
- chainguard kibana-9.1 (Chainguard): \< 9.1.10-r22
- chainguard kibana-9.1-iamguarded (Chainguard): \< 9.1.10-r22
- chainguard kibana-9.2 (Chainguard): \< 9.2.8-r10
- chainguard kibana-9.2-iamguarded (Chainguard): \< 9.2.8-r10
- chainguard kibana-9.3 (Chainguard): \< 9.3.6-r0
- chainguard kibana-9.3-iamguarded (Chainguard): \< 9.3.6-r0
- chainguard kibana-9.4 (Chainguard): \< 9.4.2-r3
- chainguard kibana-9.4-iamguarded (Chainguard): \< 9.4.2-r3
- chainguard opensearch-dashboards-2 (Chainguard): All versions (No fix recorded) \| \< 2.19.7-r0
- chainguard opensearch-dashboards-2-fips (Chainguard): All versions (No fix recorded) \| \< 2.19.7-r0

## References

- <https://github.com/hapijs/inert/security/advisories/GHSA-rcvq-m9j9-6f4g>
- <https://github.com/hapijs/inert/pull/176>
- <https://github.com/hapijs/inert/commit/bcceb761a43b9d1178eb6bd553e4ad2bb70494d9>
- <https://github.com/hapijs/inert/releases/tag/v7.1.1>
- <https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/48xxx/CVE-2026-48049.json>
- <https://nvd.nist.gov/vuln/detail/CVE-2026-48049>
- <https://github.com/hapijs/inert/commit/a65e5b271b5c3405af463469959c5e052eb23a62>
- <https://github.com/hapijs/inert>

---

Data as of 2026-12-05T06:50:38.797Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
