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 minify_ascii 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. minify_utf8 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.

Project Subscriptions

No data.

Advisories

No advisories yet.

Fixes

Solution

Upgrade to Text-Minify-XS v0.7.10 or later.


Workaround

For deployments that cannot upgrade, convert the argument to a string before calling minify, minify_utf8 or minify_ascii, for example minify("$text").

History

Sun, 06 Dec 2026 11:15:00 +0000

Type Values Removed Values Added
Description 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 minify_ascii 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. minify_utf8 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.
Title Text::Minify::XS versions before 0.7.10 for Perl terminate the process when minify is called with a number or a reference
Weaknesses CWE-843
References

Projects

Sign in to view the affected projects.

cve-icon MITRE

Status: PUBLISHED

Assigner: CPANSec

Published:

Updated: 2026-12-06T11:07:11.059Z

Reserved: 2026-12-06T10:01:16.630Z

Link: CVE-2026-145760

cve-icon Vulnrichment

No data.

cve-icon NVD

No data.

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

No data.

Weaknesses