CVE-2026-40472: CWE-79 Improper neutralization of input during web page generation ('cross-site scripting')
In hackage-server, user-controlled metadata from .cabal files are rendered into HTML href attributes without proper sanitization, enabling stored Cross-Site Scripting (XSS) attacks.
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
In hackage-server, user-controlled metadata from .cabal files are rendered into HTML href attributes without proper sanitization, enabling stored Cross-Site Scripting (XSS) attacks.
CVSS v3.1
Score 9.9critical
Weaknesses
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: 6/7/2026, 3:04:59 PM
Views: 42
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.