# CVE-2026-40472: Hackage package metadata stored XSS vulnerability

- Severity: Critical 9.9 (CVSS:3.1, scored by redhat-cnalr) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.32%, higher than 26% of CVEs (2026-12-01)
- Published: 2026-03-28T16:05:12.000Z
- Modified: 2026-06-17T10:45:20.490Z
- Also known as: HSEC-2026-0004
- Weaknesses: CWE-79
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: redhat-cnalr

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

(As written by CVE List.)

## Affected

- hackage-server: from 0.1 before *
- hackage-server (Hackage): from 0.1

## References

- <https://osv.dev/vulnerability/HSEC-2026-0004>
- <https://github.com/haskell/hackage-server/commit/2de3ae45082f8f3f29a41f6aff620d09d0e74058> (fix)

## Sources

- CVE List: [CVE-2026-40472](https://www.cve.org/CVERecord?id=CVE-2026-40472), CVE Terms of Use, modified 2026-04-23
- Haskell Security Advisories: [HSEC-2026-0004](https://osv.dev/vulnerability/HSEC-2026-0004), CC0-1.0, modified 2026-04-14
- NVD: [CVE-2026-40472](https://nvd.nist.gov/vuln/detail/CVE-2026-40472), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2026-40472 · Whole record: https://cve.day/CVE-2026-40472.json · Rebuilt by cve.day 2026-11-25T22:59:19.392Z
