CVE-2026-140006 affects the minimatch library's escape() function, which is intended to escape all special characters in glob patterns so that only literal strings match. In minimatch versions from 7.4.0 up to but not including 11.0.8, escape() fails to properly escape certain characters and sequences, including leading '!' and '#', escaped backslashes in brace expansions, and brace expansions with windowsPathsNoEscape enabled. These failures cause the escaped patterns to match more or less than the literal input, breaking the documented contract and potentially leading to incorrect matching behavior.