CVE-2026-40470: CWE-79 Improper neutralization of input during web page generation ('cross-site scripting')
CVE-2026-40470 is a critical cross-site scripting (XSS) vulnerability in hackage-server and hackage. haskell. org. The vulnerability arises because HTML and JavaScript files included in source packages or uploaded documentation are served without sanitization on the main domain. This allows an attacker who uploads malicious content to execute scripts in the context of users with latent HTTP credentials. Exploitation can lead to session hijacking and unauthorized actions such as uploading packages, modifying maintainers, or changing package metadata.
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
CVE-2026-40470 is a critical cross-site scripting (XSS) vulnerability in hackage-server and hackage. haskell. org. The vulnerability arises because HTML and JavaScript files included in source packages or uploaded documentation are served without sanitization on the main domain. This allows an attacker who uploads malicious content to execute scripts in the context of users with latent HTTP credentials. Exploitation can lead to session hijacking and unauthorized actions such as uploading packages, modifying maintainers, or changing package metadata.
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: 4/24/2026, 6:06:02 AM
Views: 4
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.