Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1359 CNY

100%

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

Quick assessment

Affected
hapijs inert
Exploitation
No confirmed in-the-wild exploitation; assess based on exposure
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

hapijs inert是hapijs团队的一款服务器支撑系统插件。 hapijs inert 4.0.0版本至7.1.0版本存在路径遍历漏洞,该漏洞源于使用原始字符串前缀测试进行限制检查,导致路径遍历,可能导致未经身份验证的远程攻击者读取文件。

CVSS 5.3 · Medium EPSS 0.59% · P48

Possible ATT&CK Techniques 1 AI

T1083 · File and Directory Discovery

Affected Version Matrix 1

VendorProduct Version RangeStatus
hapijs inert >= 4.0.0, < 7.1.1 affected
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2026-48049

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
@hapi/inert: Static-file confinement bypass via sibling-prefix path
Source: CVE Program / CVE List V5
Vulnerability 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.
Source: CVE Program / CVE List V5
CVSS Information
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
Source: CVE Program / CVE List V5
Vulnerability Type
对路径名的限制不恰当(路径遍历)
Source: CVE Program / CVE List V5
Vulnerability Title
hapijs inert 路径遍历漏洞
Source: CNNVD (China National Vulnerability Database)
Vulnerability Description
hapijs inert是hapijs团队的一款服务器支撑系统插件。 hapijs inert 4.0.0版本至7.1.0版本存在路径遍历漏洞,该漏洞源于使用原始字符串前缀测试进行限制检查,导致路径遍历,可能导致未经身份验证的远程攻击者读取文件。
Source: CNNVD (China National Vulnerability Database)
CVSS Information
N/A
Source: CNNVD (China National Vulnerability Database)
Vulnerability Type
N/A
Source: CNNVD (China National Vulnerability Database)

Affected Products

Vendor Product Affected Versions CPE Subscribe
hapijs inert >= 4.0.0, < 7.1.1 -

II. Public POCs for CVE-2026-48049

# POC Description Source Link Shenlong Link
AI-Generated POC Premium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2026-48049

请登录查看更多情报信息。

Patches & Fixes for CVE-2026-48049 (2)

Vendor Advisories for CVE-2026-48049 (1)

Vendor Pages for CVE-2026-48049 (1)

Same Patch Batch · hapijs · 2026-07-17 · 4 CVEs total

CVE-2026-48022 6.5 MEDIUM @hapi/wreck: Sensitive credential headers leak across cross-port and cross-scheme redirect
CVE-2026-44974 Parameter smuggling in @hapi/content header parser allows upload-filter bypass via duplica
CVE-2026-44979 @hapi/wreck : Sensitive `Proxy-Authorization` header leaked across cross-hostname redirect

IV. Related Vulnerabilities