Algernon: Host header path traversal in --domain mode reads files and runs Lua from parent dir
CVE-2026-48126GHSA-jc3j-x6pg-4hmv
What to do
Vendor fix available. Upgrade each affected package to the fixed version on its release line (github.com/xyproto/algernon 1.17.8), redeploy, then verify what is actually installed.
This page has no inventory attached, so it cannot say whether you are affected. A vendor fix is not proof that your deployment is fixed.
Affected packages
Go github.com/xyproto/algernon
- Affected
- <= 1.17.7
- Fixed in
- 1.17.8
Sources
- GitHub Advisory Database and maintainer security advisories on GitHub
GitHub-reviewed advisory GHSA-jc3j-x6pg-4hmv lists affected ranges: Go github.com/xyproto/algernon >=0 <=1.17.7
VerifiedObserved Structured GitHub Advisory Database record (type=reviewed) from the GitHub REST API.
Severity and exploitation
- Exploitation
- No confirmed exploitation recorded. Patch Next marks exploitation only from CISA KEV.
- CVSS
- 8.2 · CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:N
- EPSS
- CVE-2026-48126: 0.34% estimated exploitation activity in the next 30 days; percentile 26.95 (FIRST EPSS, 2026-11-03). This is a model estimate, not proof of exploitation or customer exposure.
Source description
As published by the source; long descriptions are shortened.
Summary When algernon is started with --domain (or --letsencrypt, which silently turns on --domain at engine/flags.go:372), the request handler resolves the served directory by joining the configured --dir with the value of the client-supplied Host header. The join is performed by filepath.Join with no validation, so a Host: .. header walks one level above the document root. Subsequent file resolution then exposes everything in that parent directory — arbitrary file read, full directory listing, and, if any .lua file is present, server-side Lua execution. Algernon 1.17.7 and earlier are affected. Details engine/handlers.go (function RegisterHandlers, around line 510): utils/web.go (GetDomain): utils/files.go (URL2filename) only sanitises the URL path — it never inspects dirname: engine/flags.go (auto-enable in CertMagic / Let's Encrypt mode): Putting it together: 1. The client sends Host: ... Go's HTTP server accepts the value because . is in the URI host whitelist and there are no…
Dates and revisions
- Published by the source
- Last modified by the source
- Source last checked
- Revision 1 · created ·
Published from ghsa record GHSA-jc3j-x6pg-4hmv
Agent brief
Preview the exact text before you copy it. Commands are read-only suggestions; review them before running anything.
# Patch Next advisory brief: CVE-2026-48126 Advisory: Algernon: Host header path traversal in --domain mode reads files and runs Lua from parent dir IDs: CVE-2026-48126, GHSA-jc3j-x6pg-4hmv Record: https://patchnext.com/advisories/cve-2026-48126 (revision 1, source checked 26 Oct 2026, 15:24 UTC) Inventory: none attached. This brief comes from a public page and does not say whether any deployment is affected. Severity: High (CVSS 8.2) Exploitation: no confirmed exploitation recorded. Patch Next confirms exploitation only from CISA KEV. Vendor response: Vendor fix available; fixed versions by package: github.com/xyproto/algernon 1.17.8. A vendor fix does not mean a deployment is fixed. ## Affected components - Go github.com/xyproto/algernon: affected <= 1.17.7; fixed in 1.17.8 ## Suggested inspection (read-only) - Go github.com/xyproto/algernon: check the installed version with your package manager. ## Supported action Upgrade each affected component to a fixed version on its release line. For a transitive dependency, upgrade the parent package or add an override or constraint, then regenerate the lockfile. Redeploy every environment that ran an affected version. ## Required regression checks - Run the test suite and a production build. - Exercise the features that depend on github.com/xyproto/algernon. - Repeat the inspection and confirm that only fixed versions remain installed. ## Rollback considerations - Keep the previous lockfile and deployment artifact. Rolling back reinstates the vulnerable version, so apply any documented mitigation while you fix forward. ## Unresolved questions - Which deployments run an affected version? - Exploitation status can change. Check again before lowering the priority. - Mark the work resolved only after the fixed version is verified in production. ## Sources - Verified: https://github.com/advisories/GHSA-jc3j-x6pg-4hmv (GitHub-reviewed advisory GHSA-jc3j-x6pg-4hmv lists affected ranges: Go github.com/xyproto/algernon >=0 <=1.17.7) Commands are suggestions: review each one before running it.
Loading voting…