CVE-2026-48049
Last modified
CVE-2026-48049 is a medium-severity vulnerability rated 5.3/10 on the CVSS scale. @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. EPSS estimates a 0.45% chance of exploitation in the next 30 days.
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.
Metrics
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
Weakness Enumeration
Affected Software
Source: CNA advisory (CVE.org). NVD analysis pending.
| Vendor | Product | Versions |
|---|---|---|
| hapijs | inert | >= 4.0.0, < 7.1.1 |
References
Timeline
- Published
- Last Modified
- Status
- Deferred
Frequently Asked Questions
What is CVE-2026-48049?
How severe is CVE-2026-48049?
How do I fix CVE-2026-48049?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2026
- CVE-2026-48043Netty is a network application framework for development of …7.5
- CVE-2026-48044Envoy is an open source edge and service proxy designed for …7.5
- CVE-2026-48045Zeroconf is a pure Python implementation of multicast DNS se…6.5
- CVE-2026-48046Streambert is a cross-platform Electron Desktop App to strea…9.3
- CVE-2026-48047XWiki Platform WebJars API is a package for XWiki, a generic…5.9
- CVE-2026-48048XWiki Platform is a generic wiki platform. XWiki discovered …7.5
- CVE-2026-4805The Woostify plugin for WordPress is vulnerable to Stored Cr…6.4
- CVE-2026-48051Papra is a minimalistic document management and archiving pl…3.5
- CVE-2026-48052Papra is a minimalistic document management and archiving pl…5.4
- CVE-2026-48054OpenZeppelin Contracts Wizardis a web application to interac…8.8
- CVE-2026-48055Streambert is a cross-platform Electron Desktop App to strea…10
- CVE-2026-48056Streambert is a cross-platform Electron Desktop App to strea…10
Are you affected by CVE-2026-48049?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
