Visit the Wiz Whimzical Shop at AWS re:Invent
Vulnerability DatabaseCVE-2026-141514

CVE-2026-141514: 
JavaScript vulnerability analysis and mitigation

Overview

CVE-2026-141514 is a cache poisoning vulnerability in the minimatch npm package (a glob-to-RegExp matching utility for JavaScript) that allows an attacker to corrupt the module-global matcher cache by passing an options object containing an own __proto__ property to minimatch(). This causes later, unrelated callers using the same pattern with default options to receive the poisoned matcher — for example, one that performs case-insensitive matching — potentially flipping security-relevant allow or deny decisions. Affected versions are >= 11.0.6 and < 11.0.10; the issue is fixed in version 11.0.10. It carries a CVSS v3.1 base score of 3.7 (Low) (GitHub Advisory).

Technical details

The root cause is classified as CWE-1321 (Improperly Controlled Modification of Object Prototype Attributes). Three functions in src/index.ts interact defectively: optionsKey() (lines 229–234) has no case '__proto__' branch, so a __proto__ key contributes weight 0 and produces the same cache key as a default (no-options) call; copyOptions() (lines 291–296) uses a plain for...in loop with bare assignment, causing copy['__proto__'] = value to invoke the real prototype setter rather than creating an own property, thereby re-parenting the copy's prototype; and cachedMinimatch() (lines 298–323) stores the resulting Minimatch object under the default-options cache key. The fix (commit 1c11986) changes copyOptions() to use Object.create(null) as the base and skips the __proto__ key, and introduces a shared noOptions sentinel so option-less calls are keyed consistently (GitHub Advisory, Fix Commit).

Impact

Successful exploitation allows an attacker to alter the boolean outcome of glob pattern matching for any subsequent caller that uses the same pattern string with default options, within the same Node.js process, until the cache entry is evicted. The primary risk is integrity: security-relevant allow/deny list decisions (e.g., package-name filters, file access controls) can be silently flipped from the expected result. There is no confidentiality impact (no data disclosure), no availability impact (no denial of service), and the attack does not modify Object.prototype globally — the effect is strictly scoped to the shared module-level matcher cache (GitHub Advisory).

Exploitability

A proof-of-concept (PoC) exploit is publicly available in the GitHub Security Advisory, demonstrating the two-call sequence that reproduces the flipped match result using the payload JSON.parse('{"__proto__":{"nocase":true}}'). There is no evidence of in-the-wild exploitation at this time. The NVD SSVC assessment classifies exploitation as "poc" and the attack as non-automatable, reflecting the high attack complexity requirement: an attacker must control a code path that passes an options object derived from untrusted JSON to minimatch(), and a separate trusted call must use the same pattern string. The EPSS score is 0.0 and the vulnerability is not listed in the CISA KEV catalog (GitHub Advisory).

Exploitation steps

  1. Identify a vulnerable target: Confirm the application uses minimatch versions 11.0.6–11.0.9 and has a code path where attacker-controlled JSON is parsed and passed (directly or indirectly) as the options argument to minimatch().
  2. Craft the malicious options payload: Construct a JSON object with an own __proto__ property: const smuggled = JSON.parse('{"__proto__":{"nocase":true}}').
  3. Trigger the poisoning call: Cause the application to invoke minimatch(file, patternLower, smuggled). Internally, optionsKey(smuggled) returns 0 (the default key) because __proto__ has no weight; copyOptions(smuggled) re-parents the copy's prototype to {nocase: true}; cachedMinimatch() stores this case-insensitive matcher under the default cache key for patternLower.
  4. Wait for a victim call: A separate, trusted code path calls minimatch(file, patternLower) with no options. It looks up the default cache slot for patternLower, retrieves the poisoned case-insensitive matcher, and returns true for a file that should not match (e.g., 'FOO-....TXT' against 'foo-....txt').
  5. Achieve the objective: The flipped match result bypasses a security-relevant allow or deny decision (e.g., a file access filter or package name allowlist) for the lifetime of the cache entry, enabling unauthorized access or filter evasion (GitHub Advisory).

Indicators of compromise

  • Logs: Application logs showing unexpected authorization grants or allow-list matches for inputs that differ only in case from a known-bad pattern (e.g., uppercase filenames matching lowercase glob patterns).
  • Code/Dependency Audit: Presence of minimatch versions >= 11.0.6 and <= 11.0.9 in package.json or package-lock.json; identifiable via npm list minimatch or npm audit.
  • Runtime Behavior: Unexpected true results from minimatch() calls with default options on patterns previously matched case-sensitively; observable via application-level logging of glob match outcomes.
  • Network: Requests containing JSON bodies with a literal __proto__ key reaching endpoints that feed options into minimatch() calls (GitHub Advisory).

Mitigation and workarounds

Upgrade minimatch to version 11.0.10 or later, which fixes copyOptions() to use Object.create(null) and skip the __proto__ key, preventing cache slot collision. As an interim measure: audit all code paths that pass externally influenced objects as options to minimatch() and sanitize or reject any options object containing a __proto__ key before it reaches the call. Restarting affected Node.js processes clears the poisoned cache entry immediately. Review any allow/deny logic relying on glob matching for signs of unexpected case-insensitive matches (GitHub Advisory, Fix Commit).

Community reactions

The vulnerability was reported by researcher waydeshi and credited in the GitHub Security Advisory. The advisory was published by the package maintainer (isaacs) on November 30, 2026, with a patch released the same day. No significant broader media coverage or notable public researcher commentary beyond the advisory itself has been identified at this time (GitHub Advisory).

Additional resources

Linux Distribution fix status

Fix availability across major Linux distributions and their releases.

RHEL / CentOS

Affected

OpenShift

openshift4/ose-console

Affected

RHEL 8

Not Affected

RHEL 9

Not Affected

RHEL 10

Not Affected

Source: This report was generated using AI

Related JavaScript vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

GHSA-7cfw-w2rf-f3jcMEDIUM5.3
  • JavaScript logoJavaScript
  • fast-xml-parser
NoYesDec 01, 2026
CVE-2026-141514LOW3.7
  • JavaScript logoJavaScript
  • minimatch
NoYesDec 01, 2026
GHSA-844h-fxvq-x544LOWN/A
  • JavaScript logoJavaScript
  • tar
NoYesDec 02, 2026
GHSA-8282-h5g3-523jLOWN/A
  • JavaScript logoJavaScript
  • tar
NoYesDec 02, 2026
GHSA-p4w4-63wp-74wqLOWN/A
  • JavaScript logoJavaScript
  • tar
NoYesDec 02, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Additional Wiz resources

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management