{"id":"CVE-2026-140006","state":"PUBLISHED","title":"minimatch: minimatch.escape() output matches more or less than the literal input","description":"minimatch is a minimal matching utility for converting glob expressions into JavaScript RegExp objects. From 7.4.0 until 11.0.8, minimatch.escape() can produce patterns that do not exclusively match the supplied literal input: leading ! can become negation, leading # can become a comment, braceExpand() can collapse an escaped backslash and reactivate a following magic character when an expanded brace group is present and the installed brace-expansion release has the affected behavior (2.x or 5.0.4 through 5.0.12), and windowsPathsNoEscape combined with magicalBraces can leave braces active. Applications that escape attacker-controlled text and then use the result as an authorization, filtering, or path-selection pattern may match unintended strings or fail to match the intended literal. This issue is fixed in version 11.0.8.","publishedAt":"2026-11-30T21:31:29.712Z","updatedAt":"2026-11-30T21:31:29.712Z","severity":{"score":5.4,"label":"Medium","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N","source":"GitHub_M"},"assigner":"GitHub_M","products":["isaacs minimatch"],"affected":[{"vendor":"isaacs","product":"minimatch","versions":[{"version":">= 7.4.0, < 11.0.8","status":"affected"}]}],"references":["https://github.com/isaacs/minimatch/security/advisories/GHSA-c859-jr93-m5j4","https://github.com/isaacs/minimatch/commit/784603e09641970d2ba2caf8c73a95d1015cc67d"],"weaknesses":["CWE-116"],"ingestedAt":"2026-11-30T21:38:06.353Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/140xxx/CVE-2026-140006.json","commit":"37709618ef541107cb9ec4033cfee7ad80986632","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-140006","state":"PUBLISHED","datePublished":"2026-11-30T21:31:29.712Z","dateUpdated":"2026-11-30T21:31:29.712Z","assignerShortName":"GitHub_M","assignerOrgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateReserved":"2026-11-30T17:42:59.710Z"},"containers":{"cna":{"title":"minimatch: minimatch.escape() output matches more or less than the literal input","descriptions":[{"lang":"en","value":"minimatch is a minimal matching utility for converting glob expressions into JavaScript RegExp objects. From 7.4.0 until 11.0.8, minimatch.escape() can produce patterns that do not exclusively match the supplied literal input: leading ! can become negation, leading # can become a comment, braceExpand() can collapse an escaped backslash and reactivate a following magic character when an expanded brace group is present and the installed brace-expansion release has the affected behavior (2.x or 5.0.4 through 5.0.12), and windowsPathsNoEscape combined with magicalBraces can leave braces active. Applications that escape attacker-controlled text and then use the result as an authorization, filtering, or path-selection pattern may match unintended strings or fail to match the intended literal. This issue is fixed in version 11.0.8."}],"affected":[{"vendor":"isaacs","product":"minimatch","versions":[{"version":">= 7.4.0, < 11.0.8","status":"affected"}]}],"references":[{"url":"https://github.com/isaacs/minimatch/security/advisories/GHSA-c859-jr93-m5j4","name":"https://github.com/isaacs/minimatch/security/advisories/GHSA-c859-jr93-m5j4","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/isaacs/minimatch/commit/784603e09641970d2ba2caf8c73a95d1015cc67d","name":"https://github.com/isaacs/minimatch/commit/784603e09641970d2ba2caf8c73a95d1015cc67d","tags":["x_refsource_MISC"]}],"metrics":[{"cvssV3_1":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"NONE","baseScore":5.4,"baseSeverity":"MEDIUM","confidentialityImpact":"LOW","integrityImpact":"LOW","privilegesRequired":"LOW","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N","version":"3.1"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-116","lang":"en","description":"CWE-116: Improper Encoding or Escaping of Output","type":"CWE"}]}],"providerMetadata":{"shortName":"GitHub_M","orgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateUpdated":"2026-11-30T21:31:29.712Z"},"source":{"advisory":"GHSA-c859-jr93-m5j4","discovery":"UNKNOWN"}}}}}