CVE-2026-40470: CWE-79 Improper neutralization of input during web page generation ('cross-site scripting')
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.
AI Analysis
Technical Summary
This vulnerability involves improper neutralization of input during web page generation (CWE-79) in hackage-server and hackage.haskell.org version 0.1. Malicious HTML or JavaScript files provided via source packages or documentation uploads are served as-is on the main domain, enabling cross-site scripting attacks. Users with latent HTTP credentials visiting these pages can have their sessions hijacked, allowing attackers to perform any actions authorized to the victim user, including uploading or modifying packages and metadata. The CVSS 3.1 base score is 9.9, reflecting critical impact with network attack vector, low attack complexity, required privileges, no user interaction, and high confidentiality, integrity, and low availability impacts. No patch or official remediation is currently documented.
Potential Impact
Successful exploitation allows attackers to hijack sessions of users with latent HTTP credentials on hackage.haskell.org, enabling unauthorized package uploads, documentation uploads, and modification of maintainers or package metadata. This compromises the integrity and confidentiality of the package repository and can lead to further malicious activity under the guise of legitimate users.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, users and administrators should exercise caution when interacting with untrusted packages or documentation on hackage.haskell.org. Consider restricting access or monitoring for suspicious activity related to package uploads and metadata changes.
CVE-2026-40470: CWE-79 Improper neutralization of input during web page generation ('cross-site scripting')
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.
CVSS v3.1
Score 9.9critical
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
This vulnerability involves improper neutralization of input during web page generation (CWE-79) in hackage-server and hackage.haskell.org version 0.1. Malicious HTML or JavaScript files provided via source packages or documentation uploads are served as-is on the main domain, enabling cross-site scripting attacks. Users with latent HTTP credentials visiting these pages can have their sessions hijacked, allowing attackers to perform any actions authorized to the victim user, including uploading or modifying packages and metadata. The CVSS 3.1 base score is 9.9, reflecting critical impact with network attack vector, low attack complexity, required privileges, no user interaction, and high confidentiality, integrity, and low availability impacts. No patch or official remediation is currently documented.
Potential Impact
Successful exploitation allows attackers to hijack sessions of users with latent HTTP credentials on hackage.haskell.org, enabling unauthorized package uploads, documentation uploads, and modification of maintainers or package metadata. This compromises the integrity and confidentiality of the package repository and can lead to further malicious activity under the guise of legitimate users.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, users and administrators should exercise caution when interacting with untrusted packages or documentation on hackage.haskell.org. Consider restricting access or monitoring for suspicious activity related to package uploads and metadata changes.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- redhat-cnalr
- Date Reserved
- 2026-04-13T15:23:17.067Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 69ea9e7887115cfb686fc40a
Added to database: 4/23/2026, 10:34:32 PM
Last enriched: 4/23/2026, 10:35:18 PM
Last updated: 6/7/2026, 8:04:49 AM
Views: 44
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
External Links
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.