A Leader in the 2026 Gartner® Magic Quadrant™ for Endpoint Protection. Six years running.Six years. Gartner® Magic Quadrant™ Leader.Find Out Why
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2026-45728

CVE-2026-45728: Algernon Web Server Info Disclosure Flaw

CVE-2026-45728 is an information disclosure vulnerability in Algernon web server that exposes source code and file contents through debug error messages. This article covers technical details, affected versions, and mitigation.

Published: May 28, 2026

CVE-2026-45728 Overview

CVE-2026-45728 is a source code disclosure vulnerability in Algernon, a self-contained pure-Go web server. Versions prior to 1.17.7 are affected. When Algernon is invoked with a single file path rather than a directory, the server enables singleFileMode and forcibly activates debugMode. This configuration enables the PrettyError renderer, which exposes server-side file contents in error responses. Any unauthenticated network client that can trigger a runtime error in the served Lua script receives the full source of the file and any sibling Lua data files consulted during the request. The flaw is tracked as CWE-209: Generation of Error Message Containing Sensitive Information.

Critical Impact

Unauthenticated remote attackers can retrieve full server-side Lua source code, including any secrets, credentials, or business logic embedded in scripts.

Affected Products

  • Algernon web server versions prior to 1.17.7
  • Deployments invoking Algernon with a single file path argument (single-file mode)
  • Applications relying on Lua scripts or templates served by vulnerable Algernon instances

Discovery Timeline

  • 2026-05-26 - CVE-2026-45728 published to NVD
  • 2026-05-26 - Last updated in NVD database

Technical Details for CVE-2026-45728

Vulnerability Analysis

The vulnerability resides in Algernon's startup logic for single-file invocation. Launching the server with a file path argument sets singleFileMode = true and unconditionally enables debugMode. Debug mode activates the PrettyError renderer, which is intended to assist developers during local testing. When a Lua script or template raises a runtime or parser error, the renderer constructs an HTTP 200 OK response containing the absolute file path of the failing script, the complete byte contents of that file, and the verbatim exception or parser error text. Sibling Lua data files read during the failing request are also disclosed. Because no authentication or origin check gates this response, any reachable client that can provoke a script-level error receives the full source.

Root Cause

The root cause is an insecure default configuration combined with verbose error reporting. Algernon couples singleFileMode with debugMode without operator opt-in, treating any single-file deployment as a trusted development environment. The PrettyError renderer then prioritizes debugging detail over confidentiality, embedding file contents directly in HTTP responses delivered to the requesting client.

Attack Vector

The attack vector is network-based and requires no privileges or user interaction. An attacker identifies an Algernon instance running in single-file mode, then crafts a request that causes the served Lua script or template to throw a runtime error. Common triggers include malformed parameters, type mismatches, or requests that drive the script into unhandled code paths. The server responds with the script's source code and any related Lua data files read during execution. No verified public exploit code is referenced in the advisory. Refer to the GitHub Security Advisory GHSA-fwqx-8365-9983 for additional technical context.

Detection Methods for CVE-2026-45728

Indicators of Compromise

  • HTTP 200 OK responses containing absolute filesystem paths and raw Lua source content in the response body
  • Web server access logs showing requests with malformed parameters or fuzzing patterns targeting Lua endpoints
  • Outbound responses larger than typical script output, correlated with parser or runtime error strings

Detection Strategies

  • Inspect Algernon process command lines for invocations that pass a single file path rather than a directory, indicating singleFileMode is active
  • Review HTTP response bodies for PrettyError markers, Lua stack traces, or absolute path strings characteristic of debug output
  • Compare deployed Algernon binary versions against 1.17.7 and flag any earlier release in production

Monitoring Recommendations

  • Enable full request and response logging at the reverse proxy or WAF layer to capture error responses for forensic review
  • Alert on response bodies containing Lua error keywords such as attempt to, nil value, or parser error originating from Algernon hosts
  • Track repeated error-inducing requests from the same source IP, which may indicate active source code harvesting

How to Mitigate CVE-2026-45728

Immediate Actions Required

  • Upgrade all Algernon instances to version 1.17.7 or later, which removes the forced debug mode coupling
  • Audit deployment scripts and service unit files for invocations that pass a single file path and restructure them to serve from a directory where feasible
  • Rotate any credentials, API keys, or secrets that may have been embedded in Lua scripts served by vulnerable instances

Patch Information

The vendor released the fix in Algernon 1.17.7. The patch decouples debugMode from singleFileMode, preventing automatic activation of the PrettyError renderer. Operators should consult the GitHub Security Advisory GHSA-fwqx-8365-9983 for release notes and upgrade guidance.

Workarounds

  • If immediate upgrade is not possible, restructure deployments to serve content from a directory rather than a single file path, avoiding singleFileMode
  • Place Algernon behind a reverse proxy that strips or rewrites response bodies containing error signatures and absolute file paths
  • Restrict network reachability of Algernon instances to trusted clients using firewall rules or IP allowlists until patching is complete
bash
# Configuration example: upgrade and verify Algernon version
go install github.com/xyproto/algernon@v1.17.7
algernon --version
# Serve from a directory rather than a single file to avoid singleFileMode
algernon /var/www/site

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeInformation Disclosure

  • Vendor/TechAlgernon

  • SeverityHIGH

  • CVSS Score7.5

  • EPSS Probability0.03%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-209
  • Technical References
  • GitHub Security Advisory
  • Related CVEs
  • CVE-2026-46430: Algernon Web Server DoS Vulnerability

  • CVE-2026-43981: Algernon Web Server Race Condition Flaw

  • CVE-2026-43982: Algernon Web Server Path Traversal Flaw

  • CVE-2026-48126: Algernon Web Server Path Traversal Flaw
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English