Text::Minify::XS versions from v0.3.0 before v0.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 minnify.

Project Subscriptions

No data.

Advisories

No advisories yet.

Fixes

Solution

Upgrade to v0.7.8 or later.


Workaround

Validate that all strings passed to the minify and minify_utf8 functions.

History

Mon, 27 Apr 2026 17:30:00 +0000

Type Values Removed Values Added
References

Mon, 27 Apr 2026 15:15:00 +0000

Type Values Removed Values Added
Metrics cvssV3_1

{'score': 7.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H'}

ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Mon, 27 Apr 2026 13:00:00 +0000

Type Values Removed Values Added
Description Text::Minify::XS versions from v0.3.0 before v0.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 minnify.
Title Text::Minify::XS versions from v0.3.0 before v0.7.8 for Perl have heap overflow when processing some malformed UTF-8 characters
Weaknesses CWE-122
CWE-176
References

Projects

Sign in to view the affected projects.

cve-icon MITRE

Status: PUBLISHED

Assigner: CPANSec

Published:

Updated: 2026-04-27T16:33:01.648Z

Reserved: 2026-04-25T15:53:43.870Z

Link: CVE-2026-7040

cve-icon Vulnrichment

Updated: 2026-04-27T16:33:01.648Z

cve-icon NVD

Status : Received

Published: 2026-04-27T13:16:02.710

Modified: 2026-04-27T17:16:44.483

Link: CVE-2026-7040

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

No data.

Weaknesses