{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "cpe": "cpe:2.3:a:rrwo:text\\:\\:minify\\:\\:xs:*:*:*:*:*:perl:*:*",
            "extracted_events": [
              {
                "introduced": "0.3.0"
              },
              {
                "fixed": "0.7.8"
              }
            ],
            "source": [
              "AFFECTED_FIELD",
              "CPE_RANGE"
            ]
          },
          "events": [
            {
              "introduced": "76133cacb4d9f6ec4861355adb570f08f5383dd3"
            },
            {
              "fixed": "8214da503b7a00d3908d8b1853ef484ea26e0e6b"
            }
          ],
          "repo": "https://github.com/robrwo/text-minify-xs",
          "type": "GIT"
        }
      ]
    }
  ],
  "aliases": [
    "GHSA-jqhf-vv4h-77h2"
  ],
  "database_specific": {
    "cna_assigner": "CPANSec",
    "cwe_ids": [
      "CWE-122",
      "CWE-176"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/7xxx/CVE-2026-7040.json"
  },
  "details": "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.",
  "id": "CVE-2026-7040",
  "modified": "2026-07-15T01:48:51.764879820Z",
  "published": "2026-04-27T12:29:53.967Z",
  "references": [
    {
      "type": "WEB",
      "url": "http://www.openwall.com/lists/oss-security/2026/04/27/5"
    },
    {
      "type": "WEB",
      "url": "https://cpan.org/modules"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/7xxx/CVE-2026-7040.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/robrwo/Text-Minify-XS/security/advisories/GHSA-jqhf-vv4h-77h2"
    },
    {
      "type": "ADVISORY",
      "url": "https://metacpan.org/release/RRWO/Text-Minify-XS-v0.7.8/changes"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-7040"
    },
    {
      "type": "PACKAGE",
      "url": "https://github.com/robrwo/Text-Minify-XS"
    }
  ],
  "schema_version": "1.8.0",
  "severity": [
    {
      "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H",
      "type": "CVSS_V3"
    }
  ],
  "summary": "Text::Minify::XS versions from 0.3.0 before 0.7.8 for Perl have heap overflow when processing some malformed UTF-8 characters"
}