Vulnerabilities in pkg:golang/github.com/xyproto/algernon

PACKAGE
Advisory Identifier: GHSA-vm84-8c4p-64hx
Advisory Summary

CVE-2026-68548 is a CRITICAL (CVSS 9.4) authorization bypass on case-insensitive filesystems vulnerability (CWE-863: Incorrect Authorization) affecting Algernon libraries in the Go ecosystem. The issue involves authorization bypass on case-insensitive filesystems. Remediation is available by upgrading affected packages to version 1.17.10.

10 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:golang/github.com/xyproto/algernon

10 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:golang/github.com/xyproto/algernon. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-vm84-8c4p-64hx CVE-2026-68548 CRITICAL Algernon: Authorization bypass on case-insensitive filesystems
GHSA-mm6c-5j6x-hq8m CVE-2026-52792 HIGH Algernon vulnerable to server-side script source disclosure on Windows via NTFS filename
GHSA-jc3j-x6pg-4hmv CVE-2026-48126 HIGH Algernon: Host header path traversal in --domain mode reads files and runs Lua from parent dir
GHSA-hw27-4v2q-5qff CVE-2026-46431 MODERATE Algernon: Auto-refresh SSE event server sets Access-Control-Allow-Origin: *
GHSA-gj84-924c-48fx CVE-2026-46430 MODERATE Algernon: Auto-refresh SSE event server binds to all interfaces by default on Linux/macOS
GHSA-9v4j-7g44-qcqw - MODERATE Algernon: Auto-refresh SSE event server binds to all interfaces with Access-Control-Allow-Origin: * and no authentication
GHSA-xwcr-wm99-g9jc CVE-2026-45721 CRITICAL Algernon: handler.lua discovery walks parent directories above the server root
GHSA-fwqx-8365-9983 CVE-2026-45728 HIGH Algernon: Single-file mode unconditionally enables debug mode
GHSA-8jqm-8qm3-qgqm CVE-2025-65754 MODERATE Algernon Cross-Site Scripting vulnerability
GHSA-g47h-fgcw-g4ph CVE-2023-26131 MODERATE Algernon engine and themes vulnerable to Cross-site Scripting

CVE-2026-68548 at a Glance

CVE Identifier CVE-2026-68548
GHSA Identifier GHSA-vm84-8c4p-64hx
Severity CRITICAL
CVSS v3.1 Base Score 9.4
CWE Classification CWE-863: Incorrect Authorization
Affected Product Algernon
Package Ecosystem Go
Published Date
Last Updated

Security Impact

CVSS: 9.4

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:L).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality High (C:H)
Integrity High (I:H)
Availability Low (A:L)

How to Fix CVE-2026-68548

To remediate this vulnerability, upgrade all affected Algernon dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

github.com/xyproto/algernon fixed: 1.17.10
Upgrade github.com/xyproto/algernon to 1.17.10
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for github.com/xyproto/algernon

How to Check if You Are Affected

To determine whether your application is affected by CVE-2026-68548, inspect your project dependencies for Algernon:

inspect dependencies for github.com/xyproto/algernon

Analyze the terminal output to locate any version of Algernon in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.17.10), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & RFC 5280 Specification

Under RFC 5280 specifications for X.509 certificates, the Name Constraints extension defines a namespace within which all subsequent subject names in a certification path must be located. Constraints apply to various name forms including directory names, IP addresses, rfc822Name (email addresses), and uniformResourceIdentifier (URI) entries. Specifically, during certificate path validation, affected versions of Algernon failed to properly normalize or enforce boundary checks when domain names contained trailing dot (.) characters. Because domain names with a trailing dot signify fully qualified domain names (FQDNs), this omission allowed non-conforming certificates to be improperly validated as compliant with the defined name constraints.

Source Advisory Statement

