{"answers":{"affected":"2 open source packages ship an affected version, including @hapi/inert.","exploited":"There is no known exploitation of CVE-2026-48049 in the wild and no public exploit code.","fix":"Upgrade @hapi/inert to 7.1.1 or later.","what":"CVE-2026-48049 is a medium-severity path traversal vulnerability in hapijs inert, published on 17 Jul 2026. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2026-48049 and fix it if it is affected.\n\nWhat it is: CVE-2026-48049 is a medium-severity path traversal vulnerability in hapijs inert, published on 17 Jul 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2026-48049 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- @hapi/inert (npm): affected from 4.0.0; fixed in 7.1.1\n- @hapi/inert (npm): affected from 4.0.0; fixed in 7.1.1\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2026-48049/ (Markdown: https://insights.sbomify.com/CVE-2026-48049/index.md)","id":"CVE-2026-48049","markdown":"https://insights.sbomify.com/CVE-2026-48049/index.md","name":"CVE-2026-48049","record":{"aliases":["GHSA-rcvq-m9j9-6f4g","MINI-29r5-prr9-3788","MINI-36rg-3329-wrph","MINI-7w8j-p27v-7m5v","MINI-8j8g-rr3w-fwqr","MINI-chwf-5g5j-hxp7","MINI-f7rj-7pm2-w983","MINI-gj34-3959-x5fj","MINI-j63h-9fxf-9373","MINI-m4m6-w4r3-6q7h","MINI-m834-wgwf-vqm5","MINI-wpp4-c43h-66fq","MINI-xrqr-j7w9-rxqc","ROOT-APP-NPM-CVE-2026-48049"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["data_read"],"network_reachable":"yes","non_default_config":false,"product_category":"hapi.js static file library","requires_auth":"none","summary":"An unauthenticated attacker can read files outside the intended directory by exploiting a flawed path confinement check in the hapi.js static file handler.","user_interaction":"not_required","vuln_class":"path_traversal"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[],"cvss":{"score":5.3,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N","version":"3.1"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"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.","ecosystems":["npm"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"@hapi/inert: Static-file confinement bypass via sibling-prefix path","id":"CVE-2026-48049","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"npm","product":null,"products":[],"type":"path_traversal","year":"2026"},"n_packages":2,"n_references":4,"next":{"headline":"Arc: Unauthenticated access to Go debug pprof endpoints leaks runtime state and enables CPU-burn DoS","id":"CVE-2026-48050"},"packages":[{"ecosystem":"npm","fixed":["7.1.1"],"introduced":["4.0.0"],"last_affected":[],"package":"@hapi/inert","purl":null,"source":"GHSA-rcvq-m9j9-6f4g"},{"ecosystem":"npm","fixed":["7.1.1"],"introduced":["4.0.0"],"last_affected":[],"package":"@hapi/inert","purl":"pkg:npm/%40hapi/inert","source":"GHSA-rcvq-m9j9-6f4g"}],"prev":{"headline":"XWiki Platform's Livetable results still allow reconstructing password hashes using 768 requests","id":"CVE-2026-48048"},"products":["inert"],"published":"2026-07-17","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"yes","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2026-07-21","vendors":["hapijs"]},"summary":"An unauthenticated attacker can read files outside the intended directory by exploiting a flawed path confinement check in the hapi.js static file handler.","url":"https://insights.sbomify.com/CVE-2026-48049/"}