Is minimatch 0.4 vulnerable?

npm · 1 release from 0.4.0 to 0.4.0 · latest minimatch is 11.0.3 · checked 2 Nov 2026

Yes: 6 known advisories

Yes. minimatch 0.4.0, the last 0.4 release, is affected by 6 known security advisories (5 high, 1 medium), including CVE-2026-27903, CVE-2026-27904, CVE-2026-26996. Upgrade to 11.0.1 or later to fix all of them.

Upgrade with:npm install minimatch@11.0.1

Is your project affected?

Private repo? Upload its lockfile instead, or connect GitHub to check every repo.

Advisories affecting minimatch 0.4.0

  • MediumCVE-2026-118764GHSA-g3hv-75wg-m24930 Oct 2026

    minimatch has potential denial of service via globparts amplification

    Affected
    <11.0.1
    Fixed in
    11.0.1
  • HighCVE-2026-27903GHSA-7r86-cg39-jmmj26 Feb 2026

    minimatch has ReDoS: matchOne() combinatorial backtracking via multiple non-adjacent GLOBSTAR segments

    Affected
    >=10.0.0 <10.2.3 · >=9.0.0 <9.0.7 · >=8.0.0 <8.0.6 · >=7.0.0 <7.4.8 · >=6.0.0 <6.2.2 · >=5.0.0 <5.1.8 · >=4.0.0 <4.2.5 · <3.1.3
    Fixed in
    3.1.3, 4.2.5, 5.1.8, 6.2.2, 7.4.8, 8.0.6, 9.0.7, 10.2.3
  • HighCVE-2026-27904GHSA-23c5-xmqv-rm7426 Feb 2026

    minimatch ReDoS: nested *() extglobs generate catastrophically backtracking regular expressions

    Affected
    >=10.0.0 <10.2.3 · >=9.0.0 <9.0.7 · >=8.0.0 <8.0.6 · >=7.0.0 <7.4.8 · >=6.0.0 <6.2.2 · >=5.0.0 <5.1.8 · >=4.0.0 <4.2.5 · <3.1.4
    Fixed in
    3.1.4, 4.2.5, 5.1.8, 6.2.2, 7.4.8, 8.0.6, 9.0.7, 10.2.3
  • HighCVE-2026-26996GHSA-3ppc-4f35-3m2618 Feb 2026

    minimatch has a ReDoS via repeated wildcards with non-matching literal in pattern

    Affected
    >=10.0.0 <10.2.1 · >=9.0.0 <9.0.6 · >=8.0.0 <8.0.5 · >=7.0.0 <7.4.7 · >=6.0.0 <6.2.1 · >=5.0.0 <5.1.7 · >=4.0.0 <4.2.4 · <3.1.3
    Fixed in
    3.1.3, 4.2.4, 5.1.7, 6.2.1, 7.4.7, 8.0.5, 9.0.6, 10.2.1
  • HighCVE-2022-3517GHSA-f8q6-p94x-37v318 Oct 2022

    minimatch ReDoS vulnerability

    Affected
    <3.0.5
    Fixed in
    3.0.5
  • HighCVE-2016-10540GHSA-hxm2-r34f-qmc59 Oct 2018

    Regular Expression Denial of Service in minimatch

    Affected
    <3.0.2
    Fixed in
    3.0.2

Which of your client projects are still on minimatch 0.4?

NPMscan reads the lockfiles in every GitHub repo you pick, finds the exact minimatch version each one installs, and checks it against these advisories. Each finding comes with the command that fixes it.

Other minimatch versions

Advisory data from OSV.dev (opens OSV.dev in a new tab), which includes the GitHub Advisory Database. Release list from the npm registry. Refreshed daily.