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.
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
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | libxml-bare-perl | no fix listed | DEBIAN-CVE-2026-13401 |
| Debian:13 | libxml-bare-perl | no fix listed | DEBIAN-CVE-2026-13401 |
| Debian:14 | libxml-bare-perl | 0.53-5 | DEBIAN-CVE-2026-13401 |
| Ubuntu:22.04:LTS | libxml-bare-perl | no fix listed | UBUNTU-CVE-2026-13401 |
| Ubuntu:24.04:LTS | libxml-bare-perl | no fix listed | UBUNTU-CVE-2026-13401 |
| Ubuntu:26.04:LTS | libxml-bare-perl | no fix listed | UBUNTU-CVE-2026-13401 |
| Ubuntu:26.10 | libxml-bare-perl | no fix listed | UBUNTU-CVE-2026-13401 |
Affected products (as reported)
Weakness: CWE-835 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H