Text::Minify::XS versions from 0.3.0 before 0.7.8 for Perl have heap overflow when processing some malformed UTF-8 characters
Summary
| CVE | CVE-2026-7040 |
|---|---|
| State | PUBLISHED |
| Assigner | CPANSec |
| Source Priority | CVE Program / NVD first with legacy fallback |
| Published | 2026-04-27 13:16:02 UTC |
| Updated | 2026-05-07 02:20:57 UTC |
| 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. |
Risk And Classification
Primary CVSS: v3.1 7.5 HIGH from ADP
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
EPSS: 0.000500000 probability, percentile 0.151480000 (date 2026-05-05)
Problem Types: CWE-122 | CWE-176 | CWE-176 CWE-176 Improper Handling of Unicode Encoding | CWE-122 CWE-122 Heap-based Buffer Overflow
| Version | Source | Type | Score | Severity | Vector |
|---|---|---|---|---|---|
| 3.1 | ADP | DECLARED | 7.5 | HIGH | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| 3.1 | 134c704f-9b21-4f2e-91b3-4a467353bcc0 | Secondary | 7.5 | HIGH | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
CVSS v3.1 Breakdown
Attack Vector
NetworkAttack Complexity
LowPrivileges Required
NoneUser Interaction
NoneScope
UnchangedConfidentiality
NoneIntegrity
NoneAvailability
HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
NVD Known Affected Configurations (CPE 2.3)
Vendor Declared Affected Products
| Source | Vendor | Product | Version | Platforms |
|---|---|---|---|---|
| CNA | RRWO | TextMinifyXS | affected 0.3.0 0.7.8 custom | Not specified |
References
| Reference | Source | Link | Tags |
|---|---|---|---|
| github.com/robrwo/Text-Minify-XS/security/advisories/GHSA-jqhf-vv4h-77h2 | 9b29abf9-4ab0-4765-b253-1875cd9b441e | github.com | Third Party Advisory |
| www.openwall.com/lists/oss-security/2026/04/27/5 | af854a3a-2127-422b-91ae-364da2661108 | www.openwall.com | Mailing List, Third Party Advisory |
| metacpan.org/release/RRWO/Text-Minify-XS-v0.7.8/changes | 9b29abf9-4ab0-4765-b253-1875cd9b441e | metacpan.org | Product, Release Notes |
| CVE Program record | CVE.ORG | www.cve.org | canonical |
| NVD vulnerability detail | NVD | nvd.nist.gov | canonical, analysis |
Vendor Comments And Credit
Discovery Credit
CNA: CPANSec (en)
Additional Advisory Data
| Source | Time | Event |
|---|---|---|
| CNA | 2026-04-23T00:00:00.000Z | This issue was identified by CPANSec |
| CNA | 2025-04-25T00:00:00.000Z | Fix uploaded to CPAN |
Solutions
CNA: Upgrade to v0.7.8 or later.
Workarounds
CNA: Validate that all strings passed to the minify and minify_utf8 functions.
There are currently no legacy QID mappings associated with this CVE.