{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-7040","assignerOrgId":"9b29abf9-4ab0-4765-b253-1875cd9b441e","state":"PUBLISHED","assignerShortName":"CPANSec","dateReserved":"2026-04-25T15:53:43.870Z","datePublished":"2026-04-27T12:29:53.967Z","dateUpdated":"2026-05-01T16:03:02.431Z"},"containers":{"cna":{"affected":[{"collectionURL":"https://cpan.org/modules","defaultStatus":"unaffected","packageName":"Text-Minify-XS","product":"Text::Minify::XS","programFiles":["XS.xs"],"programRoutines":[{"name":"Text::Minify::XS::minify"},{"name":"Text::Minify::XS::minify_utf8"}],"repo":"https://github.com/robrwo/Text-Minify-XS","vendor":"RRWO","versions":[{"lessThan":"0.7.8","status":"affected","version":"0.3.0","versionType":"custom"}]}],"credits":[{"lang":"en","type":"finder","value":"CPANSec"}],"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."}],"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":{"orgId":"9b29abf9-4ab0-4765-b253-1875cd9b441e","shortName":"CPANSec","dateUpdated":"2026-05-01T16:03:02.431Z"},"references":[{"tags":["vendor-advisory"],"url":"https://github.com/robrwo/Text-Minify-XS/security/advisories/GHSA-jqhf-vv4h-77h2"},{"tags":["release-notes"],"url":"https://metacpan.org/release/RRWO/Text-Minify-XS-v0.7.8/changes"}],"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"}],"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","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":[{"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"}}}],"title":"CISA ADP Vulnrichment","providerMetadata":{"orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","shortName":"CISA-ADP","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":{"orgId":"af854a3a-2127-422b-91ae-364da2661108","shortName":"CVE","dateUpdated":"2026-04-27T16:33:01.648Z"}}]}}