Text::Minify::XS versions from 0.3.0 up to but not including 0.7.10 for Perl contain a heap buffer overflow vulnerability in the minify function when processing malformed UTF-8 input with utf8 warnings disabled. This occurs because the output buffer is sized to the input, but malformed UTF-8 characters decode to replacement characters that require more bytes, causing overflow and potential heap corruption or crash.