CVE-2026-40471 Details
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).
A Cross-Site Request Forgery (CSRF) vulnerability has been identified in hackage-server, which lacks proper CSRF protection across its endpoints. This absence of protection allows scripts from external sites to initiate requests to the hackage server, potentially exploiting existing credentials to upload packages or execute other administrative tasks. Additionally, some unauthenticated actions, such as creating new user accounts, could be misused.
The vulnerability has been addressed by implementing a CSRF middleware that checks all requests, except those using certain approved non-browser user agents or token authentication. This fix has been deployed on hackage.haskell.org.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Apr 23, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://osv.dev/vulnerability/HSEC-2026-0002 | redhat-cnalr |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-352 | Cross-Site Request Forgery (CSRF) | redhat-cnalr |
Affected Products
No affected product data is available for this CVE.
Change History
3 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | redhat-cnalr |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Apr 23, 2026 | New CVE Received | redhat-cnalr |