CVE-2026-145760
Received Received - Intake

Denial of Service in Text::Minify::XS Perl Module

Vulnerability report for CVE-2026-145760, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-12-06

Last updated on: 2026-12-06

Assigner: CPANSec

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.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-12-06
Last Modified
2026-12-06
Generated
2026-12-06
AI Q&A
2026-12-06
EPSS Evaluated
N/A
NVD
EUVD

Affected Vendors & Products

Showing 1 associated CPE
Vendor Product Version / Range
robrwo text_minify_xs to 0.7.10 (exc)

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-843 The product allocates or initializes a resource such as a pointer, object, or variable using one type, but it later accesses that resource using a type that is incompatible with the original type.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

This vulnerability allows a malformed inputβ€”such as a number or JSON booleanβ€”to crash the Perl process running Text::Minify::XS by bypassing string conversion, causing denial of service without requiring authentication or elevated privileges.

Detection Guidance

Check installed versions of Text::Minify::XS using Perl’s module list command.

Bash
perl -MText::Minify::XS -e 'print "Version: $Text::Minify::XS::VERSION\n"'

If the version is below 0.7.10, the system is exposed to this crash condition.

Review application logs for unexpected process terminations during text minification tasks, especially when handling JSON or numeric inputs.

Impact Analysis

Successful exploitation causes the Perl process to terminate abruptly, disrupting any dependent services or applications relying on Text::Minify::XS for text processing.

Compliance Impact

If your application processes user-controlled text inputs (e.g., JSON APIs) and logs or audits service availability, repeated crashes may affect compliance with availability-related controls under frameworks that require resilience against denial-of-service conditions.

Mitigation Strategies

Upgrade Text::Minify::XS to version 0.7.10 or later as soon as possible to eliminate the crash condition.

Temporarily disable text minification features in affected applications if an immediate upgrade is not feasible, or sanitise inputs to ensure only valid strings are passed to minify functions.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-145760. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart

Security Radar

News mentioning this vulnerability
Loading related security news...