{"id":"CVE-2026-7040","state":"PUBLISHED","title":"Text::Minify::XS versions from 0.3.0 before 0.7.8 for Perl have heap overflow when processing some malformed UTF-8 characters","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.\n\nThe minify functions mishandled some malformed UTF-8 characters, leading to heap corruption.\n\nNote that the minify_utf8 function is an alias for minify.","publishedAt":"2026-04-27T12:29:53.967Z","updatedAt":"2026-05-01T16:03:02.431Z","severity":{"score":7.5,"label":"High","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","source":"CISA-ADP"},"assigner":"CPANSec","products":["RRWO Text::Minify::XS"],"affected":[{"vendor":"RRWO","product":"Text::Minify::XS","packageName":"Text-Minify-XS","defaultStatus":"unaffected","versions":[{"version":"0.3.0","status":"affected","lessThan":"0.7.8","versionType":"custom"}],"collectionURL":"https://cpan.org/modules","programFiles":["XS.xs"],"programRoutines":[{"name":"Text::Minify::XS::minify"},{"name":"Text::Minify::XS::minify_utf8"}],"repo":"https://github.com/robrwo/Text-Minify-XS"}],"references":["https://github.com/robrwo/Text-Minify-XS/security/advisories/GHSA-jqhf-vv4h-77h2","https://metacpan.org/release/RRWO/Text-Minify-XS-v0.7.8/changes","http://www.openwall.com/lists/oss-security/2026/04/27/5"],"weaknesses":["CWE-176","CWE-122"],"ingestedAt":"2026-10-29T20:13:07.220Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/7xxx/CVE-2026-7040.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-7040","state":"PUBLISHED","datePublished":"2026-04-27T12:29:53.967Z","dateUpdated":"2026-05-01T16:03:02.431Z","assignerShortName":"CPANSec","assignerOrgId":"9b29abf9-4ab0-4765-b253-1875cd9b441e","dateReserved":"2026-04-25T15:53:43.870Z"},"containers":{"cna":{"title":"Text::Minify::XS versions from 0.3.0 before 0.7.8 for Perl have heap overflow when processing some malformed UTF-8 characters","descriptions":[{"lang":"en","value":"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.\n\nThe minify functions mishandled some malformed UTF-8 characters, leading to heap corruption.\n\nNote that the minify_utf8 function is an alias for minify."}],"affected":[{"vendor":"RRWO","product":"Text::Minify::XS","packageName":"Text-Minify-XS","defaultStatus":"unaffected","versions":[{"version":"0.3.0","status":"affected","lessThan":"0.7.8","versionType":"custom"}],"collectionURL":"https://cpan.org/modules","programFiles":["XS.xs"],"programRoutines":[{"name":"Text::Minify::XS::minify"},{"name":"Text::Minify::XS::minify_utf8"}],"repo":"https://github.com/robrwo/Text-Minify-XS"}],"references":[{"url":"https://github.com/robrwo/Text-Minify-XS/security/advisories/GHSA-jqhf-vv4h-77h2","tags":["vendor-advisory"]},{"url":"https://metacpan.org/release/RRWO/Text-Minify-XS-v0.7.8/changes","tags":["release-notes"]}],"problemTypes":[{"descriptions":[{"cweId":"CWE-176","description":"CWE-176 Improper Handling of Unicode Encoding","lang":"en","type":"CWE"}]},{"descriptions":[{"cweId":"CWE-122","description":"CWE-122 Heap-based Buffer Overflow","lang":"en","type":"CWE"}]}],"providerMetadata":{"shortName":"CPANSec","orgId":"9b29abf9-4ab0-4765-b253-1875cd9b441e","dateUpdated":"2026-05-01T16:03:02.431Z"},"credits":[{"lang":"en","type":"finder","value":"CPANSec"}],"solutions":[{"lang":"en","value":"Upgrade to v0.7.8 or later."}],"source":{"discovery":"UNKNOWN"},"timeline":[{"lang":"en","time":"2026-04-23T00:00:00.000Z","value":"This issue was identified by CPANSec"},{"lang":"en","time":"2025-04-25T00:00:00.000Z","value":"Fix uploaded to CPAN"}],"workarounds":[{"lang":"en","value":"Validate that all strings passed to the minify and minify_utf8 functions."}],"x_generator":{"engine":"cpansec-cna-tool 0.1"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"cvssV3_1":{"scope":"UNCHANGED","version":"3.1","baseScore":7.5,"attackVector":"NETWORK","baseSeverity":"HIGH","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","integrityImpact":"NONE","userInteraction":"NONE","attackComplexity":"LOW","availabilityImpact":"HIGH","privilegesRequired":"NONE","confidentialityImpact":"NONE"}},{"other":{"type":"ssvc","content":{"timestamp":"2026-04-27T14:19:18.048714Z","id":"CVE-2026-7040","options":[{"Exploitation":"none"},{"Automatable":"yes"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-04-27T14:20:30.162Z"}},{"title":"CVE Program Container","references":[{"url":"http://www.openwall.com/lists/oss-security/2026/04/27/5"}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2026-04-27T16:33:01.648Z"}}]}}}