{"vuln_id":"CVE-2026-39821","aliases":[],"description":"Invoking failure to reject ASCII-only Punycode-encoded labels in golang.org/x/net/idna","published_at":"2026-05-22T02:46:43Z","modified_at":"2026-11-23T21:17:03.490000Z","first_seen_at":"2026-11-23T21:06:31.561660Z","severity":"critical","severity_source":"nvd","cvss_score":9.6,"cvss_vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:N","cwe":["CWE-1289"],"vendor":null,"product":null,"kev":{"is_kev":false,"date_added":null,"due_date":null,"ransomware":false},"epss":0.01834,"epss_percentile":0.79464,"nvd_status":"Modified","enriched_at":null,"links":{"nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-39821"},"matched_alias":null,"items":[{"id":17020,"source":{"id":"nvd","name":"NVD CVE API 2.0"},"title":"CVE-2026-39821: The ToASCII and ToUnicode functions incorrectly accept Punycode-encoded labels that decode to an ASCII-only label. For example, ToUnicode(\"xn--example-.com\") i…","summary":"The ToASCII and ToUnicode functions incorrectly accept Punycode-encoded labels that decode to an ASCII-only label. For example, ToUnicode(\"xn--example-.com\") incorrectly returns the name \"example.com\" rather than an error. This behavior can lead to privilege escalation in programs using the idna package. For example, a program which performs privilege checks on the ASCII hostname may reject \"example.com\" but permit \"xn--example-.com\". If that program subsequently converts the ASCII hostname to Unicode, it will inadvertently permits access to the Unicode name \"example.com\".\n\nReferences:\nhttps://go.dev/cl/767220\nhttps://go.dev/cl/796421\nhttps://go.dev/issue/78760\nhttps://groups.google.com/g/golang-announce/c/94pEornpRlI\nhttps://groups.google.com/g/golang-announce/c/iI-mYSI0lu8\nhttps://pkg.go.dev/vuln/GO-2026-5026\nhttps://access.redhat.com/errata/RHSA-2026:23262\nhttps://access.redhat.com/errata/RHSA-2026:23264\nhttps://access.redhat.com/errata/RHSA-2026:26546\nhttps://access.redhat.com/errata/RHSA-2026:26547","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-39821","published_at":"2026-05-22T16:16:20.410000Z","updated_at":"2026-11-23T21:17:03.490000Z","fetched_at":"2026-11-23T22:34:41.162179Z","severity":"critical","cvss_score":9.6,"epss":0.01834,"is_kev":false,"has_exploit":false,"kev_due_date":null,"vendor":null,"product":null,"vuln_id":"CVE-2026-39821","vuln_ids":["CVE-2026-39821","RHSA-2026:23262","RHSA-2026:23264","RHSA-2026:26546","RHSA-2026:26547"],"tags":["CWE-1289"],"cluster_id":14831,"links":{"self":"https://vulnwatch.ve1ve2.com/api/v1/items/17020","html":"https://vulnwatch.ve1ve2.com/item/17020"}},{"id":16695,"source":{"id":"osv","name":"OSV.dev"},"title":"GO-2026-5026: Invoking failure to reject ASCII-only Punycode-encoded labels in golang.org/x/net/idna","summary":"Invoking failure to reject ASCII-only Punycode-encoded labels in golang.org/x/net/idna\n\nThe ToASCII and ToUnicode functions incorrectly accept Punycode-encoded labels that decode to an ASCII-only label. For example, ToUnicode(\"xn--example-.com\") incorrectly returns the name \"example.com\" rather than an error.\n\nThis behavior can lead to privilege escalation in programs using the idna package. For example, a program which performs privilege checks on the ASCII hostname may reject \"example.com\" but permit \"xn--example-.com\". If that program subsequently converts the ASCII hostname to Unicode, it will inadvertently permits access to the Unicode name \"example.com\".\n\nAffected: Go:golang.org/x/net, Go:stdlib\n\nFixed in: 1.25.13, 1.26.6, 1.27.0-rc.3, 0.57.0\n\nReferences:\nhttps://go.dev/cl/767220\nhttps://go.dev/cl/796421\nhttps://go.dev/issue/78760\nhttps://groups.google.com/g/golang-announce/c/iI-mYSI0lu8\nhttps://groups.google.com/g/golang-announce/c/94pEornpRlI","url":"https://osv.dev/vulnerability/GO-2026-5026","published_at":"2026-05-22T02:46:43Z","updated_at":"2026-11-23T21:12:28.671130Z","fetched_at":"2026-11-23T21:06:31.109682Z","severity":"critical","cvss_score":9.6,"epss":0.01834,"is_kev":false,"has_exploit":false,"kev_due_date":null,"vendor":null,"product":"golang.org/x/net","vuln_id":"CVE-2026-39821","vuln_ids":["CVE-2026-39821","GO-2026-5026"],"tags":["osv","go","fix-available"],"cluster_id":14831,"links":{"self":"https://vulnwatch.ve1ve2.com/api/v1/items/16695","html":"https://vulnwatch.ve1ve2.com/item/16695"}}]}