CVE-2026-40470
CRITICAL 9.9CVSS 3.1Hackage package and doc upload stored XSS vulnerability
A critical XSS vulnerability affected hackage-server and
hackage.haskell.org. HTML and JavaScript files provided in source
packages or via the documentation upload facility were served
as-is on the main hackage.haskell.org domain. As a consequence,
when a user with latent HTTP credentials browses to the package
pages or documentation uploaded by a malicious package maintainer,
their session can be hijacked to upload packages or
documentation, amend maintainers or other package metadata, or
perform any other action the user is authorised to do.
- Published
- 23 Apr 2026
- Last modified
- 17 Jun 2026
- Assigned by
- 74b3a70d-cca6-4d34-9789-e83b222ae3be
- NVD status
- Awaiting Analysis
- Weakness
- CWE-79
- Also known as
- HSEC-2024-0004
- Sources
- NVDJSONOSV HSEC-2024-0004JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | 74b3a70d-cca6-4d34-9789-e83b222ae3be (Secondary) | CVSS 3.1 | CRITICAL 9.9 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:L |
| OSV | HSEC | CVSS 3.1 | CRITICAL 9.9 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:L |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| OSV | Hackage | hackage-server | >= 0.1, < 0.6 | 0.6 |
References
- https://osv.dev/vulnerability/HSEC-2024-0004
- https://github.com/haskell/hackage-server/commit/5a0dc3357b042502fcf684ed7e2464fde1407809 · FIX
- https://github.com/haskell/hackage-server/commit/33d9ea3de9a298b21b53ba23386af2742384e627 · FIX
- https://github.com/haskell/hackage-server/commit/354a7de3b7f21ad1346677df515d8e8ec75016e6 · FIX
History
- 25 Nov 2026 21:02 UTC · NVD: first stored (published 23 Apr 2026)
- 25 Nov 2026 20:15 UTC · OSV: first stored (published 16 Jan 2026)