Security mailing lists by PureSourceCode

CVE-2026-40470

CRITICAL 9.9CVSS 3.1

Hackage 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

SourceScored byVersionScoreVector / 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

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
OSV Hackage hackage-server >= 0.1, < 0.6 0.6

References

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)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.