Description
HTML::Bare versions through 0.04 for Perl have an unbounded character lookahead.

The parserc_parse function attempts to check for multicharacter strings such as "<![CDATA" or element terminators such as ">" without checking that the offsets are within the buffer.

Truncated strings such as "<a/" can trigger an out-of-bounds read.

Note that the latest version available on CPAN is version 0.02. Newer versions are available on the git repository.
Published: 2026-07-16
Score: 9.1 Critical
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The parserc_parse routine in HTML::Bare verifies multicharacter strings such as "<![CDATA" or element terminators like ">" without first ensuring that the lookahead positions are inside the input buffer. When a truncated string such as "<a/" is processed, the routine may read past the end of the supplied data, causing an out-of-bounds read that can expose arbitrary memory contents or crash the parser. The weakness is identified as CWE‑125. An attacker could supply crafted input that includes truncated tags to trigger the flaw, potentially leaking confidential data or causing a denial of service. The likely attack vector is any context that allows an attacker to inject arbitrary markup into the HTML::Bare parser—such as a web application rendering user supplied HTML, a configuration file reader, or a custom script processing untrusted markup. Since the flaw requires the ability to inject data directly into the parser, exploitation is contingent on the attacker’s ability to supply such input. Because the read operation can reach beyond the buffer boundaries, the vulnerability can reveal internal memory state or destabilize the application. Although the EPSS score is low and no known exploitable payloads exist in the wild, the high CVSS score indicates significant potential impact. The risk remains high until a fix is applied and the application is hardened against malformed input.

Affected Systems

CODECHILD released the Perl module HTML::Bare. Versions up to 0.04, inclusive, are affected. The latest CPAN release 0.02 contains a patch, while newer releases on the git repository include the same fix. Any installation of HTML::Bare 0.04 or earlier, regardless of source, remains vulnerable.

Risk and Exploitability

The CVSS score of 9.1 indicates a high severity flaw that can potentially expose data or crash a process. The EPSS score of less than 1% suggests that, as of the last assessment, the likelihood of exploitation is low, and the vulnerability is not listed in the CISA KEV catalog. However, because the flaw requires the injection of crafted input, attackers who can supply such data—through a web form, a configuration file, or a script—can trigger the out‑of‑bounds read. The risk remains high until a fix is applied, given the potential for data leakage and application instability. The probable attack vector is inferred from the description and is not directly stated in the CVE data.

Generated by OpenCVE AI on July 31, 2026 at 01:42 UTC.

Remediation

Vendor Workaround

Apply the patch to version 0.02 (from CPAN) or version 0.04 (from the git repository).


OpenCVE Recommended Actions

  • Upgrade to the patched 0.02 release provided by CPAN or apply the 0.04 release from the git repository that includes the fix
  • If an upgrade cannot be performed immediately, manually apply the CPAN patch CVE-2026-57073‑r1 or the git patch CVE-2026-57073‑r2 to the current installation
  • Prior to processing any external input with HTML::Bare, validate that the markup is well‑formed and does not contain truncated tags that could trigger the vulnerability

Generated by OpenCVE AI on July 31, 2026 at 01:42 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Thu, 23 Jul 2026 22:45:00 +0000

Type Values Removed Values Added
First Time appeared Codechild
Codechild html::bare
Vendors & Products Codechild
Codechild html::bare

Fri, 17 Jul 2026 13:30:00 +0000

Type Values Removed Values Added
Metrics cvssV3_1

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

ssvc

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


Thu, 16 Jul 2026 16:30:00 +0000

Type Values Removed Values Added
Description HTML::Bare versions through 0.04 for Perl have an unbounded character lookahead. The parserc_parse function attempts to check for multicharacter strings such as "<![CDATA" or element terminators such as ">" without checking that the offsets are within the buffer. Truncated strings such as "<a/" can trigger an out-of-bounds read. Note that the latest version available on CPAN is version 0.02. Newer versions are available on the git repository.
Title HTML::Bare versions through 0.04 for Perl have an unbounded character lookahead
Weaknesses CWE-125
References

Subscriptions

Codechild Html::bare
cve-icon MITRE

Status: PUBLISHED

Assigner: CPANSec

Published:

Updated: 2026-07-17T12:44:26.715Z

Reserved: 2026-06-23T17:59:40.467Z

Link: CVE-2026-57073

cve-icon Vulnrichment

Updated: 2026-07-16T19:27:58.902Z

cve-icon NVD

No data.

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-07-31T01:45:06Z

Weaknesses