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…
EPSS 0.1%top 81%

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

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

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Changed
Confidentiality
High
Integrity
High
Availability
Low
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:L

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: 6/7/2026, 8:04:49 AM

Views: 44

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