{"schema":"/api/v1/schema/cve.json","api_version":"1","id":"CVE-2026-40470","published":"2026-04-23T16:16:25.523000Z","last_modified":"2026-06-17T10:45:20.287000Z","status":"Awaiting Analysis","cvss":{"version":"3.1","score":9.9,"severity":"CRITICAL","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:L","source":"74b3a70d-cca6-4d34-9789-e83b222ae3be","primary":false},"auth":true,"cwes":["CWE-79"],"cpes":[],"cpes_truncated":false,"vendors":[],"products":[],"ssvc":{"exploitation":"none","automatable":"no","technical_impact":"total"},"cat":"app","platform":"multi","eol":false,"packages":[],"severity":"critical","priority_score":59,"links":{"html_es":"/es/cve/CVE-2026-40470/","html_en":"/en/cve/CVE-2026-40470/","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-40470","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-40470"},"untrusted":{"desc_en":"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.","affected":[],"references":[{"url":"https://osv.dev/vulnerability/HSEC-2024-0004","tags":[]}]}}