Skip to content
OpenAdvisories
High · 8.7 CVE-2026-52792 EUVD-2026-62506GHSA-mm6c-5j6x-hq8mGO-2026-5903

Algernon: Server-side script source disclosure on Windows via NTFS filename

Published Aug 19, 2026 · Updated Aug 19, 2026 · Assigned by GitHub_M

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.

Affected products

VendorProductAffectedFixed
xyproto algernon < 1.17.9 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
openSUSE Leap 16.0 govulncheck-vulndb 0.0.20260723T184607-160000.1.1 openSUSE-SU-2026:21483-1

Affected packages

EcosystemPackageAffectedFixedRecord
Go github.com/xyproto/algernon < 1.17.9 1.17.9 GHSA-mm6c-5j6x-hq8m

Advisories 1

References