{"answers":{"affected":"2 open source packages ship an affected version, including minimatch. It affects 1 product.","exploited":"There is no known exploitation of CVE-2016-10540 in the wild and no public exploit code.","fix":"Upgrade minimatch to 3.0.2 or later.","what":"CVE-2016-10540 is a high-severity denial of service vulnerability in HackerOne minimatch node module, published on 31 May 2018. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2016-10540 and fix it if it is affected.\n\nWhat it is: CVE-2016-10540 is a high-severity denial of service vulnerability in HackerOne minimatch node module, published on 31 May 2018. 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-2016-10540 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- minimatch (npm): affected all versions; fixed in 3.0.2\n- minimatch (npm): affected all versions; fixed in 3.0.2\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-2016-10540/ (Markdown: https://insights.sbomify.com/CVE-2016-10540/index.md)","id":"CVE-2016-10540","markdown":"https://insights.sbomify.com/CVE-2016-10540/index.md","name":"CVE-2016-10540","record":{"aliases":["AZL-44502","CLSA-2026-1773620219","CLSA-2026-1774484506","CLSA-2026-1777250299","CVE-2016-1000023","DEBIAN-CVE-2016-10540","GHSA-hxm2-r34f-qmc5","UBUNTU-CVE-2016-10540","USN-4783-1"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["denial_of_service"],"network_reachable":"yes","non_default_config":false,"product_category":"JavaScript glob library","requires_auth":"none","summary":"Attackers can cause denial of service in applications using Minimatch by supplying malicious glob patterns that trigger excessive CPU consumption.","user_interaction":"not_required","vuln_class":"denial_of_service"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"hackerone","cpe":[{"product":"minimatch","vendor":"minimatch_project"}],"cvss":{"score":7.5,"severity":"high","source":"nvd","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","version":"3.0"},"cwes":[{"id":"CWE-20","name":"Improper Input Validation"},{"id":"CWE-400","name":"Uncontrolled Resource Consumption"}],"description":"Minimatch is a minimal matching utility that works by converting glob expressions into JavaScript `RegExp` objects. The primary function, `minimatch(path, pattern)` in Minimatch 3.0.1 and earlier is vulnerable to ReDoS in the `pattern` parameter.","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":"Regular Expression Denial of Service in minimatch","id":"CVE-2016-10540","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"npm","product":null,"products":[],"type":"denial_of_service","year":"2016"},"n_packages":2,"n_references":1,"next":{"headline":"Potential Command Injection in shell-quote","id":"CVE-2016-10541"},"packages":[{"ecosystem":"npm","fixed":["3.0.2"],"introduced":["0"],"last_affected":[],"package":"minimatch","purl":null,"source":"GHSA-hxm2-r34f-qmc5"},{"ecosystem":"npm","fixed":["3.0.2"],"introduced":["0"],"last_affected":[],"package":"minimatch","purl":"pkg:npm/minimatch","source":"GHSA-hxm2-r34f-qmc5"}],"prev":{"headline":"Regular Expression Denial of Service in negotiator","id":"CVE-2016-10539"},"products":["minimatch node module"],"published":"2018-05-31","related":[{"cvss_score":8.7,"headline":"minimatch has a ReDoS via repeated wildcards with non-matching literal in pattern","id":"CVE-2026-26996","kev_date_added":null,"published":"2026-02-20"},{"cvss_score":7.5,"headline":"minimatch has a ReDoS: matchOne() combinatorial backtracking via multiple non-adjacent GLOBSTAR segments","id":"CVE-2026-27903","kev_date_added":null,"published":"2026-02-26"},{"cvss_score":7.5,"headline":"minimatch ReDoS: nested *() extglobs generate catastrophically backtracking regular expressions","id":"CVE-2026-27904","kev_date_added":null,"published":"2026-02-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":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2024-09-16","vendors":["HackerOne"]},"summary":"Attackers can cause denial of service in applications using Minimatch by supplying malicious glob patterns that trigger excessive CPU consumption.","url":"https://insights.sbomify.com/CVE-2016-10540/"}