CVE Catalog

CVE-2026-145760

Unknown
Published: Translated: NVD NIST

Summary

In Text::Minify::XS versions before 0.7.10 for Perl, calling minify with a number or a reference instead of a string terminates the process. The function reads the argument's string buffer directly without conversion, resulting in an "Out of memory" error or a crash that eval cannot catch.

Risk Assessment

An attacker can send a number or JSON boolean where an application expects a string (e.g., in a JSON request body passed to minify), causing process termination and a denial of service.

Recommendation

Update Text::Minify::XS to version 0.7.10 or later and validate input types before passing them to minify.

Other vulnerabilities in Text::Minify::XS

See all
Original NVD description (English source)

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.

Vulnerability data from NVD (NIST) · CISA KEV · EPSS