CVE-2026-13401

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

Published Jul 16, 2026 CVSS 3.1 · 7.5 High EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical impact

The XML::Bare parser enters an infinite loop when it encounters certain malformed attribute forms, such as nameless attributes or unbalanced quotes. The failure to advance the parsing cursor leads to a denial‑of‑service condition, effectively hanging the process that invoked the parser. This flaw is classified as CWE‑835, illustrating a loop error that compromises reliability.

Affected Systems

Perl applications that use CODECHILD XML::Bare library versions 0.53 and earlier are vulnerable. Any deployment that imports XML data using these versions must be addressed.

Risk and Exploitability

While the EPSS score is < 1% and the vulnerability is not listed in the CISA KEV catalog, the infinite‑loop behavior represents a moderate‑to‑high‑risk denial‑of‑service issue. The CVSS score of 7.5 indicates high severity. An attacker who can supply malformed XML—whether through a web request, Email, or any other data channel—can trigger the crash, halting the affected service. The attack vector is inferred to be remote exploitation via crafted XML input to vulnerable applications.

Remediation

Vendor Workaround

Apply the patch.


OpenCVE Recommended Actions

  • Apply the patch provided by CODECHILD to the XML::Bare library.
  • Upgrade to the latest version of XML::Bare that includes the fix, if a newer version is available.
  • Validate or sanitize all external XML input to eliminate malformed attributes before it reaches the parser.
  • Configure process supervision or monitoring to detect and restart hanging processes for continuity.

Generated by OpenCVE AI on August 1, 2026 at 08:43 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
First Time appeared Codechild
Codechild xml::bare
Vendors & Products Codechild
Codechild xml::bare
Type Values Removed Values Added
Metrics cvssV3_1

{'score': 7.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H'}

ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
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.
Title XML::Bare versions through 0.53 for Perl will hang in an infinite loop when parsing malformed attributes
Weaknesses CWE-835
References
Weaknesses
  • CWE-835

    Loop with Unreachable Exit Condition ('Infinite Loop')

Sources

Status
PUBLISHED
Assigner
CPANSec
Published
Updated
Jul 17, 2026, 12:51 PM
Reserved
Jun 26, 2026, 8:38 AM
Status
Deferred
Published
Jul 16, 2026, 5:16 PM
Modified
Oct 24, 2026, 8:10 PM