{"cve":"CVE-2026-48049","nvd":{"published":"2026-07-17T22:17:14.557","modified":"2026-10-24T20:10:00.137","status":"Deferred","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_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N","score":5.3},"cwes":["CWE-22"],"references":["https://github.com/hapijs/inert/commit/bcceb761a43b9d1178eb6bd553e4ad2bb70494d9","https://github.com/hapijs/inert/pull/176","https://github.com/hapijs/inert/releases/tag/v7.1.1","https://github.com/hapijs/inert/security/advisories/GHSA-rcvq-m9j9-6f4g"],"products":[],"source":"nvd","synced_at":"2026-10-25T17:50:08.599881581+00:00"},"epss":{"cve":"CVE-2026-48049","score":0.0059,"percentile":0.47938,"date":"2026-10-25"},"kev":null,"osv":[{"id":"GHSA-rcvq-m9j9-6f4g","url":"https://osv.dev/vulnerability/GHSA-rcvq-m9j9-6f4g","summary":"@hapi/inert has a static-file confinement bypass via sibling-prefix path","modified":"2026-09-10T03:50:50.445011616Z","packages":[{"ecosystem":"npm","name":"@hapi/inert","purl":"pkg:npm/%40hapi/inert","ranges":[">=4.0.0 <7.1.1"],"fixed":["7.1.1"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}