2026-11-30 23:54CVE-2026-129978CPANSec
PUBLISHED5.2CWE-178

Net::PublicSuffixList versions before 0.99_01 for Perl miss public suffixes in hosts that contain uppercase letters

Net::PublicSuffixList versions before 0.99_01 for Perl miss public suffixes in hosts that contain uppercase letters.

Net::PublicSuffixList looks up host name suffixes from the Mozilla Public Suffix List.

suffix_exists is an exact hash lookup, and neither the host nor the stored rules are folded to lowercase. With the rules "uk" and "co.uk" loaded, "example.CO.UK" has no public suffix and the public suffix of "sub.example.CO.uk" is "uk".

An attacker who controls the case of a host name, such as a cookie domain, can have a public suffix like "CO.UK" pass a check that rejects "co.uk".

Problem type

Affected products

< 0.99_01 - AFFECTED

References

GitHub Security Advisories

GHSA-f329-39fq-2pgw

Net::PublicSuffixList versions before 0.99_01 for Perl miss public suffixes in hosts that contain...

https://github.com/advisories/GHSA-f329-39fq-2pgw

Net::PublicSuffixList versions before 0.99_01 for Perl miss public suffixes in hosts that contain uppercase letters.

Net::PublicSuffixList looks up host name suffixes from the Mozilla Public Suffix List.

suffix_exists is an exact hash lookup, and neither the host nor the stored rules are folded to lowercase. With the rules "uk" and "co.uk" loaded, "example.CO.UK" has no public suffix and the public suffix of "sub.example.CO.uk" is "uk".

An attacker who controls the case of a host name, such as a cookie domain, can have a public suffix like "CO.UK" pass a check that rejects "co.uk".

JSON source

https://cveawg.mitre.org/api/cve/CVE-2026-129978
Click to expand
{
  "dataType": "CVE_RECORD",
  "dataVersion": "5.2",
  "cveMetadata": {
    "cveId": "CVE-2026-129978",
    "assignerOrgId": "9b29abf9-4ab0-4765-b253-1875cd9b441e",
    "assignerShortName": "CPANSec",
    "dateUpdated": "2026-11-30T23:54:48.420Z",
    "dateReserved": "2026-11-16T16:15:42.860Z",
    "datePublished": "2026-11-30T23:54:48.420Z",
    "state": "PUBLISHED"
  },
  "containers": {
    "cna": {
      "providerMetadata": {
        "orgId": "9b29abf9-4ab0-4765-b253-1875cd9b441e",
        "shortName": "CPANSec",
        "dateUpdated": "2026-11-30T23:54:48.420Z"
      },
      "title": "Net::PublicSuffixList versions before 0.99_01 for Perl miss public suffixes in hosts that contain uppercase letters",
      "descriptions": [
        {
          "lang": "en",
          "value": "Net::PublicSuffixList versions before 0.99_01 for Perl miss public suffixes in hosts that contain uppercase letters.\n\nNet::PublicSuffixList looks up host name suffixes from the Mozilla Public Suffix List.\n\nsuffix_exists is an exact hash lookup, and neither the host nor the stored rules are folded to lowercase. With the rules \"uk\" and \"co.uk\" loaded, \"example.CO.UK\" has no public suffix and the public suffix of \"sub.example.CO.uk\" is \"uk\".\n\nAn attacker who controls the case of a host name, such as a cookie domain, can have a public suffix like \"CO.UK\" pass a check that rejects \"co.uk\"."
        }
      ],
      "affected": [
        {
          "collectionURL": "https://cpan.org/modules",
          "packageName": "Net-PublicSuffixList",
          "modules": [
            "Net::PublicSuffixList"
          ],
          "programFiles": [
            "lib/Net/PublicSuffixList.pm"
          ],
          "programRoutines": [
            {
              "name": "Net::PublicSuffixList::suffix_exists"
            },
            {
              "name": "Net::PublicSuffixList::suffixes_in"
            }
          ],
          "repo": "https://github.com/briandfoy/net-publicsuffixlist",
          "defaultStatus": "unaffected",
          "versions": [
            {
              "version": "0",
              "status": "affected",
              "versionType": "custom",
              "lessThan": "0.99_01"
            }
          ]
        }
      ],
      "problemTypes": [
        {
          "descriptions": [
            {
              "lang": "en",
              "description": "CWE-178 Improper Handling of Case Sensitivity",
              "cweId": "CWE-178",
              "type": "CWE"
            }
          ]
        }
      ],
      "references": [
        {
          "url": "https://github.com/briandfoy/net-publicsuffixlist/commit/b64b0034ce1459aae743a15d4edffe5eefd29cd8.patch",
          "tags": [
            "patch"
          ]
        },
        {
          "url": "https://metacpan.org/release/BRIANDFOY/Net-PublicSuffixList-1.001/changes",
          "tags": [
            "release-notes"
          ]
        }
      ],
      "solutions": [
        {
          "lang": "en",
          "value": "Upgrade to Net-PublicSuffixList 1.001 or later."
        }
      ]
    }
  }
}