CVE-2026-145760: Text::Minify::XS versions before 0.7.10 for Perl terminate the process when minify is called with a number or a reference

Published Dec 6, 2026
·
Updated

Text::Minify::XS versions before 0.7.10 for Perl terminate the process when minify is called with a number or a reference.

Text::Minify::XS removes indentation and trailing whitespace from multi-line text.

minify and minifyascii read the argument's string buffer directly, without converting a number or reference first. For such an argument the pointer and length are meaningless, and the call exits with an "Out of memory" error, or crashes, which eval cannot catch. minifyutf8 is an alias for minify.

An attacker who can send a number or a JSON boolean where an application expects a string, for example in a JSON request body passed to minify, can terminate the process.

Affected Software

1 affected component
cpan/Text::Minify::XS<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:07 AM
Data Sourced
via MITRE·11:07 AM
RemedyDescriptionWeakness

Frequently Asked Questions

1

Who is realistically exposed to this issue?

Applications using affected Text::Minify::XS versions are exposed when untrusted input can reach minify, minify_ascii, or minify_utf8 without being ensured to be a string. A JSON request path is an example when a client can supply a number or JSON boolean where the application expects text.

2

What does an attacker need to provide to trigger the failure?

The attacker needs to cause one of the affected functions to be called with a number or reference rather than a string. JSON numeric and boolean values are specifically identified as inputs that can produce this condition.

3

Can application error handling catch the failure?

No. The process can exit with an "Out of memory" error or crash, and the described failure cannot be caught with eval.

4

Are all of the module's minification entry points affected?

minify and minify_ascii are affected because they read the argument's string buffer directly. minify_utf8 is also affected because it is an alias for minify.

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