{"id":"CVE-2026-40472","sourceIdentifier":"74b3a70d-cca6-4d34-9789-e83b222ae3be","published":"2026-04-23T16:16:25.753","lastModified":"2026-06-17T10:45:20.490","vulnStatus":"Awaiting Analysis","cveTags":[],"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."}],"affected":[{"source":"74b3a70d-cca6-4d34-9789-e83b222ae3be","affectedData":[{"defaultStatus":"unaffected","collectionURL":"https://hackage.haskell.org/package/hackage-server","packageName":"hackage-server","versions":[{"version":"0.1","lessThan":"*","versionType":"semver","status":"affected"}]}]}],"metrics":{"cvssMetricV31":[{"source":"74b3a70d-cca6-4d34-9789-e83b222ae3be","type":"Secondary","cvssData":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:L","baseScore":9.9,"baseSeverity":"CRITICAL","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"LOW","userInteraction":"NONE","scope":"CHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"LOW"},"exploitabilityScore":3.1,"impactScore":6.0}],"ssvcV203":[{"source":"134c704f-9b21-4f2e-91b3-4a467353bcc0","ssvcData":{"timestamp":"2026-04-23T16:15:39.611590Z","id":"CVE-2026-40472","options":[{"exploitation":"none"},{"automatable":"no"},{"technicalImpact":"total"}],"role":"CISA Coordinator","version":"2.0.3"}}]},"weaknesses":[{"source":"74b3a70d-cca6-4d34-9789-e83b222ae3be","type":"Secondary","description":[{"lang":"en","value":"CWE-79"}]}],"references":[{"url":"https://osv.dev/vulnerability/HSEC-2026-0004","source":"74b3a70d-cca6-4d34-9789-e83b222ae3be"}]}