The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2026-33672

CVE-2026-33672: Picomatch Method Injection Vulnerability

CVE-2026-33672 is a method injection vulnerability in Picomatch that allows crafted POSIX bracket expressions to cause incorrect glob matching behavior. This article covers the technical details, affected versions, and mitigation.

Published: March 26, 2026

CVE-2026-33672 Overview

CVE-2026-33672 is a method injection vulnerability in Picomatch, a popular glob matcher library written in JavaScript. The vulnerability affects the POSIX_REGEX_SOURCE object, which inherits from Object.prototype, allowing specially crafted POSIX bracket expressions (e.g., [[:constructor:]]) to reference inherited method names. These methods are implicitly converted to strings and injected into the generated regular expression, leading to incorrect glob matching behavior.

Critical Impact

This vulnerability enables security-relevant logic errors in applications that rely on glob matching for filtering, validation, or access control. Attackers can craft malicious glob patterns that cause unintended filename matches, potentially bypassing security controls.

Affected Products

  • Picomatch versions prior to 4.0.4
  • Picomatch versions prior to 3.0.2
  • Picomatch versions prior to 2.3.2

Discovery Timeline

  • 2026-03-26 - CVE CVE-2026-33672 published to NVD
  • 2026-03-26 - Last updated in NVD database

Technical Details for CVE-2026-33672

Vulnerability Analysis

This vulnerability is classified as CWE-1321 (Improperly Controlled Modification of Object Prototype Attributes), commonly known as prototype pollution. The issue stems from the POSIX_REGEX_SOURCE object in Picomatch not using a null prototype, allowing it to inherit properties from Object.prototype.

When processing POSIX character class expressions like [[:alnum:]], the library looks up the class name (e.g., "alnum") as a property on POSIX_REGEX_SOURCE. However, because this object inherits from Object.prototype, attackers can supply class names that correspond to inherited methods such as constructor, toString, or hasOwnProperty.

When these inherited methods are accessed, they are implicitly converted to strings (producing values like "function Object() { [native code] }") and injected directly into the generated regular expression. This corrupts the regex pattern and causes incorrect matching behavior.

Root Cause

The root cause is the absence of a null prototype on the POSIX_REGEX_SOURCE object. Without __proto__: null, the object inherits all standard JavaScript object methods, creating an unintended lookup path for malicious input. This is a common prototype pollution pattern in JavaScript applications where objects are used as dictionaries without proper prototype chain isolation.

Attack Vector

The attack can be conducted over the network by any unauthenticated user who can supply glob patterns to an application using vulnerable Picomatch versions. The attacker crafts a malicious POSIX bracket expression that references an inherited Object.prototype method name:

  1. Attacker identifies an application accepting user-controlled glob patterns
  2. Attacker submits a glob pattern containing [[:constructor:]] or similar inherited property names
  3. Picomatch looks up "constructor" in POSIX_REGEX_SOURCE, finding it on Object.prototype
  4. The constructor function is converted to string and injected into the regex
  5. The corrupted regex produces incorrect matching results, potentially bypassing security filters

While this does not enable remote code execution, it can cause applications to make incorrect security decisions based on faulty glob matching results.

javascript
  */
 
 const POSIX_REGEX_SOURCE = {
+  __proto__: null,
   alnum: 'a-zA-Z0-9',
   alpha: 'a-zA-Z',
   ascii: '\\\x00-\\\x7F',

Source: GitHub Commit Update

The fix adds __proto__: null to the POSIX_REGEX_SOURCE object, preventing it from inheriting properties from Object.prototype and ensuring only explicitly defined POSIX character classes are accessible.

Detection Methods for CVE-2026-33672

Indicators of Compromise

  • Unusual glob patterns in application logs containing POSIX bracket expressions like [[:constructor:]], [[:toString:]], or [[:hasOwnProperty:]]
  • Unexpected file access patterns where glob-based filters fail to properly restrict or match files
  • Error messages or regex exceptions related to malformed regular expressions in glob matching operations

Detection Strategies

  • Audit application dependencies using npm audit, yarn audit, or similar package scanning tools to identify vulnerable Picomatch versions
  • Implement input validation to detect and reject glob patterns containing suspicious POSIX bracket expressions referencing JavaScript prototype methods
  • Review application logs for anomalous glob pattern submissions that deviate from expected usage patterns

Monitoring Recommendations

  • Configure application logging to capture all user-supplied glob patterns for forensic analysis
  • Set up alerts for regex compilation errors or unexpected matching behavior in glob-based security controls
  • Monitor Software Composition Analysis (SCA) tools for vulnerable dependency alerts

How to Mitigate CVE-2026-33672

Immediate Actions Required

  • Upgrade Picomatch to version 4.0.4, 3.0.2, or 2.3.2 or later depending on your supported release line
  • Audit applications to identify all locations where user-controlled input is passed to Picomatch glob matching functions
  • Implement input validation to sanitize or reject untrusted glob patterns, especially those containing POSIX character classes

Patch Information

The vulnerability has been fixed in Picomatch versions 4.0.4, 3.0.2, and 2.3.2. The fix modifies the POSIX_REGEX_SOURCE object to use a null prototype (__proto__: null), preventing inherited method lookups from Object.prototype. For detailed patch information, see the GitHub Security Advisory GHSA-3v7f-55p6-f55p and the security commit.

Workarounds

  • Avoid passing untrusted or user-controlled glob patterns directly to Picomatch
  • Sanitize glob patterns by rejecting or escaping POSIX bracket expressions matching the pattern [[:...:]]
  • Manually patch the library by modifying POSIX_REGEX_SOURCE to use a null prototype if upgrading is not immediately possible
bash
# Configuration example - Update picomatch in package.json
npm update picomatch@4.0.4
# Or for specific version lines:
npm install picomatch@3.0.2
npm install picomatch@2.3.2

# Verify the installed version
npm list picomatch

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeOther

  • Vendor/TechPicomatch

  • SeverityMEDIUM

  • CVSS Score5.3

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-1321
  • Technical References
  • GitHub Commit Update

  • GitHub Security Advisory GHSA-3v7f-55p6-f55p
  • Related CVEs
  • CVE-2026-33671: Picomatch ReDoS Denial of Service Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English