{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2026-40470","id":"CVE-2026-40470","title":"Hackage package and doc upload stored XSS vulnerability","description":"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 ","descriptionLong":"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.","published":"2026-04-23T14:53:47.724Z","updated":"2026-06-17T10:45:20.287Z","reserved":"2026-04-13T15:23:17.067Z","status":"Awaiting Analysis","rejected":false,"assigner":"redhat-cnalr","metric":{"version":"3.1","score":9.9,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:L","rating":"critical","source":"redhat-cnalr"},"metrics":[{"version":"3.1","score":9.9,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:L","rating":"critical","source":"redhat-cnalr"},{"version":"3.1","score":9.9,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:L","rating":"critical","source":"74b3a70d-cca6-4d34-9789-e83b222ae3be"}],"rating":"critical","products":["hackage-server"],"affectedProducts":[{"vendor":"","product":"hackage-server","defaultStatus":"unaffected","versions":[{"status":"affected","version":"0.1","lessThan":"0.6","versionType":"semver"}],"platforms":[]}],"packages":[],"cwes":["CWE-79"],"aliases":[],"references":[{"url":"https://osv.dev/vulnerability/HSEC-2024-0004","tags":[]}],"patchReferenced":false,"fixAvailable":false,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total"},"epss":0.00309,"epssPercentile":0.24222,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2026-40470","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-40470","ok":true,"note":"Awaiting Analysis"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2026-40470","ok":false,"note":"no open-source package data"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2026-40470","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}