CVE-2026-40470

Critical

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.

SeverityCritical
CVSS9.9
Exploit probability—
ProductHackage-server
PublishedApr 23, 2026
First seenApr 23, 2026

How to fix

Update
  • hackage-server0.6 or later

Affected products

ProductAffected versionsFixed in
hackage-server0.1 ≤ v < 0.60.6

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.

CVE-2026-40470 · Hackage-server · Dark Radar