Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. github.com/xyproto/algernon
  4. ›
  5. CVE-2026-48126

CVE-2026-48126: Algernon: Host header path traversal in --domain mode reads files and runs Lua from parent dir

June 23, 2026

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.

References

  • github.com/advisories/GHSA-jc3j-x6pg-4hmv
  • github.com/xyproto/algernon/security/advisories/GHSA-jc3j-x6pg-4hmv
  • nvd.nist.gov/vuln/detail/CVE-2026-48126

Code Behaviors & Features

Detect and mitigate CVE-2026-48126 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions before 1.17.8

Fixed versions

  • 1.17.8

Solution

Upgrade to version 1.17.8 or above.

Impact 8.2 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:N

Learn more about CVSS

Weakness

  • CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
  • CWE-23: Relative Path Traversal
  • CWE-644: Improper Neutralization of HTTP Headers for Scripting Syntax

Source file

go/github.com/xyproto/algernon/CVE-2026-48126.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:17:05 +0000.