{"answers":{"affected":"6 open source packages ship an affected version, including picomatch. It affects 1 product.","exploited":"There is no known exploitation of CVE-2026-33672 in the wild and no public exploit code.","fix":"Upgrade picomatch to a fixed version for your release line: 2.3.2, 3.0.2 or 4.0.4.","what":"CVE-2026-33672 is a medium-severity code injection vulnerability in micromatch picomatch, published on 26 Mar 2026. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2026-33672 and fix it if it is affected.\n\nWhat it is: CVE-2026-33672 is a medium-severity code injection vulnerability in micromatch picomatch, published on 26 Mar 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2026-33672 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- picomatch (npm): affected all versions; fixed in 2.3.2\n- picomatch (npm): affected all versions; fixed in 2.3.2\n- picomatch (npm): affected from 3.0.0; fixed in 3.0.2\n- picomatch (npm): affected from 3.0.0; fixed in 3.0.2\n- picomatch (npm): affected from 4.0.0; fixed in 4.0.4\n- picomatch (npm): affected from 4.0.0; fixed in 4.0.4\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2026-33672/ (Markdown: https://insights.sbomify.com/CVE-2026-33672/index.md)","id":"CVE-2026-33672","markdown":"https://insights.sbomify.com/CVE-2026-33672/index.md","name":"CVE-2026-33672","record":{"aliases":["AZL-81023","AZL-81038","CLEANSTART-2026-LA61588","CLEANSTART-2026-LU58636","CLEANSTART-2026-RI19788","CLEANSTART-2026-SS22483","DEBIAN-CVE-2026-33672","GHSA-3v7f-55p6-f55p","MINI-38qq-mc2c-m529","MINI-3xg3-8935-8gx9","MINI-4hc2-x7wv-452p","MINI-52w5-xp2q-96w2","MINI-5c4r-6mwm-pcpm","MINI-6hrg-c9pf-3mpp","MINI-6jgv-6j52-hq2h","MINI-76qx-24gc-g3v2","MINI-78h7-9vx2-8v42","MINI-7mjv-4327-52hm","MINI-7v7x-9xvj-mg4x","MINI-87x9-pwj2-cmh8","MINI-89j2-6v95-jh73","MINI-9j4f-68fw-mr3h","MINI-cqrh-j9cr-2rc3","MINI-fhrq-87jf-ggr5","MINI-hch4-44c6-cppr","MINI-hgxx-73vp-j8p6","MINI-hq85-5jg4-88xh","MINI-j9fc-gp87-p4hf","MINI-p5rp-m5fx-h77r","MINI-pmh9-pcr6-rc8p","MINI-r7j2-4p32-g44g","MINI-rxhp-p65x-c94p","MINI-rxrp-3gr5-r6wp","MINI-v5x3-gjcc-hxmq","MINI-wmfh-rm4p-vgff","MINI-xjvc-fvw5-33wm","ROOT-APP-NPM-CVE-2026-33672","UBUNTU-CVE-2026-33672"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["security_bypass"],"network_reachable":"yes","non_default_config":false,"product_category":"JavaScript glob matcher","requires_auth":"none","summary":"Attackers can inject inherited methods into regex via POSIX classes, causing incorrect glob matching and potential security bypasses in applications using picomatch.","user_interaction":"not_required","vuln_class":"code_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"picomatch","vendor":"jonschlinkert"}],"cvss":{"score":5.3,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N","version":"3.1"},"cwes":[{"id":"CWE-1321","name":"Improperly Controlled Modification of Object Prototype Attributes"}],"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.","ecosystems":["npm"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Picomatch: Method Injection in POSIX Character Classes causes incorrect Glob Matching","id":"CVE-2026-33672","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"npm","product":null,"products":[],"type":"code_injection","year":"2026"},"n_packages":6,"n_references":2,"next":{"headline":"PrestaShop has multiple stored XSS vulnerabilities via unprotected Template variables","id":"CVE-2026-33673"},"packages":[{"ecosystem":"npm","fixed":["2.3.2"],"introduced":["0"],"last_affected":[],"package":"picomatch","purl":null,"source":"GHSA-3v7f-55p6-f55p"},{"ecosystem":"npm","fixed":["2.3.2"],"introduced":["0"],"last_affected":[],"package":"picomatch","purl":"pkg:npm/picomatch","source":"GHSA-3v7f-55p6-f55p"},{"ecosystem":"npm","fixed":["3.0.2"],"introduced":["3.0.0"],"last_affected":[],"package":"picomatch","purl":null,"source":"GHSA-3v7f-55p6-f55p"},{"ecosystem":"npm","fixed":["3.0.2"],"introduced":["3.0.0"],"last_affected":[],"package":"picomatch","purl":"pkg:npm/picomatch","source":"GHSA-3v7f-55p6-f55p"},{"ecosystem":"npm","fixed":["4.0.4"],"introduced":["4.0.0"],"last_affected":[],"package":"picomatch","purl":null,"source":"GHSA-3v7f-55p6-f55p"},{"ecosystem":"npm","fixed":["4.0.4"],"introduced":["4.0.0"],"last_affected":[],"package":"picomatch","purl":"pkg:npm/picomatch","source":"GHSA-3v7f-55p6-f55p"}],"prev":{"headline":"Picomatch has a ReDoS vulnerability via extglob quantifiers","id":"CVE-2026-33671"},"products":["picomatch"],"published":"2026-03-26","related":[{"cvss_score":7.5,"headline":"Picomatch has a ReDoS vulnerability via extglob quantifiers","id":"CVE-2026-33671","kev_date_added":null,"published":"2026-03-26"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"yes","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2026-03-27","vendors":["micromatch"]},"summary":"Attackers can inject inherited methods into regex via POSIX classes, causing incorrect glob matching and potential security bypasses in applications using picomatch.","url":"https://insights.sbomify.com/CVE-2026-33672/"}