CVE-2026-136756: 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

Published Dec 6, 2026
·
Updated

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. minifyutf8 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.

Affected Software

1 affected component
cpan/Text::Minify::XS>=0.3.0<0.7.10

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade Text-Minify-XS to a version that resolves this vulnerability.

    Fixed in 0.7.10

Event History

Dec 6, 2026
CVE Published
via MITRE·11:06 AM
Data Sourced
via MITRE·11:06 AM
RemedyDescriptionWeakness

Frequently Asked Questions

1

Which applications are realistically exposed?

Applications using Text::Minify::XS from 0.3.0 before 0.7.10 are exposed when they pass untrusted multi-line text to minify or its minify_utf8 alias while UTF-8 warnings are disabled in the calling scope, such as under "no warnings".

2

What does an attacker need to provide?

An attacker needs to cause the application to minify malformed UTF-8 input. With UTF-8 warnings disabled, malformed bytes can be converted to a replacement character whose encoded output is larger than the input allocation, causing heap corruption and a crash.

3

Are default warning settings affected?

The described condition requires UTF-8 warnings to be disabled. The earlier 0.7.8 handling rejects malformed UTF-8 only when Perl reports a decoding error, and Perl reports that error only when UTF-8 warnings are enabled.

4

What can be done if an immediate upgrade is not possible?

Do not send untrusted text to minify or minify_utf8 while UTF-8 warnings are disabled. Ensure UTF-8 warnings are enabled in the calling scope and reject malformed UTF-8 before minification.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203