## Summary Algernon's URL-prefix authorization gate matches its protected prefixes (`/admin`, `/repo`, `/data`) with **case-sensitive** `strings.HasPrefix`, while the exact same raw `req.URL.Path` is later resolved against the filesystem. On case-insensitive filesystems (Windows NTFS — always; macOS APFS/HFS+ — default), a request for `/Admin/secret.lua` evades every protected-prefix check, falls through to the public-prefix accept branch, and then resolves on disk to `admin/secret.lua`. The result is an **unauthenticated bypass** of the `/admin`, `/repo`, and `/data` authorization boundary, enabling read (and, for Lua files, execution) of protected content. The permission system is active in the **default** configuration. ## Root Cause The permission gate `Rejected()` (default BoltDB backend: `vendor/github.com/xyproto/permissionbolt/v2/permissionbolt.go:118-149`; identical logic in `vendor/github.com/xyproto/permissions/permissions.go:136-171`) iterates protected prefixes with byte-exact `strings.HasPrefix(req.URL.Path, prefix)`: - `HasPrefix("/Admin/secret.lua", "/admin")` == `false` (byte `A` != `a`) → admin check skipped. - No `/repo` / `/data` match either. - The public loop then evaluates `HasPrefix("/Admin/secret.lua", "/")` == `true` (root is a default public prefix) → `return false` (accept). The identical mixed-case `req.URL.Path` is passed to `utils.URL2filename` (`engine/handlers.go:591`) and then to `os.Stat` / `os.Open` via `datablock.Exists`. On a case-insensitive filesystem the OS resolves `Admin/secret.lua` to the real `admin/secret.lua`. No case normalization occurs anywhere between the authorization gate and the filesystem read (the `ToLower` at `handlers.go:143` is applied only to compute the MIME extension, after the gate). ## Impact Unauthenticated bypass of the `/admin`, `/repo`, `/data` authorization boundary on Windows and macOS deployments: - Protected Lua under a protected prefix can be executed by requesting a case-variant path. - Protected static content under those prefixes can be read. This is distinct from the NTFS alternate-data-stream / trailing-character source-disclosure issue (which lives in `FilePage`/`filepath.Ext` dispatch): this bypass is in the `Rejected()` permission-prefix matcher and requires a separate fix (case normalization of the path before prefix comparison). ## Attack Chain 1. Entry: unauthenticated GET `/Admin/secret.lua` (or `/Repo/...`, `/Data/...`) on a Windows/macOS host. 2. Gate: `Rejected()` iterates protected prefixes with case-sensitive `HasPrefix` → no protected match; public `/` prefix matches → accept. 3. Resolve: `URL2filename` + `os.Open` resolve `Admin/secret.lua` to `admin/secret.lua` on the case-insensitive FS. 4. Sink: protected file is read/executed and returned to the unauthenticated client. ## Bypass Evidence `Rejected()` uses byte-exact `strings.HasPrefix`; no `ToLower` is applied to the path before prefix comparison. The existing NTFS-filename advisory's fix (rejecting `:`, trailing dot, trailing space in `FilePage`) does not normalize case and does not block this vector. Verified at HEAD. ## Suggested Fix Lower-case (or otherwise canonicalize) `req.URL.Path` before comparing against protected prefixes in `Rejected()`, or refuse to serve files whose on-disk resolved path differs in case from the requested path. ## Affected Versions Algernon through v1.17.9 (latest release / HEAD). Reported by **zx (Jace)**

CVE-2026-68548 Affected Algernon Versions

1 component(s)
Fixed Versions:
1.17.10
Product / Package Ecosystem Affected Versions Fixed Version
github.com/xyproto/algernon
Go
< 1.17.10
1.17.10

References

Frequently Asked Questions

