CVE catalog

CVE-2026-33672

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 obje

[CVE catalog]

Severity
Medium · CVSS 5.3CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
Published
Source
[NVD] · [CVE record]
EPSS
0.43% · Oct 25, 2026

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.

Vulnerable and fixed packages

Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.

DistributionPackageReleaseVersionStatus
Debiannode-anymatchsid3.1.3+~cs8.0.6-1fixed
Debiannode-anymatchforky3.1.3+~cs8.0.6-1fixed
Debiannode-anymatchtrixie3.1.3+~cs4.6.1-2vulnerable
Debiannode-anymatchbookworm3.1.3+~cs4.6.1-2vulnerable
Cpenode-anymatchNot reportedNot reportedvulnerable
CpepicomatchNot reported2.3.2fixed
CpepicomatchNot reported3.0.2fixed
CpepicomatchNot reported4.0.4fixed
NpmpicomatchNot reported2.3.2fixed
NpmpicomatchNot reported3.0.2fixed
NpmpicomatchNot reported2.3.2fixed
Ubuntunode-anymatch18.041.3.0-1vulnerable
Ubuntunode-anymatch20.043.0.3+~2.0.7-3vulnerable
Ubuntunode-anymatch20.043.1.1+~2.1.1-1vulnerable
Ubuntunode-anymatch22.043.1.1+~2.2.2-1vulnerable
Ubuntunode-anymatch22.043.1.2+~cs4.5.6-1vulnerable
Ubuntunode-anymatch24.043.1.3+~cs4.6.1-2vulnerable
Ubuntunode-anymatch25.103.1.3+~cs4.6.1-2vulnerable
Ubuntunode-anymatch26.043.1.3+~cs4.6.1-2vulnerable
Ubuntunode-anymatch26.043.1.3+~cs8.0.6-1vulnerable

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debiannode-anymatchsourcesid3.1.3+~cs8.0.6-1not yet assignedNot reported[1132160]
Debiannode-anymatchsourceforky3.1.3+~cs8.0.6-1not yet assignedNot reported[1132160]
Debiannode-anymatchsourcetrixie(unfixed)not yet assignedNot reported[1132160]
Debiannode-anymatchsourcebookworm(unfixed)not yet assignedNot reported[1132160]
CpepicomatchcpeNot reported2.3.2Not reportedNot reportedNot reported
CpepicomatchcpeNot reported3.0.2Not reportedNot reportedNot reported
CpepicomatchcpeNot reported4.0.4Not reportedNot reportedNot reported
NpmpicomatchnpmNot reported2.3.2Not reportedGHSA-3V7F-55P6-F55PNot reported
NpmpicomatchnpmNot reported3.0.2Not reportedNot reportedNot reported
NpmpicomatchnpmNot reported2.3.2Not reportedNot reportedNot reported

[Debian bug #1132160]

Notes

[trixie] node-anymatch: Minor issue [bookworm] node-anymatch: Minor issue

OpenFactory catalog packages

[Debian 12 (Bookworm)]

  • [node-anymatch]Affected
    Details (2)
    • 3.1.3+~cs4.6.1-2 · all · bookworm

      Affected

      nvd · node-anymatch · debian · bookworm; nvd · node-anymatch · debian · 12

    • 3.1.3+~cs4.6.1-2 · all · bookworm

      Affected

      nvd · node-anymatch · debian · bookworm; nvd · node-anymatch · debian · 12

[Debian 13 (Trixie)]

  • [node-anymatch]Affected
    Details (2)
    • 3.1.3+~cs4.6.1-2 · all · trixie

      Affected

      nvd · node-anymatch · debian · 13

    • 3.1.3+~cs4.6.1-2 · all · trixie

      Affected

      nvd · node-anymatch · debian · 13

Observed:

References