CVE-2026-48126
Algernon: Host header path traversal in --domain mode reads files and runs Lua from parent dir
Also known as GHSA-jc3j-x6pg-4hmv, GO-2026-5460
Mitigation
- Upgrade github.com/xyproto/algernon to 1.17.8 or later.
Who should check
- Projects that depend on Go package github.com/xyproto/algernon (< 1.17.8)
- Anyone running xyproto algernon < 1.17.8
Vulnerability facts
- Affected
- github.com/xyproto/algernon < 1.17.8
- Fixed in
- 1.17.8
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Remote, no login needed
- CVSS
- 8.2 (v3.1, CNA)CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:NOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Network
- Attack complexity: Low
- Privileges required: None
- User interaction: None
- Scope: Unchanged
- Confidentiality impact: High
- Integrity impact: Low
- Availability impact: None
- EPSS
- 0.50% chance of exploitation in 30 days (percentile 36, 2026-11-26)
- CWE
- CWE-22, CWE-23, CWE-644
- Modified
Description
Algernon is a small self-contained pure-Go web server. Prior to 1.17.8, 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. This vulnerability is fixed in 1.17.8.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Go github.com/xyproto/algernon | < 1.17.8 | 1.17.8 | osv |
| xyproto algernon | < 1.17.8 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2026-48126. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2026-48126.md Affected: github.com/xyproto/algernon < 1.17.8 Fixed in: 1.17.8 Steps: 1. Search this machine and project for github.com/xyproto/algernon (Go), xyproto algernon: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Vendor advisories
FAQ
Is CVE-2026-48126 being exploited?
There is no confirmed exploitation: CVE-2026-48126 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.50% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2026-48126?
High: CVSS 8.2 (v3.1, scored by CNA). Remote, no login needed.
Which versions are affected by CVE-2026-48126?
github.com/xyproto/algernon < 1.17.8.
Is there a fix for CVE-2026-48126?
Yes. Fixed in 1.17.8. Upgrade github.com/xyproto/algernon to 1.17.8 or later.
How do I check if I'm affected by CVE-2026-48126?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.