Description
Algernon is a small self-contained pure-Go web server. Prior to 1.17.9, Algernon on Windows selects a file handler in engine/handlers.go by calling filepath.Ext() without first rejecting NTFS-equivalent names such as x.lua::$DATA, x.lua., and x.lua . An unauthenticated client can append one of these suffixes to a public server-side script using the .lua, .tl, .po2, .amber, or .frm extension. The request path passes through URL2filename in utils/files.go, skips the renderer and execution cases, and reaches FilePage, os.Open, ReadAndLogErrors, and ToClient, while NTFS resolves the alias to the underlying script. The server consequently returns raw script source and can expose database credentials, API keys, and the SetCookieSecret value, which may permit forged session cookies. Linux and macOS hosts are not affected by this issue. This issue is fixed in version 1.17.9.
Published: 2026-08-19
Score: 8.7 High
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

Algernon is a small self‑contained pure‑Go web server. Prior to version 1.17.9, on Windows it selects a file handler in engine/handlers.go by calling filepath.Ext() without first rejecting NTFS‑equivalent names such as x.lua::$DATA, x.lua., and x.lua . An unauthenticated client can append one of these suffixes to a public server‑side script that uses the .lua, .tl, .po2, .amber, or .frm extensions. The request path passes through URL2filename in utils/files.go, skips the renderer and execution cases, and reaches FilePage, os.Open, ReadAndLogErrors, and ToClient; while NTFS resolves the alias to the underlying script, the server returns the raw script source and can expose database credentials, API keys, and the SetCookieSecret value, potentially allowing forged session cookies. Linux and macOS hosts are not affected. The issue is fixed in version 1.17.9.

Affected Systems

The vulnerability affects the xyproto Algernon web server on Windows platforms running any version older than v1.17.9. Linux and macOS hosts are not impacted, and the issue was fixed in release v1.17.9.

Risk and Exploitability

The CVSS score of 8.7 indicates high severity. The EPSS score of less than 1% suggests a low probability of exploitation in the wild, and the vulnerability is not listed in the CISA KEV catalog. An attacker can exploit this remotely over the network without authentication by requesting the aliased URL, which triggers NTFS to resolve the alias and returns the raw script source. The exposure is limited to Windows servers running Algernon prior to v1.17.9, and successful exploitation requires publicly accessible script files with .lua, .tl, .po2, .amber, or .frm extensions; the leaked code may reveal database credentials, API keys, and the SetCookieSecret value, potentially enabling forged session cookies.

Generated by OpenCVE AI on August 20, 2026 at 15:22 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Update Algernon to version 1.17.9 or newer.
  • If an upgrade is not immediately possible, block public access to files with the .lua, .tl, .po2, .amber, or .frm extensions through the server configuration or network firewall.
  • Configure the application to reject NTFS‑equivalent names or sanitize file names before serving, thereby preventing the alias resolution that exposes the script source.

Generated by OpenCVE AI on August 20, 2026 at 15:22 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Github GHSA Github GHSA GHSA-mm6c-5j6x-hq8m Algernon vulnerable to server-side script source disclosure on Windows via NTFS filename
History

Wed, 19 Aug 2026 18:30:00 +0000

Type Values Removed Values Added
First Time appeared Xyproto
Xyproto algernon
Vendors & Products Xyproto
Xyproto algernon

Wed, 19 Aug 2026 15:00:00 +0000

Type Values Removed Values Added
Description Algernon is a small self-contained pure-Go web server. Prior to 1.17.9, Algernon on Windows selects a file handler in engine/handlers.go by calling filepath.Ext() without first rejecting NTFS-equivalent names such as x.lua::$DATA, x.lua., and x.lua . An unauthenticated client can append one of these suffixes to a public server-side script using the .lua, .tl, .po2, .amber, or .frm extension. The request path passes through URL2filename in utils/files.go, skips the renderer and execution cases, and reaches FilePage, os.Open, ReadAndLogErrors, and ToClient, while NTFS resolves the alias to the underlying script. The server consequently returns raw script source and can expose database credentials, API keys, and the SetCookieSecret value, which may permit forged session cookies. Linux and macOS hosts are not affected by this issue. This issue is fixed in version 1.17.9.
Title Algernon: Server-side script source disclosure on Windows via NTFS filename
Weaknesses CWE-69
References
Metrics cvssV4_0

{'score': 8.7, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N'}


Subscriptions

Xyproto Algernon
cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-08-19T15:21:04.152Z

Reserved: 2026-06-08T18:02:19.731Z

Link: CVE-2026-52792

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-08-19T15:17:09.667

Modified: 2026-08-19T16:17:45.810

Link: CVE-2026-52792

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-20T15:30:03Z

Weaknesses
  • CWE-69

    Improper Handling of Windows ::DATA Alternate Data Stream