SecurityContext

CVE-2026-40470: hackage-server - Stored XSS

  • Cve: CVE-2026-40470
  • Name: hackage-server - Stored XSS
  • Description: A critical XSS vulnerability affected hackage-server and hackage.haskell.org. HTML and JavaScript files provided in source packages or via the documentation upload facility were served as-is on the main hackage.haskell.org domain. As a consequence, when a user with latent HTTP credentials browses to the package pages or documentation uploaded by a malicious package maintainer, their session can be hijacked to upload packages or documentation, amend maintainers or other package metadata, or perform any other action the user is authorised to do.
  • Impact: Attackers can hijack user sessions to upload packages, modify metadata, or perform any authorized user actions.
  • Remediation: Update to the latest version of hackage-server that sanitizes served content.
  • Vulnerability type: stored_xss
  • Vulnerability impact: client_script_exec, broken_access_control
  • Requirement type: logged_in
  • Requirements: User must have latent HTTP credentials and visit malicious package pages
  • Labels source: projectdiscovery
  • Severity: critical
  • Cvss score: 9.9
  • Cvss vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:L
  • Epss score: 0.00321
  • Epss percentile: 0.25572
  • Assignee: 74b3a70d-cca6-4d34-9789-e83b222ae3be
  • Published at: 2026-04-23T16:16:25Z
  • Age in days: 215
  • Modified at: 2026-06-17T10:45:20Z
  • References total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2026-40470
  • Nvd status: awaiting_analysis
  • Checked, none or zero: patch available, known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, products total, products, oss, projects total, projects, rejected by nvd
  • Not known: hackerone

Cwe

IdName
CWE-79Improper Neutralization of Input During Web Page Generation

References

UrlSourceTags
https://osv.dev/vulnerability/HSEC-2024-0004nvd

Index

  • Checked, none or zero: repositories, repositories high signal, packages

Exploitation

  • Remote: yes
  • Authentication required: yes
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access
  • Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports, exposed hosts