Skip to content

[BUMP] Update dependency @hapi/inert to v7.1.1 [SECURITY]#30

Merged
pix-service-auto-merge merged 1 commit into
mainfrom
renovate/dossier-racine-npm-hapi-inert-vulnerability
Jun 12, 2026
Merged

[BUMP] Update dependency @hapi/inert to v7.1.1 [SECURITY]#30
pix-service-auto-merge merged 1 commit into
mainfrom
renovate/dossier-racine-npm-hapi-inert-vulnerability

Conversation

@renovate

@renovate renovate Bot commented Jun 11, 2026

Copy link
Copy Markdown
Contributor

This PR contains the following updates:

Package Change Age Confidence
@hapi/inert 7.1.07.1.1 age confidence

@​hapi/inert has a static-file confinement bypass via sibling-prefix path

CVE-2026-48049 / GHSA-rcvq-m9j9-6f4g

More information

Details

Impact

@hapi/inert serves static files from a directory configured with path (in the directory / file handlers) or relativeTo (for h.file()), with confinement enforced by the confine option (default true). Before the patch, the confinement check compared the resolved absolute path against the confine directory using a raw string-prefix test, so a sibling directory whose absolute path begins with the same characters as the confine directory (eg. /app/static-secret next to a served /app/static) was incorrectly accepted as confined. An unauthenticated remote attacker who knows or guesses such a sibling name can read any file inside it via a request like /..%2fstatic-secret/secret.txt, provided the file is readable by the server process. Only applications that happen to have a sibling directory sharing a string prefix with the served directory are exploitable; applications with no such sibling are unaffected.

Patches

Upgrade to 7.1.1.

Workarounds

For users who cannot upgrade immediately: ensure the directory served via inert has no sibling whose name starts with the same characters (for example, rename static-secret/ to secret/, or move it to a different parent directory).

Resources

Pull Request: https://github.com/hapijs/inert/pull/176

Severity

  • CVSS Score: 5.3 / 10 (Medium)
  • Vector String: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N

References

This data is provided by the GitHub Advisory Database (CC-BY 4.0).


Release Notes

hapijs/inert (@​hapi/inert)

v7.1.1

Compare Source


Configuration

📅 Schedule: (UTC)

  • Branch creation
    • At any time (no schedule defined)
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Never, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@pix-service-auto-merge pix-service-auto-merge merged commit ef34531 into main Jun 12, 2026
2 of 3 checks passed
@renovate renovate Bot deleted the renovate/dossier-racine-npm-hapi-inert-vulnerability branch June 12, 2026 12:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants