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