CVE-2026-40470

CRITICAL

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 th...

Affects 0 products across 2 vendors.

CVSS 3.19.9
EPSS0.4%
Percentile35th
PatchUnknown
CVSS Vector — Plain English Remotely exploitable over the network, low complexity, low privileges required, no user interaction needed, can impact systems beyond the vulnerable component, full confidentiality impact, full integrity impact.
CWE Weakness Definitions
CWE-79: Cross-Site Scripting (XSS)

Attacker injects malicious scripts into web pages viewed by other users, executing in the victim's browser context.

Related Attack Patterns (CAPEC)
CAPEC-85 AJAX Footprinting
via CWE-79
CAPEC-209 XSS Using MIME Type Mismatch
via CWE-79
CAPEC-588 DOM-Based XSS
via CWE-79
CAPEC-591 Reflected XSS
via CWE-79
CAPEC-592 Stored XSS
via CWE-79
Show all 6
via CWE-79

Mapping is CWE-to-CAPEC per MITRE CAPEC 3.9.

◆ AI Analysis — automated analysis, not human-reviewed

A critical XSS vulnerability in hackage-server and hackage.haskell.org allows malicious package maintainers to execute arbitrary JavaScript in the context of a user's session, potentially stealing credentials.

BSID: BS-2026-GLOBAL-256516-C • Model: /workspace/models/qwen2.5-coder-32b-instruct-bf16 • Confidence: HIGH

Is this CVE in your environment?

BreachSpider monitors your ICS/OT environment for vulnerabilities like this one. No agents or network access required. Free to start.

Check My Environment →
Frequently Asked Questions
What is CVE-2026-40470?
A critical XSS vulnerability in hackage-server and hackage.haskell.org allows malicious package maintainers to execute arbitrary JavaScript in the context of a user's session, potentially stealing credentials.
What is the CVSS score for CVE-2026-40470?
CVE-2026-40470 has CVSS 9.9 (Critical). Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:L. EPSS: 0.4%.
Is CVE-2026-40470 actively exploited?
No confirmed active exploitation of CVE-2026-40470 as of 2026-09-25.
How do I remediate CVE-2026-40470?
Priority: IMMEDIATE.
What systems are affected by CVE-2026-40470?
CVE-2026-40470 affects Haskell; Javascript.
Vulnerability Details
CVE IDCVE-2026-40470
BSIDBS-2026-GLOBAL-256516-C BreachSpider Global ID
CVSS VectorCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:L
Published2026-04-23
Last Modified2026-06-17
ICS Relevance0%
Weakness (CWE)
SourceNVD
Official 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.

Source: NIST NVD / MITRE CVE Database

Attack Vector Analysis — CITED Relevance

HTML and JavaScript files provided in source packages or via the documentation upload facility are served as-is on the main hackage.haskell.org domain. When a user with latent HTTP credentials browses to the package pages or documentation uploaded by a malicious package maintainer, their session can be compromised.

Exploitation Likelihood: CRITICAL

Affected Products
VendorProductAffected Versions
Haskell — —
Javascript — —
Remediation

No official vendor advisory link on record. See the CVE record →

Threat Intelligence
● Threat Intelligence Validated: October 2026 | Threat Age: 175 Days
CISA known-exploitedNot in KEV catalog
Public ExploitNot confirmed
PoC CodeNot confirmed
AI Enrichment Record — provenance & audit hash
Model/workspace/models/qwen2.5-coder-32b-instruct-bf16
ConfidenceHIGH
Enriched At2026-05-24
SHA-512 Audit Hash702be12aaee56737c1c722fb3a9277ce40f105e784e132ad1064f3074cd92cc06a680e3f2f812ba15a2009502509561f7ad28537cf60aafb12850c374c0e3aa5
Related CVEs affecting Haskell
CVE-2024-3566 9.8 A command inject vulnerability allows an attacker to perform command injectio... CVE-2021-4249 7.5 A vulnerability was found in xml-conduit. It has been classified as problemat... CVE-2013-0243 7.4 haskell-tls-extra before 0.6.1 has Basic Constraints attribute vulnerability ... CVE-2022-3433 6.5 The aeson library is not safe to use to consume untrusted JSON input. A remot...
View all Haskell CVEs →

Critical Severity - Know Your Exposure

A CVSS 9.9 vulnerability in your ICS environment cannot wait. BreachSpider maps critical CVEs to your specific assets and tells you what to fix first.

Create a free account →