CVE-2026-136756
Received
Received - Intake
Heap Buffer Overflow in Text::Minify::XS Perl Module
Vulnerability report for CVE-2026-136756, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.
Publication date: 2026-12-06
Last updated on: 2026-12-06
Assigner: CPANSec
Description
Description
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.
CVSS Scores
EPSS Scores
| Probability: | |
| Percentile: |
Meta Information
Affected Vendors & Products
| Vendor | Product | Version / Range |
|---|---|---|
| robrwo | text_minify_xs | to 0.7.10 (exc) |
| robrwo | text_minify_xs | 0.7.8 |
| robrwo | text_minify_xs | 0.7.10 |
Helpful Resources
Exploitability
| CWE ID | Description |
|---|---|
| CWE-122 | A heap overflow condition is a buffer overflow, where the buffer that can be overwritten is allocated in the heap portion of memory, generally meaning that the buffer was allocated using a routine such as malloc(). |