Text::Minify::XS versions before 0.7.10 for Perl have a vulnerability where calling the minify function with a number or reference causes the process to terminate unexpectedly. This occurs because the function reads the argument's string buffer directly without proper type checking, leading to invalid memory access and an "Out of memory" error or crash. This can be triggered if an attacker sends a number or JSON boolean where a string is expected, such as in a JSON request body passed to minify.