Skip to content
OpenAdvisories
Medium · 4.3 CVE-2026-46431 EUVD-2026-31870GHSA-hw27-4v2q-5qffGO-2026-5440

Algernon: Auto-refresh SSE event server sets Access-Control-Allow-Origin: *

Published May 26, 2026 · Updated May 26, 2026 · Assigned by GitHub_M

Description

Algernon is a small self-contained pure-Go web server. Prior to 1.17.7, the SSE event server's Access-Control-Allow-Origin response header was hardcoded to the wildcard * regardless of the caller's Origin. Because EventSource does not preflight and does not send cookies, the wildcard is sufficient to let any third-party page the developer visits open a cross-origin EventSource to the SSE port and read the live filename stream from JavaScript. This vulnerability is fixed in 1.17.7.

Affected products

VendorProductAffectedFixed
xyproto algernon < 1.17.7 —

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.7 1.17.7 GHSA-hw27-4v2q-5qff

Advisories 1

References