← 漏洞与更新

中危漏洞公告JavaScript / Node.js

minimatch: minimatch.escape() output matches more or less than the literal input

受影响

软件包受影响版本修复版本
npm:minimatch>= 7.4.0, <= 11.0.711.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…

在 GitHub Advisory Database 阅读

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。