# CVE-2026-40471: Hackage CSRF vulnerability

- Severity: Critical 9.6 (CVSS:3.1, scored by redhat-cnalr) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:L`
- 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.14%, higher than 3% of CVEs (2026-12-01)
- Published: 2026-03-28T16:04:58.000Z
- Modified: 2026-06-17T10:45:20.390Z
- Also known as: HSEC-2026-0002
- Weaknesses: CWE-352
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: redhat-cnalr

## 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).

(As written by CVE List.)

## Affected

- hackage-server: from 0.1 before *
- hackage-server (Hackage): from 0.1

## References

- <https://osv.dev/vulnerability/HSEC-2026-0002>
- <https://github.com/haskell/hackage-server/commit/2de3ae45082f8f3f29a41f6aff620d09d0e74058> (fix)

## Sources

- CVE List: [CVE-2026-40471](https://www.cve.org/CVERecord?id=CVE-2026-40471), CVE Terms of Use, modified 2026-04-23
- Haskell Security Advisories: [HSEC-2026-0002](https://osv.dev/vulnerability/HSEC-2026-0002), CC0-1.0, modified 2026-04-14
- NVD: [CVE-2026-40471](https://nvd.nist.gov/vuln/detail/CVE-2026-40471), Public domain, modified 2026-06-17

---

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