CVE-2023-26131 Algernon engine and themes vulnerable to Cross-site Scripting
An attacker can execute arbitrary scripts in a victim's browser via improper input sanitization in the Algernon Go web framework when a resource is missing.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- None listed
What is CVE-2023-26131?
CVE-2023-26131 is a medium-severity cross-site scripting vulnerability in github.com/xyproto/algernon/engine, published on 31 May 2023. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.
Official description
All versions of the package github.com/xyproto/algernon/engine; all versions of the package github.com/xyproto/algernon/themes are vulnerable to Cross-site Scripting (XSS) via the themes.NoPage(filename, theme) function due to improper user input sanitization. Exploiting this vulnerability is possible when a file/resource is not found.
Weakness: CWE-79
Which versions are affected by CVE-2023-26131?
2 open source packages ship an affected version, including github.com/xyproto/algernon. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
github.com/xyproto/algernon Go | All versions to 1.15.2 | None |
github.com/xyproto/algernon Go | All versions to 1.15.2 | None |
Products include Algernon Project Algernon.
How do I fix CVE-2023-26131?
No fix has been published for CVE-2023-26131 yet. Limit exposure of the affected software until one is available.
Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.
Is CVE-2023-26131 being exploited?
There is no known exploitation of CVE-2023-26131 in the wild and no public exploit code.
Other vulnerabilities in github.com/xyproto/algernon/engine
Sources
Also known as GHSA-g47h-fgcw-g4ph.