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.
Published: 2026-04-23
Score: 9.9 Critical
EPSS: < 1% Very Low
KEV: No
Impact: Stored Cross‑Site Scripting
Action: Apply Patch
AI Analysis

Impact

hackage‑server renders user‑controlled metadata from .cabal files into HTML href attributes without proper sanitization. This flaw permits a stored Cross‑Site Scripting (XSS) vulnerability, where an attacker can embed malicious scripts that execute in the browsers of any users viewing the affected package page. The CVSS score of 9.9 signals that the weakness is both severe and far‑reaching, potentially enabling credential theft, session hijacking, or arbitrary code execution within the victim’s browser context. The description does not detail downstream impacts beyond the XSS capability, but the high severity indicates that the vulnerability is a critical threat to confidentiality, integrity, and availability of the service.

Affected Systems

This vulnerability pertains to the open‑source hackage‑server software used for hosting Haskell packages. No specific vendor or product name is listed beyond the hackage‑server project, and version information has not been supplied in the current advisory. Users should therefore evaluate all locally installed instances of hackage‑server against the latest available release.

Risk and Exploitability

The EPSS score of less than 1 % suggests that, at the time of analysis, the exploitation probability is low, and the vulnerability is not yet catalogued by CISA as a known exploited vulnerability. Still, the attack vector is straightforward: an attacker submits a malicious .cabal file containing crafted link tags that are rendered directly into the HTML output. As the stored payload remains on the server, every subsequent visitor to the affected page becomes a target, making this a persistent flaw. With a high CVSS score and lack of mitigation status, the risk to any organisation running hackage‑server is considerable until the issue is patched or otherwise mitigated.

Generated by OpenCVE AI on April 28, 2026 at 14:51 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Apply the most recent hackage‑server update that sanitizes href attributes in package metadata.
  • If no patch is presently available, enforce strict validation on uploaded .cabal files, automatically escaping or rejecting any content that could generate unsanitized HTML tags.
  • Where feasible, restrict upload permissions to trusted developers or place uploads through a manual review process to prevent the introduction of malicious metadata.

Generated by OpenCVE AI on April 28, 2026 at 14:51 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Tue, 28 Apr 2026 09:45:00 +0000

Type Values Removed Values Added
First Time appeared Hackage-server
Hackage-server hackage-server
Vendors & Products Hackage-server
Hackage-server hackage-server

Thu, 23 Apr 2026 18:15:00 +0000

Type Values Removed Values Added
Metrics ssvc

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


Thu, 23 Apr 2026 15:45:00 +0000

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'}


Subscriptions

Hackage-server Hackage-server
cve-icon MITRE

Status: PUBLISHED

Assigner: redhat-cnalr

Published:

Updated: 2026-04-23T16:22:06.841Z

Reserved: 2026-04-13T15:23:17.068Z

Link: CVE-2026-40472

cve-icon Vulnrichment

Updated: 2026-04-23T16:15:44.107Z

cve-icon NVD

Status : Awaiting Analysis

Published: 2026-04-23T16:16:25.753

Modified: 2026-04-24T14:41:55.890

Link: CVE-2026-40472

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-04-28T15:00:14Z

Weaknesses