CVE-2026-136756
UnknownSummary
In Text::Minify::XS versions from 0.3.0 before 0.7.10 for Perl, a heap buffer overflow occurs in minify on malformed UTF-8 when utf8 warnings are disabled. A malformed byte decodes to a replacement character that takes more bytes to encode than were read, overflowing the output buffer sized to the input.
Risk Assessment
An application that minifies untrusted text with utf8 warnings disabled (e.g., under "no warnings") is exposed to heap corruption and a crash, potentially leading to denial of service.
Recommendation
Update Text::Minify::XS to version 0.7.10 or later and avoid disabling utf8 warnings when processing untrusted data.
Other vulnerabilities in Text::Minify::XS
See all- CVE-2026-145760Unknown
In Text::Minify::XS versions before 0.7.10 for Perl, calling minify with a number or a reference instead of a string terminates the process. The function reads the argument's string buffer directly without conversion, resulting in an "Out of memory" error or a crash that eval cannot catch.
- CVE-2026-7040High
Text::Minify::XS versions from 0.3.0 before 0.7.8 for Perl have a heap overflow when processing some malformed UTF-8 characters.
Original NVD description (English source)
Text::Minify::XS versions from 0.3.0 before 0.7.10 for Perl have a heap buffer overflow in minify on malformed UTF-8 when utf8 warnings are disabled. Text::Minify::XS removes indentation and trailing whitespace from multi-line text. With utf8 warnings disabled in the calling scope, a malformed byte decodes to a replacement character that takes more bytes to encode than were read, overflowing the output buffer, which is sized to the input. minify_utf8 is an alias for minify. The fix for CVE-2026-7040 in version 0.7.8 rejects malformed UTF-8 only when perl reports a decoding error, which it does only when utf8 warnings are enabled. An application that minifies untrusted text with utf8 warnings disabled, for example under "no warnings", allows heap corruption and a crash.
Vulnerability data from NVD (NIST) · CISA KEV · EPSS

