Skip to content

Commit 8bf5653

Browse files
zawataclaude
andcommitted
Fix picomatch method injection vulnerability (GHSA-3v7f-55p6-f55p)
Add yarn resolution to force picomatch ^2.3.2, fixing Method Injection in POSIX Character Classes that causes incorrect glob matching. Transitive dep via mocha -> chokidar -> anymatch/readdirp. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 91bc7fe commit 8bf5653

2 files changed

Lines changed: 6 additions & 5 deletions

File tree

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,8 @@
4040
"mocha": "^10.6.0"
4141
},
4242
"resolutions": {
43-
"serialize-javascript": "^7.0.3"
43+
"serialize-javascript": "^7.0.3",
44+
"picomatch": "^2.3.2"
4445
},
4546
"keywords": [
4647
"FileWatcher",

yarn.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -795,10 +795,10 @@ path-key@^3.1.0:
795795
resolved "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz#581f6ade658cbba65a0d3380de7753295054f375"
796796
integrity sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==
797797

798-
picomatch@^2.0.4, picomatch@^2.2.1:
799-
version "2.3.1"
800-
resolved "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz#3ba3833733646d9d3e4995946c1365a67fb07a42"
801-
integrity sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==
798+
picomatch@^2.0.4, picomatch@^2.2.1, picomatch@^2.3.2:
799+
version "2.3.2"
800+
resolved "https://registry.yarnpkg.com/picomatch/-/picomatch-2.3.2.tgz#5a942915e26b372dc0f0e6753149a16e6b1c5601"
801+
integrity sha512-V7+vQEJ06Z+c5tSye8S+nHUfI51xoXIXjHQ99cQtKUkQqqO1kO/KCJUfZXuB47h/YBlDhah2H3hdUGXn8ie0oA==
802802

803803
prelude-ls@^1.2.1:
804804
version "1.2.1"

0 commit comments

Comments
 (0)