CVE-2026-13397: HTML::Bare versions through 0.04 for Perl will hang in an infinite loop when parsing malformed attributes

Published Jul 16, 2026
·
Updated

HTML::Bare versions through 0.04 for Perl will hang in an infinite loop when parsing malformed attributes.

The parsercparse 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.

Note that the latest version available on CPAN is version 0.02. Newer versions are available on the git repository.

Affected Software

1 affected component
Perl HTML::Bare<=0.04

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade HTML::Bare (Perl) to a version that resolves this vulnerability.

    Fixed in 0.04
  2. Compensating control

    Ensure untrusted HTML input is not processed by HTML::Bare (e.g., block or sanitize user-controlled HTML) to avoid triggering the infinite loop on malformed attributes such as "<a ='c'>" or "<a b='''''''c'>".

Event History

Jul 16, 2026
CVE Published
via MITRE·04:14 PM
Data Sourced
via MITRE·04:14 PM
DescriptionWeakness
Data Sourced
via NVD·05:16 PM
DescriptionSeverityWeakness
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2026-13397?

CVE-2026-13397 has a high severity rating of 7.5 on the CVSS scale.

2

How do I fix CVE-2026-13397?

To address CVE-2026-13397, upgrade HTML::Bare to version 0.05 or later.

3

What type of vulnerability is CVE-2026-13397?

CVE-2026-13397 is a denial-of-service vulnerability that causes the parser to enter an infinite loop.

4

What software is affected by CVE-2026-13397?

CVE-2026-13397 affects versions of HTML::Bare for Perl up to and including version 0.04.

5

When was CVE-2026-13397 published?

CVE-2026-13397 was published on July 16, 2026.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203