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.
Published: 2026-05-26
Score: 4.3 Medium
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

Algernon a lightweight pure-Go web server has a weakness where the Server-Sent Events (SSE) endpoint responds with the header Access-Control-Allow-Origin set to the wildcard *, disregarding the request’s Origin header. This allows anyone who can load a third‑party web page to establish an EventSource connection to the SSE port and read the live stream of filename updates. Because the SSE stream can reveal internal server paths, file names, and potentially other sensitive metadata, an attacker gains information disclosure and a foothold for further reconnaissance. The flaw is a classic CORS misconfiguration (CWE‑942).

Affected Systems

The affected system is the xyproto Algernon web server. All releases prior to version 1.17.7 contain the flaw; version 1.17.7 and later have fixed the header handling.

Risk and Exploitability

The CVSS score of 4.3 indicates moderate severity. EPSS data is not available, but the vulnerability is not catalogued in CISA’s KEV list, suggesting no widely known exploits. Attackers can exploit the flaw simply by hosting a malicious page that opens an EventSource connection, as the protocol does not perform a preflight check and does not send cookies. Successful exploitation results in the attacker being able to read the exposed filename stream but does not give code execution or privilege escalation.

Generated by OpenCVE AI on May 26, 2026 at 18:40 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade Algernon to version 1.17.7 or later to correct the CORS header.
  • If an immediate upgrade is not possible, restrict external access to the SSE port using a firewall or reverse proxy to deny connections from untrusted networks.
  • Alternatively, configure a reverse proxy to strip or set an appropriate Origin‑based Access‑Control-Allow-Origin header for the SSE endpoint.

Generated by OpenCVE AI on May 26, 2026 at 18:40 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Github GHSA Github GHSA GHSA-hw27-4v2q-5qff Algernon: Auto-refresh SSE event server sets Access-Control-Allow-Origin: *
History

Wed, 27 May 2026 10:30:00 +0000

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

Tue, 26 May 2026 19:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Tue, 26 May 2026 17:00:00 +0000

Type Values Removed Values Added
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.
Title Algernon: Auto-refresh SSE event server sets Access-Control-Allow-Origin: *
Weaknesses CWE-942
References
Metrics cvssV3_1

{'score': 4.3, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:N'}


Subscriptions

Xyproto Algernon
cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-05-26T17:39:14.529Z

Reserved: 2026-05-13T22:18:22.830Z

Link: CVE-2026-46431

cve-icon Vulnrichment

Updated: 2026-05-26T17:39:03.913Z

cve-icon NVD

Status : Deferred

Published: 2026-05-26T17:16:51.100

Modified: 2026-05-26T19:26:42.643

Link: CVE-2026-46431

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-05-27T10:04:42Z

Weaknesses
  • CWE-942

    Permissive Cross-domain Security Policy with Untrusted Domains