Skip to main content
VulnerabilityPublished Updated

CVE-2026-48049: hapijs inert · Path Traversal

Affects hapijs inertSource CVE Database V5

0
Compare

Not known to be exploited · CVSS 5.3 Medium : upgrade to 7.1.1 when convenient.

Data as of 29 Nov 2026, 18:37 UTC

CVSS 3.1 base score
5.3Medium
How severe the flaw is on the 0–10 CVSS scale.
EPSS
0.5% chance of exploitation in 30 days – higher than 42% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
Patch
Available – fixed in 7.1.1
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 17 Jul 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 30 Nov 2026.

What to do

Upgrade inert and @hapi/inert to 7.1.1.

Affected software

ProductAffectedFixed in
hapijsinertAffected
  • >=4.0.0 <7.1.1
Fixed in
  • 7.1.1
npm@hapi/inertpkg:npm/%40hapi/inertOther threatsAffected
  • >=4.0.0 <7.1.1
Fixed in
  • 7.1.1

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

AI-suggested

Upgrade @hapi/inert to version 7.1.1 or later, where the path traversal vulnerability is fixed. No other mitigations are specified. Patch status is confirmed fixed in 7.1.1.

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.

References

Community reviews

Loading reviews…