Skip to content

Commit 1afe79e

Browse files
fix: update glob to v10.5.0 to resolve CVE-2025-64756
1 parent 35eab2b commit 1afe79e

File tree

4 files changed

+32
-93
lines changed

4 files changed

+32
-93
lines changed

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,8 @@
3737
"typescript": "^5.8.3"
3838
},
3939
"resolutions": {
40-
"@rspress/[email protected]": "patch:@rspress/plugin-llms@npm%3A2.0.0-beta.34#./.yarn/patches/@rspress-plugin-llms-npm-2.0.0-beta.34-d374542281.patch"
40+
"@rspress/[email protected]": "patch:@rspress/plugin-llms@npm%3A2.0.0-beta.34#./.yarn/patches/@rspress-plugin-llms-npm-2.0.0-beta.34-d374542281.patch",
41+
"glob": "^10.5.0"
4142
},
4243
"packageManager": "[email protected]",
4344
"commitlint": {

packages/react-native-builder-bob/package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
"del": "^6.1.1",
5555
"escape-string-regexp": "^4.0.0",
5656
"fs-extra": "^10.1.0",
57-
"glob": "^8.0.3",
57+
"glob": "^10.5.0",
5858
"is-git-dirty": "^2.0.1",
5959
"json5": "^2.2.1",
6060
"kleur": "^4.1.4",
@@ -71,7 +71,6 @@
7171
"@types/dedent": "^0.7.0",
7272
"@types/del": "^4.0.0",
7373
"@types/fs-extra": "^9.0.13",
74-
"@types/glob": "^7.2.0",
7574
"@types/json5": "^2.2.0",
7675
"@types/mock-fs": "^4.13.4",
7776
"@types/prompts": "^2.0.14",

packages/react-native-builder-bob/src/utils/compile.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import path from 'path';
22
import fs from 'fs-extra';
33
import kleur from 'kleur';
44
import * as babel from '@babel/core';
5-
import glob from 'glob';
5+
import { globSync } from 'glob';
66
import type { Input, Variants } from '../types';
77
import { isCodegenSpec } from './isCodegenSpec';
88

@@ -39,7 +39,7 @@ export default async function compile({
3939
jsxRuntime = 'automatic',
4040
variants,
4141
}: Options) {
42-
const files = glob.sync('**/*', {
42+
const files = globSync('**/*', {
4343
cwd: source,
4444
absolute: true,
4545
nodir: true,

yarn.lock

Lines changed: 27 additions & 88 deletions
Original file line numberDiff line numberDiff line change
@@ -4292,16 +4292,6 @@ __metadata:
42924292
languageName: node
42934293
linkType: hard
42944294

4295-
"@types/glob@npm:^7.2.0":
4296-
version: 7.2.0
4297-
resolution: "@types/glob@npm:7.2.0"
4298-
dependencies:
4299-
"@types/minimatch": "npm:*"
4300-
"@types/node": "npm:*"
4301-
checksum: 10c0/a8eb5d5cb5c48fc58c7ca3ff1e1ddf771ee07ca5043da6e4871e6757b4472e2e73b4cfef2644c38983174a4bc728c73f8da02845c28a1212f98cabd293ecae98
4302-
languageName: node
4303-
linkType: hard
4304-
43054295
"@types/hast@npm:^3.0.0, @types/hast@npm:^3.0.4":
43064296
version: 3.0.4
43074297
resolution: "@types/hast@npm:3.0.4"
@@ -4368,13 +4358,6 @@ __metadata:
43684358
languageName: node
43694359
linkType: hard
43704360

4371-
"@types/minimatch@npm:*":
4372-
version: 5.1.2
4373-
resolution: "@types/minimatch@npm:5.1.2"
4374-
checksum: 10c0/83cf1c11748891b714e129de0585af4c55dd4c2cafb1f1d5233d79246e5e1e19d1b5ad9e8db449667b3ffa2b6c80125c429dbee1054e9efb45758dbc4e118562
4375-
languageName: node
4376-
linkType: hard
4377-
43784361
"@types/minimist@npm:^1.2.0":
43794362
version: 1.2.2
43804363
resolution: "@types/minimist@npm:1.2.2"
@@ -7879,13 +7862,6 @@ __metadata:
78797862
languageName: node
78807863
linkType: hard
78817864

7882-
"fs.realpath@npm:^1.0.0":
7883-
version: 1.0.0
7884-
resolution: "fs.realpath@npm:1.0.0"
7885-
checksum: 10c0/444cf1291d997165dfd4c0d58b69f0e4782bfd9149fd72faa4fe299e68e0e93d6db941660b37dd29153bf7186672ececa3b50b7e7249477b03fdf850f287c948
7886-
languageName: node
7887-
linkType: hard
7888-
78897865
"fsevents@npm:~2.3.2, fsevents@npm:~2.3.3":
78907866
version: 2.3.3
78917867
resolution: "fsevents@npm:2.3.3"
@@ -8131,45 +8107,19 @@ __metadata:
81318107
languageName: node
81328108
linkType: hard
81338109

8134-
"glob@npm:^10.2.2":
8135-
version: 10.3.4
8136-
resolution: "glob@npm:10.3.4"
8110+
"glob@npm:^10.5.0":
8111+
version: 10.5.0
8112+
resolution: "glob@npm:10.5.0"
81378113
dependencies:
81388114
foreground-child: "npm:^3.1.0"
8139-
jackspeak: "npm:^2.0.3"
8140-
minimatch: "npm:^9.0.1"
8141-
minipass: "npm:^5.0.0 || ^6.0.2 || ^7.0.0"
8142-
path-scurry: "npm:^1.10.1"
8115+
jackspeak: "npm:^3.1.2"
8116+
minimatch: "npm:^9.0.4"
8117+
minipass: "npm:^7.1.2"
8118+
package-json-from-dist: "npm:^1.0.0"
8119+
path-scurry: "npm:^1.11.1"
81438120
bin:
8144-
glob: dist/cjs/src/bin.js
8145-
checksum: 10c0/fe075f8109749cb0c264fd6eee8bf0cc8bb23a02305619b7a88bf1f79766218cc3ef66a3e8f3cd2e826006f047a3a8833c1694f167e978a6e37c34a8c053e48e
8146-
languageName: node
8147-
linkType: hard
8148-
8149-
"glob@npm:^7.1.3, glob@npm:^7.1.4, glob@npm:^7.2.0":
8150-
version: 7.2.3
8151-
resolution: "glob@npm:7.2.3"
8152-
dependencies:
8153-
fs.realpath: "npm:^1.0.0"
8154-
inflight: "npm:^1.0.4"
8155-
inherits: "npm:2"
8156-
minimatch: "npm:^3.1.1"
8157-
once: "npm:^1.3.0"
8158-
path-is-absolute: "npm:^1.0.0"
8159-
checksum: 10c0/65676153e2b0c9095100fe7f25a778bf45608eeb32c6048cf307f579649bcc30353277b3b898a3792602c65764e5baa4f643714dfbdfd64ea271d210c7a425fe
8160-
languageName: node
8161-
linkType: hard
8162-
8163-
"glob@npm:^8.0.3":
8164-
version: 8.1.0
8165-
resolution: "glob@npm:8.1.0"
8166-
dependencies:
8167-
fs.realpath: "npm:^1.0.0"
8168-
inflight: "npm:^1.0.4"
8169-
inherits: "npm:2"
8170-
minimatch: "npm:^5.0.1"
8171-
once: "npm:^1.3.0"
8172-
checksum: 10c0/cb0b5cab17a59c57299376abe5646c7070f8acb89df5595b492dba3bfb43d301a46c01e5695f01154e6553168207cb60d4eaf07d3be4bc3eb9b0457c5c561d0f
8121+
glob: dist/esm/bin.mjs
8122+
checksum: 10c0/100705eddbde6323e7b35e1d1ac28bcb58322095bd8e63a7d0bef1a2cdafe0d0f7922a981b2b48369a4f8c1b077be5c171804534c3509dfe950dde15fbe6d828
81738123
languageName: node
81748124
linkType: hard
81758125

@@ -8807,17 +8757,7 @@ __metadata:
88078757
languageName: node
88088758
linkType: hard
88098759

8810-
"inflight@npm:^1.0.4":
8811-
version: 1.0.6
8812-
resolution: "inflight@npm:1.0.6"
8813-
dependencies:
8814-
once: "npm:^1.3.0"
8815-
wrappy: "npm:1"
8816-
checksum: 10c0/7faca22584600a9dc5b9fca2cd5feb7135ac8c935449837b315676b4c90aa4f391ec4f42240178244b5a34e8bede1948627fda392ca3191522fc46b34e985ab2
8817-
languageName: node
8818-
linkType: hard
8819-
8820-
"inherits@npm:2, inherits@npm:2.0.4, inherits@npm:^2.0.3, inherits@npm:^2.0.4, inherits@npm:~2.0.3":
8760+
"inherits@npm:2.0.4, inherits@npm:^2.0.3, inherits@npm:^2.0.4, inherits@npm:~2.0.3":
88218761
version: 2.0.4
88228762
resolution: "inherits@npm:2.0.4"
88238763
checksum: 10c0/4e531f648b29039fb7426fb94075e6545faa1eb9fe83c29f0b6d9e7263aceb4289d2d4557db0d428188eeb449cc7c5e77b0a0b2c4e248ff2a65933a0dee49ef2
@@ -9234,16 +9174,16 @@ __metadata:
92349174
languageName: node
92359175
linkType: hard
92369176

9237-
"jackspeak@npm:^2.0.3":
9238-
version: 2.3.3
9239-
resolution: "jackspeak@npm:2.3.3"
9177+
"jackspeak@npm:^3.1.2":
9178+
version: 3.4.3
9179+
resolution: "jackspeak@npm:3.4.3"
92409180
dependencies:
92419181
"@isaacs/cliui": "npm:^8.0.2"
92429182
"@pkgjs/parseargs": "npm:^0.11.0"
92439183
dependenciesMeta:
92449184
"@pkgjs/parseargs":
92459185
optional: true
9246-
checksum: 10c0/787b0617dcc534ef793ba685b92347b1b3d634d888b2833a57b140e97eb1f628ec3e460ba1a68fd99bd148004442625db7519be186b38ff51f4951e7c99b52d7
9186+
checksum: 10c0/6acc10d139eaefdbe04d2f679e6191b3abf073f111edf10b1de5302c97ec93fffeb2fdd8681ed17f16268aa9dd4f8c588ed9d1d3bffbbfa6e8bf897cbb3149b9
92479187
languageName: node
92489188
linkType: hard
92499189

@@ -10891,7 +10831,7 @@ __metadata:
1089110831
languageName: node
1089210832
linkType: hard
1089310833

10894-
"minimatch@npm:^3.1.1, minimatch@npm:^3.1.2":
10834+
"minimatch@npm:^3.1.2":
1089510835
version: 3.1.2
1089610836
resolution: "minimatch@npm:3.1.2"
1089710837
dependencies:
@@ -10909,7 +10849,7 @@ __metadata:
1090910849
languageName: node
1091010850
linkType: hard
1091110851

10912-
"minimatch@npm:^9.0.0, minimatch@npm:^9.0.1, minimatch@npm:^9.0.3, minimatch@npm:^9.0.4, minimatch@npm:^9.0.5":
10852+
"minimatch@npm:^9.0.0, minimatch@npm:^9.0.3, minimatch@npm:^9.0.4, minimatch@npm:^9.0.5":
1091310853
version: 9.0.5
1091410854
resolution: "minimatch@npm:9.0.5"
1091510855
dependencies:
@@ -11467,7 +11407,7 @@ __metadata:
1146711407
languageName: node
1146811408
linkType: hard
1146911409

11470-
"once@npm:^1.3.0, once@npm:^1.3.1, once@npm:^1.4.0":
11410+
"once@npm:^1.3.1, once@npm:^1.4.0":
1147111411
version: 1.4.0
1147211412
resolution: "once@npm:1.4.0"
1147311413
dependencies:
@@ -11642,6 +11582,13 @@ __metadata:
1164211582
languageName: node
1164311583
linkType: hard
1164411584

11585+
"package-json-from-dist@npm:^1.0.0":
11586+
version: 1.0.1
11587+
resolution: "package-json-from-dist@npm:1.0.1"
11588+
checksum: 10c0/62ba2785eb655fec084a257af34dbe24292ab74516d6aecef97ef72d4897310bc6898f6c85b5cd22770eaa1ce60d55a0230e150fb6a966e3ecd6c511e23d164b
11589+
languageName: node
11590+
linkType: hard
11591+
1164511592
"pacote@npm:^21.0.0":
1164611593
version: 21.0.0
1164711594
resolution: "pacote@npm:21.0.0"
@@ -11797,13 +11744,6 @@ __metadata:
1179711744
languageName: node
1179811745
linkType: hard
1179911746

11800-
"path-is-absolute@npm:^1.0.0":
11801-
version: 1.0.1
11802-
resolution: "path-is-absolute@npm:1.0.1"
11803-
checksum: 10c0/127da03c82172a2a50099cddbf02510c1791fc2cc5f7713ddb613a56838db1e8168b121a920079d052e0936c23005562059756d653b7c544c53185efe53be078
11804-
languageName: node
11805-
linkType: hard
11806-
1180711747
"path-key@npm:^3.0.0, path-key@npm:^3.1.0":
1180811748
version: 3.1.1
1180911749
resolution: "path-key@npm:3.1.1"
@@ -11825,7 +11765,7 @@ __metadata:
1182511765
languageName: node
1182611766
linkType: hard
1182711767

11828-
"path-scurry@npm:^1.10.1":
11768+
"path-scurry@npm:^1.11.1":
1182911769
version: 1.11.1
1183011770
resolution: "path-scurry@npm:1.11.1"
1183111771
dependencies:
@@ -12214,7 +12154,6 @@ __metadata:
1221412154
"@types/dedent": "npm:^0.7.0"
1221512155
"@types/del": "npm:^4.0.0"
1221612156
"@types/fs-extra": "npm:^9.0.13"
12217-
"@types/glob": "npm:^7.2.0"
1221812157
"@types/json5": "npm:^2.2.0"
1221912158
"@types/mock-fs": "npm:^4.13.4"
1222012159
"@types/prompts": "npm:^2.0.14"
@@ -12229,7 +12168,7 @@ __metadata:
1222912168
del: "npm:^6.1.1"
1223012169
escape-string-regexp: "npm:^4.0.0"
1223112170
fs-extra: "npm:^10.1.0"
12232-
glob: "npm:^8.0.3"
12171+
glob: "npm:^10.5.0"
1223312172
is-git-dirty: "npm:^2.0.1"
1223412173
json5: "npm:^2.2.1"
1223512174
kleur: "npm:^4.1.4"

0 commit comments

Comments
 (0)