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-40472: CWE-79 Improper neutralization of input during web page generation ('cross-site scripting')

0
Critical
VulnerabilityCVE-2026-40472cvecve-2026-40472cwe-79
Published: Thu Apr 23 2026 (04/23/2026, 15:00:09 UTC)
Source: CVE Database V5

Description

CVE-2026-40472 is a critical stored Cross-Site Scripting (XSS) vulnerability in hackage-server version 0. 1. It arises because user-controlled metadata from . cabal files is rendered into HTML href attributes without proper sanitization. This improper neutralization of input allows attackers to inject malicious scripts that can execute in the context of users viewing the affected pages. The vulnerability has a high CVSS score of 9. 9, indicating severe impact on confidentiality, integrity, and availability. No official patch or remediation guidance is currently available, and no known exploits have been reported in the wild.

AI-Powered Analysis

Machine-generated threat intelligence

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

Technical Analysis

This vulnerability (CWE-79) in hackage-server 0.1 involves improper sanitization of user-controlled metadata from .cabal files when rendered into HTML href attributes. This flaw enables stored Cross-Site Scripting (XSS) attacks, allowing attackers to inject malicious scripts that execute in users' browsers. The CVSS 3.1 score of 9.9 reflects network attack vector, low attack complexity, required privileges, no user interaction, and complete compromise of confidentiality and integrity with some impact on availability. The vulnerability is publicly disclosed but lacks an official fix or patch at this time.

Potential Impact

Successful exploitation can lead to execution of arbitrary scripts in the context of the affected web application, potentially compromising user sessions, stealing sensitive information, or performing unauthorized actions on behalf of users. The critical CVSS score indicates a severe risk to confidentiality and integrity, with some impact on availability. There are no known exploits in the wild currently.

Mitigation Recommendations

Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, users should consider restricting access to the affected hackage-server instance and avoid processing untrusted .cabal metadata. Implementing input sanitization or output encoding on href attributes may mitigate risk but should be done following vendor recommendations once available.

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.068Z
Cvss Version
3.1
State
PUBLISHED
Remediation Level
null

Threat ID: 69ea9e7887115cfb686fc410

Added to database: 4/23/2026, 10:34:32 PM

Last enriched: 4/23/2026, 10:35:37 PM

Last updated: 4/24/2026, 6:06:36 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