CVE-2026-40472

Hackage package metadata 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

In hackage-server, user-controlled metadata from .cabal files are rendered into HTML href attributes without proper sanitization, enabling stored Cross-Site Scripting (XSS) attacks.

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 and laterAffected

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.