Skip to main content

HTML::Bare EUVDEUVD-2026-44963

| CVE-2026-13397 HIGH
Loop with Unreachable Exit Condition (Infinite Loop) (CWE-835)
2026-07-16 CPANSec GHSA-xfxg-9rjg-hqrw
7.5
CVSS 3.1 · Vendor: CPANSec
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Recon
    Identify service using HTML::Bare
  2. Delivery
    Submit malformed attribute markup
  3. Exploit
    Parser cursor fails to advance
  4. Install
    parserc_parse loops infinitely
  5. C2
    CPU core pinned, worker hung
  6. Execute
    Repeat to exhaust workers
  7. Impact
    Denial 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.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.2% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

HTML::Bare 0 ≤0.04

Affected Packages

euvd html_bare no fix

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

Vendor (CPANSec) PRIMARY 7.5 HIGH
AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
vuln.today AI 7.5 HIGH

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.

3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
4.0 AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (CPANSec).

CVSS VectorVendor: CPANSec

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High

Lifecycle Timeline

3
CVSS changed
Jul 17, 2026 - 14:22 NVD
7.5 (HIGH)
CVE Published
Jul 16, 2026 - 16:14 cve.org
UNKNOWN (no severity yet)
CVE Published
Jul 16, 2026 - 16:14 cve.org
HIGH 7.5

DescriptionCVE.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

Why It Matters

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.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.2%
Top 92% exploitable
Prevalence
Low
niche single-author Perl parsing module, small CPAN footprint
Social Media
1
Sightings
Data Quality
6 sources
Confidence: High

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.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.2%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
Yes
Human Impact
High
Technical Impact
Partial

Priority Score

38
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +38
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy