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.
Published: 2026-12-06
Score: n/a
EPSS: n/a
KEV: No
Impact: n/a
Action: n/a
AI Analysis

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, convert the argument to a string before calling minify, minify_utf8 or minify_ascii, for example minify("$text").

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Sun, 06 Dec 2026 13:00:00 +0000

Type Values Removed Values Added
First Time appeared Rrwo
Rrwo text::minify::xs
Vendors & Products Rrwo
Rrwo text::minify::xs

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

Subscriptions

Rrwo Text::minify::xs
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

Status : Received

Published: 2026-12-06T12:18:02.540

Modified: 2026-12-06T12:18:02.540

Link: CVE-2026-145760

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-12-06T12:45:02Z

Weaknesses