5.3

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

Deferred
AliasesCGA-8x93-f7h7-x7v9CGA-gwvv-c7hv-m7xrGHSA-rcvq-m9j9-6f4g
Published 17-07-2026Last modified 21-07-2026

Vulnerability summary

CVE-2026-48049 is a medium (CVSS 5.3) vulnerability in hapijs inert. EPSS estimates a 0.45% chance of exploitation in the next 30 days, higher than 40.5% of scored vulnerabilities.

Priority
Routine

Not severe (CVSS 5.3, network access); no exploitation reported by the 5 checked sources

Source freshness unavailable

How is this decided?
CVSS score
5.3/10
010
Medium · v3.1 (CVE.org)
EPSS score
0.45%
0%100%
Low · -0.14 pp in 30 days
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware use recorded.
Public exploits0No public exploits recorded

Advisory lineage

Upstream 0 · Downstream 0 · Related 1

Timeline

  1. 17-07-2026
    PublishedVulnerability first disclosed.
  2. 21-07-2026
    Last modifiedVulnerability information updated.

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.

CVSS metrics

5 scores · 5 sources · 1 version

EPSS trend

Probability

0.45%

Chance of exploitation in the next 30 days

Percentile

41%

Versus all other CVEs

30-day change

Decrease -0.14 pp

From 0.59% on 04-11-2026

04-11-202604-12-2026

Known exploited

Compare KEV catalogs
CISA KEV

Not in the CISA KEV catalog.

ENISA CNW

Not in the ENISA CNW catalog.

CIRCL

Not in the CIRCL catalog.

Public exploits

0 found

No public exploits indexed.

Weaknesses

CWE · root cause

Affected systems

Version check

Known conditions: network-reachable, no authentication, no user interaction (CVSS vector). Other conditions: not stated in public data.

Chainguard24 products
  • kibana-7All versions (No fix recorded)
  • kibana-8.17< 8.17.10-r25
  • kibana-8.17-bitnami< 8.17.10-r25
  • kibana-8.17-iamguarded< 8.17.10-r25
  • kibana-8.19< 8.19.17-r0
@hapi1 product
  • inert≥ 4.0.0, < 7.1.1
Hapijs1 product
Wolfi1 product
  • opensearch-dashboards-3< 3.8.0-r0

4 vendors · 27 products

References

8 links