{"answers":{"affected":"3 open source packages ship an affected version, including github.com/xyproto/algernon.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-45728 exists.","fix":"Upgrade github.com/xyproto/algernon to 1.17.7 or later.","what":"CVE-2026-45728 is a high-severity vulnerability in xyproto algernon, published on 26 May 2026. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2026-45728 and fix it if it is affected.\n\nWhat it is: CVE-2026-45728 is a high-severity vulnerability in xyproto algernon, published on 26 May 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-45728 exists.\n\nAffected packages and fixed versions:\n- github.com/xyproto/algernon (Go): affected all versions; fixed in 1.17.7\n- github.com/xyproto/algernon (Go): affected all versions; fixed in 1.17.7\n- github.com/xyproto/algernon (Go): affected all versions; fixed in 1.17.7\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2026-45728/ (Markdown: https://insights.sbomify.com/CVE-2026-45728/index.md)","id":"CVE-2026-45728","markdown":"https://insights.sbomify.com/CVE-2026-45728/index.md","name":"CVE-2026-45728","record":{"aliases":["GHSA-fwqx-8365-9983","GO-2026-5385"],"analysis":{"component_type":"server_software","fix_type":"upgrade","impacts":["data_read"],"network_reachable":"yes","non_default_config":true,"product_category":"Go web server","requires_auth":"none","summary":"Attackers can read server-side source code and data files by triggering errors in single-file mode, which inadvertently enables debug mode.","user_interaction":"not_required","vuln_class":"information_disclosure"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[],"cvss":{"score":7.5,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","version":"3.1"},"cwes":[{"id":"CWE-540","name":"Inclusion of Sensitive Information in Source Code"},{"id":"CWE-489","name":"Active Debug Code"},{"id":"CWE-209","name":"Generation of Error Message Containing Sensitive Information"},{"id":"CWE-1188","name":"Initialization of a Resource with an Insecure Default"}],"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.","ecosystems":["Go"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":true,"headline":"Algernon: Single-file mode unconditionally enables debug mode","id":"CVE-2026-45728","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Go","product":null,"products":[],"type":"information_disclosure","year":"2026"},"n_packages":3,"n_references":1,"next":{"headline":"ThorVG: Null pointer dereference in SVG loader causes crash via 6-byte malformed input","id":"CVE-2026-45729"},"packages":[{"ecosystem":"Go","fixed":["1.17.7"],"introduced":["0"],"last_affected":[],"package":"github.com/xyproto/algernon","purl":null,"source":"GHSA-fwqx-8365-9983"},{"ecosystem":"Go","fixed":["1.17.7"],"introduced":["0"],"last_affected":[],"package":"github.com/xyproto/algernon","purl":"pkg:golang/github.com/xyproto/algernon","source":"GHSA-fwqx-8365-9983"},{"ecosystem":"Go","fixed":["1.17.7"],"introduced":["0"],"last_affected":[],"package":"github.com/xyproto/algernon","purl":"pkg:golang/github.com/xyproto/algernon","source":"GO-2026-5385"}],"prev":{"headline":"CloakBrowser: Unauthenticated path traversal via fingerprint parameter in cloakserve leads to arbitrary directory deletion","id":"CVE-2026-45727"},"products":["algernon"],"published":"2026-05-26","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"Go Vulnerability Database","prefix":"GO"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"yes","exploitation":"poc","technical_impact":"partial"},"state":"PUBLISHED","updated":"2026-05-26","vendors":["xyproto"]},"summary":"Attackers can read server-side source code and data files by triggering errors in single-file mode, which inadvertently enables debug mode.","url":"https://insights.sbomify.com/CVE-2026-45728/"}