minimatch: minimatch.escape() output matches more or less than the literal input
影響
| パッケージ | 影響する版 | 修正版 |
|---|---|---|
| npm:minimatch | >= 7.4.0, <= 11.0.7 | 11.0.8 |
minimatch.escape() is documented to "Escape all magic characters in a glob pattern, so that it will only ever match literal strings." (README, section minimatch.escape(pattern, options = {})). In minimatch 11.0.5 (latest release; main is at the v11.0.5 tag, commit ea0a4a6) four classes of input break that contract: 1. A leading ! is left unescaped. escape('!secret.txt') returns '!secret.txt', which is a negated pattern. It matches every path except secret.txt, for example passwd. This holds in…
重大な脆弱性・障害の速報を X で受け取る悪用・大規模な漏洩・障害を、対処法と一緒に。
@vulnpulse_app をフォロー2026/12/02 03:06、GitHub Advisory Databaseが「minimatch: minimatch.escape() output matches more or less than the literal input」を公開しました (種別: 脆弱性アドバイザリ)。重大度は「警告」(medium) です。関連する技術: JavaScript / Node.js。CVE: CVE-2026-140006。