CVE-2026-40470

Hackage package and doc upload stored XSS vulnerability

State
Published
Severity
9.9 Critical
Published
Apr 23, 2026
Updated
Apr 23, 2026
Reserved
Apr 13, 2026

Read the record on cve.org

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.

Scores

CVSSScoreVectorSource
3.19.9 CriticalCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:Lredhat-cnalr

Weaknesses

  • CWE-79 Improper neutralization of input during web page generation ('cross-site scripting')

Affected Products

ProductVersions
hackage-server
  • 0.1 to before 0.6Affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.