Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. picomatch
  4. ›
  5. CVE-2026-33672

CVE-2026-33672: Picomatch: Method Injection in POSIX Character Classes causes incorrect Glob Matching

March 25, 2026 (updated March 27, 2026)

picomatch is vulnerable to a method injection vulnerability (CWE-1321) affecting the POSIX_REGEX_SOURCE object. Because the object inherits from Object.prototype, specially crafted POSIX bracket expressions (e.g., [[:constructor:]]) can reference inherited method names. These methods are implicitly converted to strings and injected into the generated regular expression.

This leads to incorrect glob matching behavior (integrity impact), where patterns may match unintended filenames. The issue does not enable remote code execution, but it can cause security-relevant logic errors in applications that rely on glob matching for filtering, validation, or access control.

All users of affected picomatch versions that process untrusted or user-controlled glob patterns are potentially impacted.

References

  • github.com/advisories/GHSA-3v7f-55p6-f55p
  • github.com/micromatch/picomatch
  • github.com/micromatch/picomatch/commit/4516eb521f13a46b2fe1a1d2c9ef6b20ddc0e903
  • github.com/micromatch/picomatch/security/advisories/GHSA-3v7f-55p6-f55p
  • nvd.nist.gov/vuln/detail/CVE-2026-33672

Code Behaviors & Features

Detect and mitigate CVE-2026-33672 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 2.3.2, all versions starting from 3.0.0 before 3.0.2, all versions starting from 4.0.0 before 4.0.4

Fixed versions

  • 4.0.4
  • 3.0.2
  • 2.3.2

Solution

Upgrade to versions 2.3.2, 3.0.2, 4.0.4 or above.

Impact 5.3 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N

Learn more about CVSS

Weakness

  • CWE-1321: Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution')

Source file

npm/picomatch/CVE-2026-33672.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sat, 09 May 2026 12:18:52 +0000.