{"id":"CVE-2026-13397","state":"PUBLISHED","title":"HTML::Bare versions through 0.04 for Perl will hang in an infinite loop when parsing malformed attributes","description":"HTML::Bare versions through 0.04 for Perl will hang in an infinite loop when parsing malformed attributes.\n\nThe parserc_parse function never advances the attribute-parse state cursor on certain malformed attribute forms, looping forever.\n\nNameless attributes such as \"<a ='c'>\" or unbalanced quotes \"<a b='''''''c'>\" can trigger this condition.\n\nNote that the latest version available on CPAN is version 0.02. Newer versions are available on the git repository.","publishedAt":"2026-07-16T16:14:14.891Z","updatedAt":"2026-07-17T13:30:45.877Z","severity":{"score":7.5,"label":"High","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","source":"CISA-ADP"},"assigner":"CPANSec","products":["CODECHILD HTML::Bare"],"affected":[{"vendor":"CODECHILD","product":"HTML::Bare","packageName":"HTML-Bare","defaultStatus":"unaffected","versions":[{"version":"0","status":"affected","lessThanOrEqual":"0.04","versionType":"custom"}],"collectionURL":"https://cpan.org/modules","programFiles":["parser.c"],"programRoutines":[{"name":"parserc_parse"}],"repo":"https://github.com/nanoscopic/perl-HTML-Bare"}],"references":["https://github.com/nanoscopic/perl-HTML-Bare/pull/1","https://security.metacpan.org/patches/H/HTML-Bare/0.02/CVE-2026-13397-r1.patch","http://www.openwall.com/lists/oss-security/2026/07/16/4"],"weaknesses":["CWE-835"],"ingestedAt":"2026-10-29T20:11:00.674Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/13xxx/CVE-2026-13397.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-13397","state":"PUBLISHED","datePublished":"2026-07-16T16:14:14.891Z","dateUpdated":"2026-07-17T13:30:45.877Z","assignerShortName":"CPANSec","assignerOrgId":"9b29abf9-4ab0-4765-b253-1875cd9b441e","dateReserved":"2026-06-26T08:25:15.552Z"},"containers":{"cna":{"title":"HTML::Bare versions through 0.04 for Perl will hang in an infinite loop when parsing malformed attributes","descriptions":[{"lang":"en","value":"HTML::Bare versions through 0.04 for Perl will hang in an infinite loop when parsing malformed attributes.\n\nThe parserc_parse function never advances the attribute-parse state cursor on certain malformed attribute forms, looping forever.\n\nNameless attributes such as \"<a ='c'>\" or unbalanced quotes \"<a b='''''''c'>\" can trigger this condition.\n\nNote that the latest version available on CPAN is version 0.02. Newer versions are available on the git repository."}],"affected":[{"vendor":"CODECHILD","product":"HTML::Bare","packageName":"HTML-Bare","defaultStatus":"unaffected","versions":[{"version":"0","status":"affected","lessThanOrEqual":"0.04","versionType":"custom"}],"collectionURL":"https://cpan.org/modules","programFiles":["parser.c"],"programRoutines":[{"name":"parserc_parse"}],"repo":"https://github.com/nanoscopic/perl-HTML-Bare"}],"references":[{"url":"https://github.com/nanoscopic/perl-HTML-Bare/pull/1","tags":["issue-tracking"]},{"url":"https://security.metacpan.org/patches/H/HTML-Bare/0.02/CVE-2026-13397-r1.patch","tags":["patch"]}],"problemTypes":[{"descriptions":[{"cweId":"CWE-835","description":"CWE-835 Loop with Unreachable Exit Condition ('Infinite Loop')","lang":"en","type":"CWE"}]}],"providerMetadata":{"shortName":"CPANSec","orgId":"9b29abf9-4ab0-4765-b253-1875cd9b441e","dateUpdated":"2026-07-16T16:14:14.891Z"},"source":{"discovery":"UNKNOWN"},"workarounds":[{"lang":"en","value":"Apply the patch."}],"x_generator":{"engine":"cpansec-cna-tool 0.1"}},"adp":[{"title":"CVE Program Container","references":[{"url":"http://www.openwall.com/lists/oss-security/2026/07/16/4"}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2026-07-16T19:27:56.736Z"}},{"title":"CISA ADP Vulnrichment","metrics":[{"cvssV3_1":{"scope":"UNCHANGED","version":"3.1","baseScore":7.5,"attackVector":"NETWORK","baseSeverity":"HIGH","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","integrityImpact":"NONE","userInteraction":"NONE","attackComplexity":"LOW","availabilityImpact":"HIGH","privilegesRequired":"NONE","confidentialityImpact":"NONE"}},{"other":{"type":"ssvc","content":{"timestamp":"2026-07-17T13:29:35.290635Z","id":"CVE-2026-13397","options":[{"Exploitation":"none"},{"Automatable":"yes"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-07-17T13:30:45.877Z"}}]}}}