CVE-2026-40470
published critical CVSS 3.1 · 9.9Hackage package and doc upload stored XSS vulnerability
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Not stated | — | hackage-server0.1 to < 0.6 · Other versions: unaffected | Affected | Not stated | redhat-cnalr |
Description
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 9.9 / 10
- Severity
- critical
- Provider
- redhat-cnalr · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:L
- Scenarios
- en: GENERAL
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| hackage-server | 0.1 to < 0.6 (affected · semver)Default: unaffected | redhat-cnalr · cna |
Weaknesses
1- CWE-79 CWE-79 Improper neutralization of input during web page generation ('cross-site scripting')
References
1Provider assertions
2redhat-cnalr · cna
Hackage package and doc upload stored XSS vulnerability
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- d0e09d38fd3101b49ba3c677c777e1a4f8cb1d25492bd8f09a971ffa330cc68f
- Ingested
- 23 Sep 2026, 09:13:21 UTC
- Source record
- Official CVE record