# CVE-2026-7040: Text::Minify::XS versions from 0.3.0 before 0.7.8 for Perl have heap overflow when processing some malformed UTF-8 characters

- Severity: High 7.5 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.44%, higher than 40% of CVEs (2026-12-01)
- Published: 2026-04-27T12:29:53.967Z
- Modified: 2026-10-26T21:10:00.170Z
- Weaknesses: CWE-122, CWE-176
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: CPANSec

## 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.

(As written by CVE List.)

## Affected

- Text-Minify-XS: from 0.3.0 before 0.7.8
- rrwo text::minify::xs: from 0.3.0 before 0.7.8

## References

- <https://github.com/robrwo/Text-Minify-XS/security/advisories/GHSA-jqhf-vv4h-77h2> (third-party-advisory, vendor-advisory)
- <https://metacpan.org/release/RRWO/Text-Minify-XS-v0.7.8/changes> (product, release-notes)
- <http://www.openwall.com/lists/oss-security/2026/04/27/5> (mailing-list, third-party-advisory)

## Sources

- CVE List: [CVE-2026-7040](https://www.cve.org/CVERecord?id=CVE-2026-7040), CVE Terms of Use, modified 2026-05-01
- NVD: [CVE-2026-7040](https://nvd.nist.gov/vuln/detail/CVE-2026-7040), Public domain, modified 2026-10-26

---

Page: https://cve.day/CVE-2026-7040 · Whole record: https://cve.day/CVE-2026-7040.json · Rebuilt by cve.day 2026-11-25T22:59:19.658Z