What is CVE-2026-68548?
CVE-2026-68548 is a security vulnerability in Algernon involving Authorization bypass on case-insensitive filesystems under CWE-863: Incorrect Authorization.
Which Algernon versions are affected?
Affected versions include releases prior to 1.17.10 across affected packages: github.com/xyproto/algernon.
What version fixes CVE-2026-68548?
Upgrading to 1.17.10 (or the latest patched release for your respective branch) resolves the vulnerability.
Is github.com/xyproto/algernon affected?
Yes, github.com/xyproto/algernon is affected in releases prior to 1.17.10. Upgrade your dependency to 1.17.10 or later.
What is the CVSS score of CVE-2026-68548?
CVE-2026-68548 has a CVSS v3.1 base score of 9.4 (CRITICAL) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:L.
What CWE is associated with CVE-2026-68548?
CVE-2026-68548 is classified under CWE-863: Incorrect Authorization (The product performs an authorization check when an actor attempts to access a resource or perform an action, but it does not correctly perform the check.).
How can I check Go dependencies for CVE-2026-68548?
Run the dependency tree command: 'inspect dependencies for github.com/xyproto/algernon'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-vm84-8c4p-64hx",
  "modified" : "2026-12-04T21:14:58Z",
  "published" : "2026-12-04T21:14:58Z",
  "aliases" : [ "CVE-2026-68548" ],
  "summary" : "Algernon: Authorization bypass on case-insensitive filesystems",
  "details" : "## Summary\nAlgernon's URL-prefix authorization gate matches its protected prefixes (`/admin`, `/repo`, `/data`) with **case-sensitive** `strings.HasPrefix`, while the exact same raw `req.URL.Path` is later resolved against the filesystem. On case-insensitive filesystems (Windows NTFS — always; macOS APFS/HFS+ — default), a request for `/Admin/secret.lua` evades every protected-prefix check, falls through to the public-prefix accept branch, and then resolves on disk to `admin/secret.lua`. The result is an **unauthenticated bypass** of the `/admin`, `/repo`, and `/data` authorization boundary, enabling read (and, for Lua files, execution) of protected content. The permission system is active in the **default** configuration.\n\n## Root Cause\nThe permission gate `Rejected()` (default BoltDB backend: `vendor/github.com/xyproto/permissionbolt/v2/permissionbolt.go:118-149`; identical logic in `vendor/github.com/xyproto/permissions/permissions.go:136-171`) iterates protected prefixes with byte-exact `strings.HasPrefix(req.URL.Path, prefix)`:\n- `HasPrefix(\"/Admin/secret.lua\", \"/admin\")` == `false` (byte `A` != `a`) → admin check skipped.\n- No `/repo` / `/data` match either.\n- The public loop then evaluates `HasPrefix(\"/Admin/secret.lua\", \"/\")` == `true` (root is a default public prefix) → `return false` (accept).\n\nThe identical mixed-case `req.URL.Path` is passed to `utils.URL2filename` (`engine/handlers.go:591`) and then to `os.Stat` / `os.Open` via `datablock.Exists`. On a case-insensitive filesystem the OS resolves `Admin/secret.lua` to the real `admin/secret.lua`. No case normalization occurs anywhere between the authorization gate and the filesystem read (the `ToLower` at `handlers.go:143` is applied only to compute the MIME extension, after the gate).\n\n## Impact\nUnauthenticated bypass of the `/admin`, `/repo`, `/data` authorization boundary on Windows and macOS deployments:\n- Protected Lua under a protected prefix can be executed by requesting a case-variant path.\n- Protected static content under those prefixes can be read.\nThis is distinct from the NTFS alternate-data-stream / trailing-character source-disclosure issue (which lives in `FilePage`/`filepath.Ext` dispatch): this bypass is in the `Rejected()` permission-prefix matcher and requires a separate fix (case normalization of the path before prefix comparison).\n\n## Attack Chain\n1. Entry: unauthenticated GET `/Admin/secret.lua` (or `/Repo/...`, `/Data/...`) on a Windows/macOS host.\n2. Gate: `Rejected()` iterates protected prefixes with case-sensitive `HasPrefix` → no protected match; public `/` prefix matches → accept.\n3. Resolve: `URL2filename` + `os.Open` resolve `Admin/secret.lua` to `admin/secret.lua` on the case-insensitive FS.\n4. Sink: protected file is read/executed and returned to the unauthenticated client.\n\n## Bypass Evidence\n`Rejected()` uses byte-exact `strings.HasPrefix`; no `ToLower` is applied to the path before prefix comparison. The existing NTFS-filename advisory's fix (rejecting `:`, trailing dot, trailing space in `FilePage`) does not normalize case and does not block this vector. Verified at HEAD.\n\n## Suggested Fix\nLower-case (or otherwise canonicalize) `req.URL.Path` before comparing against protected prefixes in `Rejected()`, or refuse to serve files whose on-disk resolved path differs in case from the requested path.\n\n## Affected Versions\nAlgernon through v1.17.9 (latest release / HEAD).\n\nReported by **zx (Jace)**",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:L"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/xyproto/algernon"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.17.10"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/xyproto/algernon/security/advisories/GHSA-vm84-8c4p-64hx"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-68548"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/xyproto/algernon/commit/a94f4e37831073fe9872e6f4510d5ac16f4aa7da"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/xyproto/algernon"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/xyproto/algernon/releases/tag/v1.17.10"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-178", "CWE-863" ],
    "severity" : "CRITICAL",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-12-04T21:14:58Z",
    "nvd_published_at" : "2026-11-12T20:18:51Z"
  }
}