CVE-2026-13397: CWE-835 Loop with Unreachable Exit Condition ('Infinite Loop') in CODECHILD HTML::Bare
HTML::Bare versions up to 0.04 for Perl contain a vulnerability where the parser can enter an infinite loop when processing certain malformed HTML attributes. This occurs because the parser's attribute-parse state cursor does not advance on specific malformed inputs such as nameless attributes or unbalanced quotes. This results in the application hanging indefinitely during parsing.
AI Analysis
Technical Summary
CVE-2026-13397 is a high-severity vulnerability in the CODECHILD HTML::Bare Perl module (versions <=0.04) caused by an infinite loop in the parserc_parse function. The function fails to advance its parsing cursor when encountering malformed attributes like nameless attributes (e.g., <a ='c'>) or unbalanced quotes (e.g., <a b='''''''c'>), causing the parser to hang indefinitely. The latest version available on CPAN is 0.02, but newer versions exist in the git repository. No official patch or remediation guidance is currently provided.
Potential Impact
Exploitation of this vulnerability can cause denial of service by making the application hang indefinitely during HTML parsing. There is no impact on confidentiality or integrity, but availability is severely affected due to the infinite loop condition.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory or git repository for current remediation guidance. Until a fix is available, avoid parsing untrusted or malformed HTML inputs with affected versions of HTML::Bare to mitigate the risk of application hangs.
CVE-2026-13397: CWE-835 Loop with Unreachable Exit Condition ('Infinite Loop') in CODECHILD HTML::Bare
Description
HTML::Bare versions up to 0.04 for Perl contain a vulnerability where the parser can enter an infinite loop when processing certain malformed HTML attributes. This occurs because the parser's attribute-parse state cursor does not advance on specific malformed inputs such as nameless attributes or unbalanced quotes. This results in the application hanging indefinitely during parsing.
CVSS v3.1
Score 7.5high
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
CVE-2026-13397 is a high-severity vulnerability in the CODECHILD HTML::Bare Perl module (versions <=0.04) caused by an infinite loop in the parserc_parse function. The function fails to advance its parsing cursor when encountering malformed attributes like nameless attributes (e.g., <a ='c'>) or unbalanced quotes (e.g., <a b='''''''c'>), causing the parser to hang indefinitely. The latest version available on CPAN is 0.02, but newer versions exist in the git repository. No official patch or remediation guidance is currently provided.
Potential Impact
Exploitation of this vulnerability can cause denial of service by making the application hang indefinitely during HTML parsing. There is no impact on confidentiality or integrity, but availability is severely affected due to the infinite loop condition.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory or git repository for current remediation guidance. Until a fix is available, avoid parsing untrusted or malformed HTML inputs with affected versions of HTML::Bare to mitigate the risk of application hangs.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- CPANSec
- Date Reserved
- 2026-06-26T08:25:15.552Z
- Cvss Version
- null
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a5907ce68715ace4356ca5c
Added to database: 07/16/2026, 16:33:18 UTC
Last enriched: 07/23/2026, 22:44:02 UTC
Last updated: 08/28/2026, 22:52:08 UTC
Views: 98
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.