Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
ReconIdentify service using HTML::Bare
-
DeliverySubmit malformed attribute markup
-
ExploitParser cursor fails to advance
-
Installparserc_parse loops infinitely
-
C2CPU core pinned, worker hung
-
ExecuteRepeat to exhaust workers
-
ImpactDenial of service
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Loop termination conditions
MITRE ATT&CK
1 technique across 1 tactic: Impact The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires that the target application pass attacker-controlled markup to HTML::Bare's parse routine (the parserc_parse C backend) and that the input contain one of the specific malformed attribute forms: a quoted attribute name not preceded by an attribute (nameless attribute, e.g. "<a ='c'>") or unbalanced attribute quoting (e.g. "<a b='''''''c'>"). No authentication, privileges, or user interaction are needed (PR:N/UI:N), and default parser behavior is affected - there is no special configuration flag required. The practical limiting factor is reachability: the vulnerability is only exploitable to the extent an application actually parses untrusted input with this module, so services that only parse trusted/local documents are not realistically exposed. Impact is confined to availability (CPU/resource exhaustion of the parsing process); there is no code execution or data exposure. |
| Impact | The signals are internally consistent and point to a genuine but bounded availability risk. The CVSS 3.1 vector (AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H, base 7.5) reflects a remotely reachable, low-complexity, unauthenticated bug affecting availability only - no confidentiality or integrity impact. CISA's SSVC framing agrees: Exploitation is 'none' (no observed exploitation), Automatable is 'yes' (a single crafted string reliably triggers it), and Technical Impact is 'partial' (loss of availability of the affected process, not full system compromise). EPSS is low (0.19%) and this is not on the CISA KEV list, so this is a real-but-not-urgent priority: patch in normal maintenance cycles unless HTML::Bare parses untrusted input on an exposed service, in which case a single request can pin a CPU core. One caveat: the AV:N rating assumes the application feeds attacker-controlled markup to the parser; if the parser only processes trusted/local data, real-world exposure is closer to local (AV:L) - verify against actual deployment. |
| Exploit ScenarioDerived | An attacker submits a specially crafted document containing a malformed attribute (for example a nameless attribute "<a ='c'>" or unbalanced quotes "<a b='''''''c'>") to any network-facing service that passes user-supplied content to HTML::Bare. The parser enters an infinite loop and consumes 100% of a CPU core; repeating the request across worker processes exhausts server capacity and denies service. No exploit code is public, but the malformed trigger strings are documented in the advisory, making reproduction trivial. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jul 17, 2026
Denial of service in HTML::Bare through version 0.04, a Perl XML/HTML parsing module, allows remote unauthenticated attackers to hang the parsing process in an infinite loop by supplying malformed markup. The parserc_parse function fails to advance its attribute-parse cursor on certain malformed attribute forms - such as nameless attributes ("<a ='c'>") or unbalanced quotes ("<a b='''''''c'>") - causing the CPU to spin indefinitely. There is no public exploit identified at time of analysis, and EPSS exploitation probability is low (0.19%, 8th percentile), consistent with a resource-exhaustion bug rather than a high-value target.
RemediationAI
Upstream fix available (PR/commit); released patched version not independently confirmed - apply the one-line cursor-advance fix from https://github.com/nanoscopic/perl-HTML-Bare/pull/1 or the MetaCPAN security patch at https://security.metacpan.org/patches/H/HTML-Bare/0.02/CVE-2026-13397-r1.patch (note this patch is issued against 0.02, the current CPAN release). Because no tagged, fixed CPAN release is confirmed, teams relying on CPAN cannot simply bump a version and should either apply the patch to their vendored copy or pin to the fixed git commit. As a compensating control until patched, wrap parser calls with a hard timeout (e.g. Perl's alarm()/SIGALRM or Sys::SigAction around the parse call) so a hung parse is killed rather than pinning a worker indefinitely - trade-off: legitimately large documents may be aborted, so tune the timeout. Additionally, size-limit and validate untrusted markup before parsing and run parsing in a separate worker/process that can be reaped, to contain the CPU/resource impact of a single request.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
HTML::Bare is a lightweight Perl module (CPE cpe:2.3:a:codechild:html::bare) that parses XML/HTML into a Perl data structure, using a C backend (parser.c) for speed. The root cause is CWE-835 (Loop with Unreachable Exit Condition, i.e. an infinite loop): the C function parserc_parse contains an attribute-parsing state machine whose cursor (cpos) is never incremented on specific malformed attribute forms - notably when a quoted attribute name is not followed by an '=' sign. Because the exit condition of the loop depends on the cursor advancing past the input, the loop can never terminate. The upstream fix (PR #1) is a single line, cpos++, that forces the cursor forward so malformed input cannot spin forever.
Know when Html gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
A single crafted string reliably triggers an infinite loop with no auth or interaction (AV:N/AC:L/PR:N/UI:N); impact is availability-only CPU exhaustion, so C:N/I:N/A:H.
Primary rating from Vendor (CPANSec).
CVSS VectorVendor: CPANSec
Lifecycle Timeline
3DescriptionCVE.org
HTML::Bare versions through 0.04 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.
Note that the latest version available on CPAN is version 0.02. Newer versions are available on the git repository.
Executive ViewAI
HTML::Bare, a Perl XML/HTML parsing module, contains a denial-of-service vulnerability affecting all versions through 0.04 that allows remote attackers to hang applications by submitting malformed markup. Organizations using this module for document parsing face potential service disruptions if applications process untrusted input. Immediate patching is required to restore service resilience.
Apply vendor patch.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.
Heap memory disclosure in the Perl HTML::Gumbo module before 0.19 lets remote attackers leak bounded chunks of process h
The html.Parse function in golang.org/x/net/html has an infinite parsing loop when processing certain inputs, which can
Out-of-bounds read in the HTML::Bare Perl parsing module (versions through 0.04) lets an attacker who supplies truncated
Session::Cookie in the HTML::EP module 0.2011 for Perl does not properly use the Storable::thaw function, which allows r
Heap information disclosure in HTML::Entities for Perl (versions before 3.84) allows remote attackers to leak adjacent h
Cross-site scripting in SWC's HTML minifier allows attacker-controlled JSON data embedded in application/json and applic
Html contains a vulnerability that allows attackers to denial of service (DoS) if an attacker provides specially crafted
EUVD-2026-44963
GHSA-xfxg-9rjg-hqrw
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB