CVE-2026-7040 Memory corruption in Text::Minify::XS

High 7.5 Published Updated

Heap overflow in Text::Minify::XS allows attackers to execute arbitrary code or cause denial of service via malformed UTF-8 input.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
None listed

What is CVE-2026-7040?

CVE-2026-7040 is a high-severity memory corruption vulnerability in RRWO Text::Minify::XS, published on 27 Apr 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

Text::Minify::XS versions from 0.3.0 before 0.7.8 for Perl have a heap overflow when processing some malformed UTF-8 characters.

The minify functions mishandled some malformed UTF-8 characters, leading to heap corruption.

Note that the minify_utf8 function is an alias for minify.

Weakness: CWE-176, CWE-122

Which versions are affected by CVE-2026-7040?

It affects 1 product.

Products include Rrwo Text\.

How do I fix CVE-2026-7040?

No fix has been published for CVE-2026-7040 yet. Limit exposure of the affected software until one is available.

Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.

Is CVE-2026-7040 being exploited?

There is no known exploitation of CVE-2026-7040 in the wild and no public exploit code.

Sources

Also known as GHSA-jqhf-vv4h-77h2.

Is CVE-2026-7040 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free