CVE-2026-40471 Hackage CSRF vulnerability
Attackers can trick users into performing unauthorized actions like uploading packages or creating accounts on the Hackage server.
- 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-2026-40471?
CVE-2026-40471 is a critical vulnerability in hackage-server, published on 23 Apr 2026. 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
hackage-server lacked Cross-Site Request Forgery (CSRF) protection across its endpoints. Scripts on foreign sites could trigger requests to hackage server, possibly abusing latent credentials to upload packages or perform other administrative actions. Some unauthenticated actions could also be abused (e.g. creating new user accounts).
Weakness: CWE-352
Which versions are affected by CVE-2026-40471?
1 open source package ship an affected version, including hackage-server.
| Package | Affected | Fixed in |
|---|---|---|
hackage-server Hackage | From 0.1 | None |
How do I fix CVE-2026-40471?
No fix has been published for CVE-2026-40471 yet. Limit exposure of the affected software until one is available.
Is CVE-2026-40471 being exploited?
There is no known exploitation of CVE-2026-40471 in the wild and no public exploit code.
Sources
Also known as GHSA-mf84-vmqg-86fm, HSEC-2026-0002.