Home › News › Vulnerabilities
Perl Net::PublicSuffixList Module Flaws Allow Public Suffix Bypass
Four CVEs disclosed in the Perl module Net::PublicSuffixList describe ways its suffix lookups can be fooled by wildcard rules, uppercase hostnames, and punycode-encoded internationalized domains, potentially weakening domain-scoping checks like cookie boundaries.
VulnerabilitiesKey points
- Net::PublicSuffixList for Perl before 0.9901 mishandles wildcard rules, uppercase hostnames, and punycode-encoded internationalized suffixes.
- Each flaw can cause the module to return an incorrect public suffix, potentially letting different registrants' domains be treated as the same, or letting a disallowed suffix pass a check.
- Impact is most relevant to code that uses the module's output to scope cookies or make other domain-boundary decisions.
- A fourth CVE was mentioned in the oss-security post but no further detail is provided in the available sources.
According to oss-security, researcher Robert Rothenberg disclosed four CVEs affecting Net::PublicSuffixList for Perl, versions before 0.9901. The module is used to look up public suffixes from the Mozilla Public Suffix List, a function often relied on to decide registrable domain boundaries, such as scoping cookies correctly between different registrants.
What's wrong
CVE-2026-129977: the module strips the leading "." from wildcard rules (e.g. ".ck") and stores only the remainder, so it treats the wildcard label itself as the suffix. This means hosts like "b.test.ck" and "c.test.ck", which belong to different registrants under the wildcard rule, can be wrongly treated as the same domain.
CVE-2026-129978: suffix lookups are done as exact, case-sensitive hash matches, with no lowercasing of either the host or the stored rules. As a result, a host like "example.CO.UK" may be reported as having no public suffix at all, and mixed-case variants can bypass checks meant to catch "co.uk".
CVE-2026-129979: internationalized suffixes are stored in Unicode form from the Public Suffix List, but the module performs no IDNA/punycode conversion before matching. Hosts given in punycode form (the form actually used in DNS and HTTP) fail to match their corresponding internationalized suffix, so a punycode-encoded public suffix can slip past a check intended to reject it.
In each case, the practical risk described is that an attacker who controls part of a hostname — for example a cookie domain — can get the module to misclassify what counts as a public suffix, undermining domain-isolation logic that depends on its output.
The oss-security post references four CVEs in total; details beyond the three above are not given in the available sources.
What to do
Upgrade Net::PublicSuffixList to 0.9901 or later, where these issues are reportedly fixed. No workaround is stated in the sources.
What to do
- Upgrade Net::PublicSuffixList to version 0.9901 or later.
- Review any code that relies on the module's suffix/registrable-domain output for security decisions such as cookie scoping.
- Re-test domain-isolation logic with wildcard-rule, mixed-case, and punycode hostnames after upgrading.
Original report
“Net-PublicSuffixList for Perl (4 CVEs)”
Posted by Robert Rothenberg on Dec 01 CVE-2026-129977 Net::PublicSuffixList versions before 0.99_01 for Perl return a public suffix one label too short for hosts under a wildcard rule CVE-2026-129978 Net::PublicSuffixList versions before 0.99_01 for Perl miss public suffixes in hosts that contain uppercase letters CVE-2026-129979 Net::PublicSuffixList versions before 0.99_01 for Perl miss interna…