{
"dataType": "CVE_RECORD",
"dataVersion": "5.2",
"cveMetadata": {
"cveId": "CVE-2026-40472",
"assignerOrgId": "74b3a70d-cca6-4d34-9789-e83b222ae3be",
"state": "PUBLISHED",
"assignerShortName": "redhat-cnalr",
"dateReserved": "2026-04-13T15:23:17.068Z",
"datePublished": "2026-04-23T15:00:09.063Z",
"dateUpdated": "2026-04-23T16:22:06.841Z"
},
"containers": {
"cna": {
"providerMetadata": {
"orgId": "74b3a70d-cca6-4d34-9789-e83b222ae3be",
"shortName": "redhat-cnalr",
"dateUpdated": "2026-04-23T15:00:09.063Z"
},
"title": "Hackage package metadata stored XSS vulnerability",
"datePublic": "2026-03-28T19:05:00.000Z",
"problemTypes": [
{
"descriptions": [
{
"lang": "en",
"cweId": "CWE-79",
"description": "CWE-79 Improper neutralization of input during web page generation ('cross-site scripting')",
"type": "CWE"
}
]
}
],
"affected": [
{
"collectionURL": "https://hackage.haskell.org/package/hackage-server",
"packageName": "hackage-server",
"versions": [
{
"status": "affected",
"version": "0.1",
"lessThan": "*",
"versionType": "semver"
}
],
"defaultStatus": "unaffected"
}
],
"descriptions": [
{
"lang": "en",
"value": "In hackage-server, user-controlled metadata from .cabal files are rendered into HTML\nhref attributes without proper sanitization, enabling stored\nCross-Site Scripting (XSS) attacks.",
"supportingMedia": [
{
"type": "text/html",
"base64": false,
"value": "In hackage-server, user-controlled metadata from .cabal files are rendered into HTML\nhref attributes without proper sanitization, enabling stored\nCross-Site Scripting (XSS) attacks."
}
]
}
],
"references": [
{
"url": "https://osv.dev/vulnerability/HSEC-2026-0004"
}
],
"metrics": [
{
"format": "CVSS",
"scenarios": [
{
"lang": "en",
"value": "GENERAL"
}
],
"cvssV3_1": {
"version": "3.1",
"attackVector": "NETWORK",
"attackComplexity": "LOW",
"privilegesRequired": "LOW",
"userInteraction": "NONE",
"scope": "CHANGED",
"confidentialityImpact": "HIGH",
"integrityImpact": "HIGH",
"availabilityImpact": "LOW",
"baseSeverity": "CRITICAL",
"baseScore": 9.9,
"vectorString": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:L"
}
}
],
"x_generator": {
"engine": "Vulnogram 1.0.1"
}
},
"adp": [
{
"metrics": [
{
"other": {
"type": "ssvc",
"content": {
"timestamp": "2026-04-23T16:15:39.611590Z",
"id": "CVE-2026-40472",
"options": [
{
"Exploitation": "none"
},
{
"Automatable": "no"
},
{
"Technical Impact": "total"
}
],
"role": "CISA Coordinator",
"version": "2.0.3"
}
}
}
],
"title": "CISA ADP Vulnrichment",
"providerMetadata": {
"orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
"shortName": "CISA-ADP",
"dateUpdated": "2026-04-23T16:22:06.841Z"
}
}
]
}
}