# CVE-2026-45728: Algernon: Single-file mode unconditionally enables debug mode

- Severity: High 7.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.30%, higher than 24% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-05-19T14:35:51.000Z
- Modified: 2026-07-24T11:10:00.170Z
- Also known as: GHSA-fwqx-8365-9983, GO-2026-5385
- Weaknesses: CWE-209, CWE-489, CWE-540, CWE-1188
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- Assigned by: GitHub_M

## Description

Algernon is a small self-contained pure-Go web server. Prior to 1.17.7, when Algernon is invoked with a single file path instead of a directory, singleFileMode is set to true and debugMode is forcibly enabled. debugMode activates the PrettyError renderer, which on any Lua or template error response dumps the absolute path of the file that errored, complete byte contents of that file, and exception or parser error text. This response is served with HTTP 200 OK to whoever sent the request that triggered the error. Any client able to reach the server and able to provoke a runtime error in the served script obtains the full server-side source of that script and of any sibling Lua data file consulted during the request. This vulnerability is fixed in 1.17.7.

(As written by CVE List.)

## Affected

- xyproto algernon: < 1.17.7
- github.com/xyproto/algernon (Go): before 1.17.7

## Every score

- GitHub_M: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`
- GitHub: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`

## References

- <https://github.com/xyproto/algernon/security/advisories/GHSA-fwqx-8365-9983> (exploit, advisory, web)
- <https://github.com/xyproto/algernon> (package)

## Sources

- CVE List: [CVE-2026-45728](https://www.cve.org/CVERecord?id=CVE-2026-45728), CVE Terms of Use, modified 2026-05-26
- GitHub Advisory Database: [GHSA-fwqx-8365-9983](https://github.com/advisories/GHSA-fwqx-8365-9983), CC-BY-4.0, modified 2026-06-25
- Go Vulnerability Database: [GO-2026-5385](https://pkg.go.dev/vuln/GO-2026-5385), CC-BY-4.0, modified 2026-06-25
- NVD: [CVE-2026-45728](https://nvd.nist.gov/vuln/detail/CVE-2026-45728), Public domain, modified 2026-07-24

---

Page: https://cve.day/CVE-2026-45728 · Whole record: https://cve.day/CVE-2026-45728.json · Rebuilt by cve.day 2026-11-25T22:59:22.340Z
