CVE-2026-40472

Hackage package metadata stored XSS vulnerability

Published Apr 23, 2026 CVSS 3.1 · 9.9 Critical EPSS < 1% KEV · Not listed
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.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
First Time appeared Hackage-server
Hackage-server hackage-server
Vendors & Products Hackage-server
Hackage-server hackage-server
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
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.
Title Hackage package metadata stored XSS vulnerability
Weaknesses CWE-79
References
Metrics cvssV3_1

{'score': 9.9, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:L'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
redhat-cnalr
Published
Updated
Apr 23, 2026, 4:22 PM
Reserved
Apr 13, 2026, 3:23 PM
Status
Awaiting Analysis
Published
Apr 23, 2026, 4:16 PM
Modified
Jun 17, 2026, 10:45 AM