{
  "id": "CVE-2026-39821",
  "url": "https://poc.griffinguard.io/cve/CVE-2026-39821",
  "published_at": "2026-05-22T15:01:21.462Z",
  "title": "Invoking failure to reject ASCII-only Punycode-encoded labels in golang.org/x/net/idna",
  "vendor": "Go standard library",
  "product": "net/http",
  "cvss": {
    "score": 9.6,
    "source": "cisa-adp",
    "vector": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:N"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": null,
  "poc_repo_count": 0,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "description": "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\".",
  "cwe": "CWE-1289",
  "cpes": [
    "cpe:2.3:a:golang:net:*:*:*:*:*:go:*:*"
  ],
  "cvss_by_source": {
    "cisa-adp": 9.6
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "Go standard library",
        "product": "net/http",
        "ranges": [
          "\u003c 1.25.13",
          "\u003e= 1.26.0-0, \u003c 1.26.6",
          "\u003e= 1.27.0-0, \u003c 1.27.0-rc.3"
        ],
        "fixed_in": [
          "1.25.13",
          "1.26.6",
          "1.27.0-rc.3"
        ]
      },
      {
        "vendor": "Go standard library",
        "product": "net/http/internal/http2",
        "ranges": [
          "\u003c 1.25.13",
          "\u003e= 1.26.0-0, \u003c 1.26.6",
          "\u003e= 1.27.0-0, \u003c 1.27.0-rc.3"
        ],
        "fixed_in": [
          "1.25.13",
          "1.26.6",
          "1.27.0-rc.3"
        ]
      },
      {
        "vendor": "golang.org/x/net",
        "product": "golang.org/x/net/idna",
        "ranges": [
          "\u003c 0.57.0"
        ],
        "fixed_in": [
          "0.57.0"
        ]
      }
    ],
    "upgrade": [
      "Upgrade net/http to 1.25.13 or 1.26.6 or 1.27.0-rc.3 or later.",
      "Upgrade net/http/internal/http2 to 1.25.13 or 1.26.6 or 1.27.0-rc.3 or later.",
      "Upgrade golang.org/x/net/idna to 0.57.0 or later."
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
