Skip to content
Heist/ feed
Back to feed
Critical

Net::IDN::Punycode::PP versions before 2.590 for Perl decode a truncated label to a name containing a character it never encoded in decode_punycode

Type: advisorySources: OSV

Net::IDN::Punycode::PP versions before 2.590 for Perl decode a truncated label to a name containing a character it never encoded in decode_punycode. The pure-Perl decoder reads one digit at a time with four-argument substr and tests the result with defined to detect the end of the input. substr on an exhausted string returns the empty string rather than undef, so decoding continues past the end. The empty string converts to a digit value below the range, reducing the accumulator, and the decoder derives one extra code point and its position from it. The result is deterministic. The XS backend rejects the same label. Net::IDN::Punycode uses this backend wherever the XS does not build. The two backends disagree about what such a label means, so a sender can pick a label that one installation resolves to a name and another rejects.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2026-87080
Confirmed fixed CVEs
Not specified
Updated in this feed
2 Nov 2026, 21:12 UTC · Revision 1

Source evidence

Net::IDN::Punycode::PP versions before 2.590 for Perl decode a truncated label to a name containing a character it never encoded in decode_punycode

core-osv · Original source

Published 22 Sept 2026, 07:25 UTC

Net::IDN::Punycode::PP versions before 2.590 for Perl decode a truncated label to a name containing a character it never encoded in decode_punycode. The pure-Perl decoder reads one digit at a time with four-argument substr and tests the result with defined to detect the end of the input. substr on an exhausted string returns the empty string rather than undef, so decoding continues past the end. The empty string converts to a digit value below the range, reducing the accumulator, and the decoder derives one extra code point and its position from it. The result is deterministic. The XS backend rejects the same label. Net::IDN::Punycode uses this backend wherever the XS does not build. The two backends disagree about what such a label means, so a sender can pick a label that one installation resolves to a name and another rejects.

osv:CVE-2026-87080
Complete source record
{
  "id": "d4f3bad93146a2de37113052235f4a1e1a890aa3c631ac75a676431f65c66b90",
  "url": "https://osv.dev/vulnerability/CVE-2026-87080",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "Net::IDN::Punycode::PP versions before 2.590 for Perl decode a truncated label to a name containing a character it never encoded in decode_punycode",
    "summary": "Net::IDN::Punycode::PP versions before 2.590 for Perl decode a truncated label to a name containing a character it never encoded in decode_punycode. The pure-Perl decoder reads one digit at a time with four-argument substr and tests the result with defined to detect the end of the input. substr on an exhausted string returns the empty string rather than undef, so decoding continues past the end. The empty string converts to a digit value below the range, reducing the accumulator, and the decoder derives one extra code point and its position from it. The result is deterministic. The XS backend rejects the same label. Net::IDN::Punycode uses this backend wherever the XS does not build. The two backends disagree about what such a label means, so a sender can pick a label that one installation resolves to a name and another rejects.",
    "evidence": "osv:CVE-2026-87080",
    "products": [],
    "severity": "critical",
    "structured": {
      "id": "CVE-2026-87080",
      "aliases": [
        "CVE-2026-87080"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/robrwo/net-idn-encode",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "6b903cf0aeb82ff60e98e180a26daf3f9943f167"
                },
                {
                  "fixed": "48436c7ad2c4d4c6398110e11133754fc476a783"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "fixed": "2.590"
                      }
                    ],
                    "source": "AFFECTED_FIELD",
                    "strategy": "StandardRange"
                  },
                  {
                    "range": [
                      {
                        "fixed": "48436c7ad2c4d4c6398110e11133754fc476a783"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  }
                ]
              }
            }
          ],
          "versions": [
            "v2.502",
            "v2.501",
            "Net-IDN-Encode-2.099_20131226",
            "Net-IDN-Encode-2.099_20131225",
            "Net-IDN-Encode-2.005",
            "Net-IDN-Encode-2.003_2013881000",
            "Net-IDN-Encode-2.003_2013880700",
            "Net-IDN-Encode-2.003_2013122701",
            "Net-IDN-Encode-2.003_2013122700",
            "Net-IDN-Encode-2.003",
            "Net-IDN-Encode-2.002",
            "Net-IDN-Encode-2.001",
            "Net-IDN-Encode-2.000_20120110",
            "Net-IDN-Encode-2.000",
            "Net-IDN-Encode-1.999_20120108",
            "Net-IDN-Encode-1.999_20120107",
            "Net-IDN-Encode-1.000",
            "Net-IDN-Encode-0.999_20100110",
            "Net-IDN-Encode-0.99_20091231",
            "Net-IDN-Encode-0.99_20091216",
            "Net-IDN-Encode-0.99_20080919",
            "Net-IDN-Encode-0.99_20080914",
            "Net-IDN-tools-0.99_20070912"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-87080.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:23.559809950Z",
      "provider": "osv",
      "references": [
        "https://cpan.org/modules",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/87xxx/CVE-2026-87080.json",
        "https://metacpan.org/release/PJCJ/Net-IDN-Encode-2.590-TRIAL/changes",
        "https://nvd.nist.gov/vuln/detail/CVE-2026-87080",
        "https://github.com/robrwo/Net-IDN-Encode/commit/48436c7ad2c4d4c6398110e11133754fc476a783.patch",
        "https://github.com/robrwo/Net-IDN-Encode"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-1286"
        ],
        "cna_assigner": "CPANSec",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/87xxx/CVE-2026-87080.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2026-87080",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 490129,
  "published_at": "2026-09-22T07:25:03.236+00:00"
}