{"id":"CVE-2026-21618","state":"PUBLISHED","title":"Cross-site scripting (XSS) in OAuth Device Authorization screen","description":"Improper Neutralization of Input During Web Page Generation (XSS or 'Cross-site Scripting') vulnerability in hexpm hexpm/hexpm ('Elixir.HexpmWeb.SharedAuthorizationView' modules) allows Cross-Site Scripting (XSS). This vulnerability is associated with program files lib/hexpm_web/views/shared_authorization_view.ex and program routines 'Elixir.HexpmWeb.SharedAuthorizationView':render_grouped_scopes/3.\n\nThis issue affects hexpm: from 617e44c71f1dd9043870205f371d375c5c4d886d before c692438684ead90c3bcbfb9ccf4e63c768c668a8; hex.pm: from 2025-10-01 before 2026-01-19.","publishedAt":"2026-01-19T14:22:46.770Z","updatedAt":"2026-07-24T14:16:04.791Z","severity":{"score":8.5,"label":"High","version":"4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:N/SC:L/SI:L/SA:N","source":"EEF"},"assigner":"EEF","products":["hexpm hexpm","hexpm hex.pm"],"affected":[{"vendor":"hexpm","product":"hexpm","packageName":"hexpm/hexpm","packageURL":"pkg:github/hexpm/hexpm","defaultStatus":"unaffected","versions":[{"version":"617e44c71f1dd9043870205f371d375c5c4d886d","status":"affected","lessThan":"c692438684ead90c3bcbfb9ccf4e63c768c668a8","versionType":"git"}],"collectionURL":"https://github.com","cpes":["cpe:2.3:a:hexpm:hexpm:*:*:*:*:*:*:*:*"],"modules":["'Elixir.HexpmWeb.SharedAuthorizationView'"],"programFiles":["lib/hexpm_web/views/shared_authorization_view.ex"],"programRoutines":[{"name":"'Elixir.HexpmWeb.SharedAuthorizationView':render_grouped_scopes/3"}],"repo":"https://github.com/hexpm/hexpm.git"},{"vendor":"hexpm","product":"hex.pm","defaultStatus":"unaffected","versions":[{"version":"2025-10-01","status":"affected","lessThan":"2026-01-19","versionType":"date"}]}],"references":["https://github.com/hexpm/hexpm/security/advisories/GHSA-6cw9-5gg4-rhpj","https://cna.erlef.org/cves/CVE-2026-21618.html","https://osv.dev/vulnerability/EEF-CVE-2026-21618","https://github.com/hexpm/hexpm/commit/c692438684ead90c3bcbfb9ccf4e63c768c668a8"],"weaknesses":["CWE-79"],"ingestedAt":"2026-10-29T20:11:10.572Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/21xxx/CVE-2026-21618.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-21618","state":"PUBLISHED","datePublished":"2026-01-19T14:22:46.770Z","dateUpdated":"2026-07-24T14:16:04.791Z","assignerShortName":"EEF","assignerOrgId":"6b3ad84c-e1a6-4bf7-a703-f496b71e49db","dateReserved":"2026-01-01T03:46:45.933Z"},"containers":{"cna":{"title":"Cross-site scripting (XSS) in OAuth Device Authorization screen","descriptions":[{"lang":"en","value":"Improper Neutralization of Input During Web Page Generation (XSS or 'Cross-site Scripting') vulnerability in hexpm hexpm/hexpm ('Elixir.HexpmWeb.SharedAuthorizationView' modules) allows Cross-Site Scripting (XSS). This vulnerability is associated with program files lib/hexpm_web/views/shared_authorization_view.ex and program routines 'Elixir.HexpmWeb.SharedAuthorizationView':render_grouped_scopes/3.\n\nThis issue affects hexpm: from 617e44c71f1dd9043870205f371d375c5c4d886d before c692438684ead90c3bcbfb9ccf4e63c768c668a8; hex.pm: from 2025-10-01 before 2026-01-19."}],"affected":[{"vendor":"hexpm","product":"hexpm","packageName":"hexpm/hexpm","packageURL":"pkg:github/hexpm/hexpm","defaultStatus":"unaffected","versions":[{"version":"617e44c71f1dd9043870205f371d375c5c4d886d","status":"affected","lessThan":"c692438684ead90c3bcbfb9ccf4e63c768c668a8","versionType":"git"}],"collectionURL":"https://github.com","cpes":["cpe:2.3:a:hexpm:hexpm:*:*:*:*:*:*:*:*"],"modules":["'Elixir.HexpmWeb.SharedAuthorizationView'"],"programFiles":["lib/hexpm_web/views/shared_authorization_view.ex"],"programRoutines":[{"name":"'Elixir.HexpmWeb.SharedAuthorizationView':render_grouped_scopes/3"}],"repo":"https://github.com/hexpm/hexpm.git"},{"vendor":"hexpm","product":"hex.pm","defaultStatus":"unaffected","versions":[{"version":"2025-10-01","status":"affected","lessThan":"2026-01-19","versionType":"date"}]}],"references":[{"url":"https://github.com/hexpm/hexpm/security/advisories/GHSA-6cw9-5gg4-rhpj","tags":["vendor-advisory","related"]},{"url":"https://cna.erlef.org/cves/CVE-2026-21618.html","tags":["related"]},{"url":"https://osv.dev/vulnerability/EEF-CVE-2026-21618","tags":["related"]},{"url":"https://github.com/hexpm/hexpm/commit/c692438684ead90c3bcbfb9ccf4e63c768c668a8","tags":["patch"]}],"metrics":[{"cvssV4_0":{"Automatable":"NOT_DEFINED","Recovery":"NOT_DEFINED","Safety":"NOT_DEFINED","attackComplexity":"LOW","attackRequirements":"NONE","attackVector":"NETWORK","baseScore":8.5,"baseSeverity":"HIGH","exploitMaturity":"NOT_DEFINED","privilegesRequired":"NONE","providerUrgency":"NOT_DEFINED","subAvailabilityImpact":"NONE","subConfidentialityImpact":"LOW","subIntegrityImpact":"LOW","userInteraction":"ACTIVE","valueDensity":"NOT_DEFINED","vectorString":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:N/SC:L/SI:L/SA:N","version":"4.0","vulnAvailabilityImpact":"NONE","vulnConfidentialityImpact":"HIGH","vulnIntegrityImpact":"HIGH","vulnerabilityResponseEffort":"NOT_DEFINED"},"format":"CVSS","scenarios":[{"lang":"en","value":"GENERAL"}]}],"problemTypes":[{"descriptions":[{"cweId":"CWE-79","description":"CWE-79 Improper Neutralization of Input During Web Page Generation (XSS or 'Cross-site Scripting')","lang":"en","type":"CWE"}]}],"providerMetadata":{"shortName":"EEF","orgId":"6b3ad84c-e1a6-4bf7-a703-f496b71e49db","dateUpdated":"2026-07-24T14:16:04.791Z"},"cpeApplicability":[{"nodes":[{"cpeMatch":[{"criteria":"cpe:2.3:a:hexpm:hexpm:*:*:*:*:*:*:*:*","versionEndExcluding":"c692438684ead90c3bcbfb9ccf4e63c768c668a8","versionStartIncluding":"617e44c71f1dd9043870205f371d375c5c4d886d","vulnerable":true}],"negate":false,"operator":"AND"}],"operator":"AND"}],"credits":[{"lang":"en","type":"finder","value":"Joud Zakharia / zentrust partners GmbH"},{"lang":"en","type":"remediation developer","value":"Jonatan Männchen / EEF"},{"lang":"en","type":"remediation reviewer","value":"Eric Meadows-Jönsson / Hex.pm"}],"impacts":[{"capecId":"CAPEC-63","descriptions":[{"lang":"en","value":"CAPEC-63 Cross-Site Scripting (XSS)"}]}],"source":{"discovery":"UNKNOWN"},"x_generator":{"engine":"Vulnogram 0.5.0"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2026-01-20T16:16:45.709727Z","id":"CVE-2026-21618","options":[{"Exploitation":"none"},{"Automatable":"yes"},{"Technical Impact":"total"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-01-20T16:16:57.225Z"}}]}}}