Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2026-40470: CWE-79 Improper neutralization of input during web page generation ('cross-site scripting')

0
Critical
VulnerabilityCVE-2026-40470cvecve-2026-40470cwe-79
Published: Thu Apr 23 2026 (04/23/2026, 14:53:47 UTC)
Source: CVE Database V5

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

AILast updated: 04/23/2026, 22:35:18 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses