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.
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.
Published:
2026-12-06
Score:
n/a
EPSS:
n/a
KEV:
No
Impact:
n/a
Action:
n/a
Analysis and contextual insights are available on OpenCVE Cloud.
Remediation
Vendor Solution
Upgrade to Text-Minify-XS v0.7.10 or later.
Vendor Workaround
For deployments that cannot upgrade, check that input is well-formed UTF-8 before passing it to minify or minify_utf8.
Tracking
Sign in to view the affected projects.
Advisories
No advisories yet.
References
History
Sun, 06 Dec 2026 11:15:00 +0000
| Type | Values Removed | Values Added |
|---|---|---|
| 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. | |
| Title | 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 | |
| Weaknesses | CWE-122 | |
| References |
|
Subscriptions
No data.
Status: PUBLISHED
Assigner: CPANSec
Published:
Updated: 2026-12-06T11:06:38.582Z
Reserved: 2026-11-25T09:40:24.520Z
Link: CVE-2026-136756
No data.
No data.
No data.
OpenCVE Enrichment
No data.
Weaknesses
-
CWE-122
Heap-based Buffer Overflow