{
  "id": "CVE-2026-40470",
  "url": "https://poc.griffinguard.io/cve/CVE-2026-40470",
  "published_at": "2026-04-23T14:53:47.724Z",
  "title": "Hackage package and doc upload stored XSS vulnerability",
  "cvss": {
    "score": 9.9,
    "source": "cna",
    "vector": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:L"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": null,
  "poc_repo_count": 0,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "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 be hijacked to upload packages or\ndocumentation, amend maintainers or other package metadata, or\nperform any other action the user is authorised to do.",
  "cwe": "CWE-79",
  "cvss_by_source": {
    "cna": 9.9
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "",
        "product": "",
        "ranges": [
          "\u003e= 0.1, \u003c 0.6"
        ],
        "fixed_in": [
          "0.6"
        ]
      }
    ],
    "upgrade": [
      "Upgrade the affected product to 0.6 or later."
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
