CVE-2026-8829 Affecting libhtml-parser-perl package, versions <3.81-1ubuntu0.1


Severity

Recommended
medium

Based on Ubuntu security rating.

Threat Intelligence

EPSS
0.41% (38th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-UBUNTU2404-LIBHTMLPARSERPERL-17157232
  • published23 Jul 2026
  • disclosed4 Jun 2026

Introduced: 4 Jun 2026

CVE-2026-8829  (opens in a new tab)

How to fix?

Upgrade Ubuntu:24.04 libhtml-parser-perl to version 3.81-1ubuntu0.1 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream libhtml-parser-perl package and not the libhtml-parser-perl package as distributed by Ubuntu. See How to fix? for Ubuntu:24.04 relevant fixed versions and status.

HTML::Entities versions before 3.84 for Perl read freed heap memory in _decode_entities.

The XS routine backing HTML::Entities::_decode_entities cached a pointer (repl) into the entity-value SV returned by hv_fetch on the entity2char hash. When the input SV was identical to a value SV in that hash, and that value contained its own key as an entity reference, a later call to grow_gap() reallocated the SV's PV buffer and freed the backing allocation that repl still pointed into. The subsequent copy loop read repl_len bytes from the freed allocation.

The read may disclose adjacent heap contents into the destination SV.

CVSS Base Scores

version 3.1