Vulnerability · Published Jul 16, 2026 · Assigned by CPANSec

CVE-2026-13401XML::Bare versions through 0.53 for Perl will hang in an infinite loop when parsing malformed attributes

High 7.5

In plain English

A high-severity infinite loop in XML::Bare from CODECHILD. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.6% (higher than 49% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)7.5High
Exploit odds (30 days)0.6%top 50.6% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official description

XML::Bare versions through 0.53 for Perl will hang in an infinite loop when parsing malformed attributes. The parserc_parse function never advances the attribute-parse state cursor on certain malformed attribute forms, looping forever. Nameless attributes such as "<a ='c'>" or unbalanced quotes "<a b='''''''c'>" can trigger this condition.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Debian:12libxml-bare-perlno fix listedDEBIAN-CVE-2026-13401
Debian:13libxml-bare-perlno fix listedDEBIAN-CVE-2026-13401
Debian:14libxml-bare-perl0.53-5DEBIAN-CVE-2026-13401
Ubuntu:22.04:LTSlibxml-bare-perlno fix listedUBUNTU-CVE-2026-13401
Ubuntu:24.04:LTSlibxml-bare-perlno fix listedUBUNTU-CVE-2026-13401
Ubuntu:26.04:LTSlibxml-bare-perlno fix listedUBUNTU-CVE-2026-13401
Ubuntu:26.10libxml-bare-perlno fix listedUBUNTU-CVE-2026-13401

Affected products (as reported)

VendorProductVersions
CODECHILD XML::Bare 0 – through 0.53

Weakness: CWE-835 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

References