IO::Socket::SSL::PublicSuffix HTTP fetch & heredoc code injection (CVE-2026-129891/129892)
Severity: medium · Patch status: partial · Since 2026-11-17 · CVE-2026-129891, CVE-2026-129892
Two flaws in IO::Socket::SSL::PublicSuffix through 2.099 (Perl/CPAN), disclosed by the CPAN Security Group on 2026-11-17. CVE-2026-129891 (CWE-494): updateselffromurl fetches the built-in public suffix list over cleartext http with no integrity check, so an on-path attacker can choose the list; a dropped rule makes IO::Socket::SSL's hostname check accept a wildcard certificate across that public suffix, and the change persists until the module is reinstalled. CVE-2026-129892 (CWE-94): the updater writes fetched lines into the module's data heredoc without validation; a line reading ENDBUILTINDATA ends the data block, and the following fetched lines run as Perl in every process that loads IO::Socket::SSL. The code-execution path needs an attacker who controls the fetched list (the cleartext default URL, which an on-path attacker can intercept, or a caller-supplied URL) and an updater run with write access to the installed module; no in-the-wild exploitation is known, and NVD has received both CVEs without scoring them. The upstream commit 6e756466, dated 2026-11-17 and therefore before the disclosure, switches the default URL to https and makes the updater die on an ENDBUILTINDATA line. No CPAN release containing the fix exists yet: the latest release, 2.099, is dated 2026-06-26. Until a release ships, apply the commit, or do not run updateselffromurl.
What to do
- Do not run update_self_from_url until a fixed release, or the upstream commit 6e756466, is installed
- For CVE-2026-129891 alone, passing an explicit https URL to a trusted host removes the cleartext on-path risk; it does not stop CVE-2026-129892, so do not run the updater on an unpatched install even then
- Check whether the installed PublicSuffix.pm was rewritten by the updater and reinstall the module from a trusted source if so
- Upgrade IO-Socket-SSL to the fixed release when it ships, or apply the upstream patch (commit 6e756466) now
- Audit hosts for unexpected changes to the built-in public suffix list or injected code
Sources
All live incidents on Threat Watch