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.
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
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.
References
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 |
|
Subscriptions
No data.
Status: PUBLISHED
Assigner: CPANSec
Published:
Updated: 2026-12-06T11:07:11.059Z
Reserved: 2026-12-06T10:01:16.630Z
Link: CVE-2026-145760
No data.
No data.
No data.
OpenCVE Enrichment
No data.
Weaknesses