{"id":"CVE-2026-40470","published":"2026-04-23T14:53:47Z","modified":"2026-04-23T16:22:27Z","title":"Hackage package and doc upload stored XSS vulnerability","vendor":null,"product":null,"tier":"tail","description":{"text":"A critical XSS vulnerability affected hackage-server and\nhackage.haskell.org.  HTML and JavaScript files provided in source\npackages or via the documentation upload facility were served\nas-is on the main hackage.haskell.org domain.  As a consequence,\nwhen a user with latent HTTP credentials browses to the package\npages or documentation uploaded by a malicious package maintainer,\ntheir session can be hijacked to upload packages or\ndocumentation, amend maintainers or other package metadata, or\nperform any other action the user is authorised to do.","provenance":"source","from":"CVE.org"},"cvss":{"score":9.9,"severity":"CRITICAL","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:L","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00321,"percentile":0.25773,"provenance":"source"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"}],"references":[{"url":"https://osv.dev/vulnerability/HSEC-2024-0004","tags":[]}],"priority":{"score":12.1,"factors":[{"name":"EPSS percentile","points":5.15},{"name":"CVSS severity","points":6.93}]},"affectedVersions":[{"vendor":null,"product":null,"versions":[">= 0.1, < 0.6"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2026-04-23T16:19:40.142224Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2026-25233","exploited":false,"provenance":"source"}}