{"id":"CVE-2026-138148","state":"PUBLISHED","title":"picomatch through 4.0.7 Glob Filter Bypass via Globstar Line Terminators","description":"picomatch through 4.0.7 contains a glob filter bypass vulnerability because globstar (**) patterns are compiled without the dotAll flag and fail to match line terminators. Attackers who control file, object key or archive entry names containing newline characters can evade ** deny patterns, causing excluded resources to be included and exposed.","publishedAt":"2026-11-28T01:43:02.586Z","updatedAt":"2026-11-28T01:43:02.586Z","severity":{"score":6.9,"label":"Medium","version":"4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N","source":"VulnCheck"},"assigner":"VulnCheck","products":["micromatch picomatch"],"affected":[{"vendor":"micromatch","product":"picomatch","packageURL":"pkg:npm/picomatch","defaultStatus":"unaffected","versions":[{"version":"0","status":"affected","lessThanOrEqual":"4.0.7","versionType":"semver"}],"repo":"https://github.com/micromatch/picomatch"}],"references":["https://github.com/micromatch/picomatch/pull/202","https://github.com/micromatch/picomatch/commit/838c9d791cbd0e7c92e858f71ae38f6597416c09","https://github.com/micromatch/picomatch/blob/4.0.7/lib/parse.js#L395-L397","https://github.com/micromatch/picomatch/blob/4.0.7/lib/parse.js#L1373-L1376","https://www.vulncheck.com/advisories/picomatch-through-4.0.7-glob-filter-bypass-via-globstar-line-terminators"],"weaknesses":["CWE-185"],"ingestedAt":"2026-11-28T01:48:06.029Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/138xxx/CVE-2026-138148.json","commit":"bafc8c82504acb338f60e61d73af6875ff7797ce","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-138148","state":"PUBLISHED","datePublished":"2026-11-28T01:43:02.586Z","dateUpdated":"2026-11-28T01:43:02.586Z","assignerShortName":"VulnCheck","assignerOrgId":"83251b91-4cc7-4094-a5c7-464a1b83ea10","dateReserved":"2026-11-28T01:08:01.780Z"},"containers":{"cna":{"title":"picomatch through 4.0.7 Glob Filter Bypass via Globstar Line Terminators","descriptions":[{"lang":"en","value":"picomatch through 4.0.7 contains a glob filter bypass vulnerability because globstar (**) patterns are compiled without the dotAll flag and fail to match line terminators. Attackers who control file, object key or archive entry names containing newline characters can evade ** deny patterns, causing excluded resources to be included and exposed."}],"affected":[{"vendor":"micromatch","product":"picomatch","packageURL":"pkg:npm/picomatch","defaultStatus":"unaffected","versions":[{"version":"0","status":"affected","lessThanOrEqual":"4.0.7","versionType":"semver"}],"repo":"https://github.com/micromatch/picomatch"}],"references":[{"url":"https://github.com/micromatch/picomatch/pull/202","tags":["issue-tracking","patch"]},{"url":"https://github.com/micromatch/picomatch/commit/838c9d791cbd0e7c92e858f71ae38f6597416c09","tags":["patch"]},{"url":"https://github.com/micromatch/picomatch/blob/4.0.7/lib/parse.js#L395-L397","tags":["technical-description"]},{"url":"https://github.com/micromatch/picomatch/blob/4.0.7/lib/parse.js#L1373-L1376","tags":["technical-description"]},{"url":"https://www.vulncheck.com/advisories/picomatch-through-4.0.7-glob-filter-bypass-via-globstar-line-terminators","name":"VulnCheck Advisory: picomatch through 4.0.7 Glob Filter Bypass via Globstar Line Terminators","tags":["third-party-advisory"]}],"metrics":[{"format":"CVSS","cvssV4_0":{"version":"4.0","vectorString":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N","attackVector":"NETWORK","attackComplexity":"LOW","attackRequirements":"NONE","privilegesRequired":"NONE","userInteraction":"NONE","vulnConfidentialityImpact":"LOW","vulnIntegrityImpact":"NONE","vulnAvailabilityImpact":"NONE","subConfidentialityImpact":"NONE","subIntegrityImpact":"NONE","subAvailabilityImpact":"NONE","baseScore":6.9,"baseSeverity":"MEDIUM"}},{"format":"CVSS","cvssV3_1":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"NONE","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"LOW","integrityImpact":"NONE","availabilityImpact":"NONE","baseScore":5.3,"baseSeverity":"MEDIUM"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-185","lang":"en","description":"Incorrect Regular Expression","type":"CWE"}]}],"providerMetadata":{"shortName":"VulnCheck","orgId":"83251b91-4cc7-4094-a5c7-464a1b83ea10","dateUpdated":"2026-11-28T01:43:02.586Z"},"datePublic":"2026-08-25T00:00:00.000Z","cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:a:jonschlinkert:picomatch:*:*:*:*:*:*:*:*","versionEndIncluding":"4.0.7"}]}]}],"credits":[{"lang":"en","value":"Wayde Shi","type":"finder"},{"lang":"en","value":"Dương Ngọc Anh","type":"remediation developer"}],"x_generator":{"engine":"vulncheck-endgame"}}}}}