Commit 5aa16f8
fix: update glob to v10.5.0 to resolve CVE-2025-64756 (#910)
### Summary
This PR updates the `glob` package to version `^10.5.0` to resolve the
command injection vulnerability
[CVE-2025-64756](https://nvd.nist.gov/vuln/detail/CVE-2025-64756).
Changes included:
- Updated `glob` dependency in `packages/react-native-builder-bob` from
`^8.0.3` to `^10.5.0`.
- Refactored `src/utils/compile.ts` to use the new `globSync` named
export from `glob` v10 API.
- Removed `@types/glob` from `devDependencies` as `glob` v10 includes
built-in type definitions, and the old types caused conflicts.
- Added a `resolution` in the root `package.json` to force
`glob@^10.5.0` across the monorepo, ensuring no vulnerable versions
remain in the lockfile.
### Test plan
1. **Automated Tests**: Ran `yarn test` in
`packages/react-native-builder-bob`. All tests passed.
```bash
yarn workspace react-native-builder-bob test
```
2. **Type Check**: Ran `yarn typecheck` to verify that removing
`@types/glob` and using built-in types works correctly.
```bash
yarn typecheck
```
3. **Lint Check**: Ran `yarn lint` to ensure no linting errors.
```bash
yarn lint
```
<!-- CURSOR_SUMMARY -->
---
> [!NOTE]
> Updates `glob` to ^10.5.0, refactors to use `globSync`, and removes
`@types/glob` now that types are bundled.
>
> - **Dependencies**
> - Bump `glob` in `packages/react-native-builder-bob/package.json` from
`^8.0.3` to `^10.5.0`.
> - Remove `@types/glob` from `devDependencies` (types included in
`glob` v10).
> - **Build utils**
> - Refactor `packages/react-native-builder-bob/src/utils/compile.ts` to
import `{ globSync }` from `glob` and replace `glob.sync` call.
> - **Lockfile**
> - Update `yarn.lock` to reflect `[email protected]` and updated transitive
dependencies.
>
> <sup>Written by [Cursor
Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit
1f1c339. This will update automatically
on new commits. Configure
[here](https://cursor.com/dashboard?tab=bugbot).</sup>
<!-- /CURSOR_SUMMARY -->
---------
Co-authored-by: Ram <[email protected]>1 parent 35eab2b commit 5aa16f8
File tree
3 files changed
+27
-51
lines changed- packages/react-native-builder-bob
- src/utils
3 files changed
+27
-51
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
57 | | - | |
| 57 | + | |
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
| |||
71 | 71 | | |
72 | 72 | | |
73 | 73 | | |
74 | | - | |
75 | 74 | | |
76 | 75 | | |
77 | 76 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
42 | | - | |
| 42 | + | |
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4292 | 4292 | | |
4293 | 4293 | | |
4294 | 4294 | | |
4295 | | - | |
4296 | | - | |
4297 | | - | |
4298 | | - | |
4299 | | - | |
4300 | | - | |
4301 | | - | |
4302 | | - | |
4303 | | - | |
4304 | | - | |
4305 | 4295 | | |
4306 | 4296 | | |
4307 | 4297 | | |
| |||
4368 | 4358 | | |
4369 | 4359 | | |
4370 | 4360 | | |
4371 | | - | |
4372 | | - | |
4373 | | - | |
4374 | | - | |
4375 | | - | |
4376 | | - | |
4377 | | - | |
4378 | 4361 | | |
4379 | 4362 | | |
4380 | 4363 | | |
| |||
8131 | 8114 | | |
8132 | 8115 | | |
8133 | 8116 | | |
8134 | | - | |
8135 | | - | |
8136 | | - | |
| 8117 | + | |
| 8118 | + | |
| 8119 | + | |
8137 | 8120 | | |
8138 | 8121 | | |
8139 | | - | |
8140 | | - | |
8141 | | - | |
8142 | | - | |
| 8122 | + | |
| 8123 | + | |
| 8124 | + | |
| 8125 | + | |
| 8126 | + | |
8143 | 8127 | | |
8144 | | - | |
8145 | | - | |
| 8128 | + | |
| 8129 | + | |
8146 | 8130 | | |
8147 | 8131 | | |
8148 | 8132 | | |
| |||
8160 | 8144 | | |
8161 | 8145 | | |
8162 | 8146 | | |
8163 | | - | |
8164 | | - | |
8165 | | - | |
8166 | | - | |
8167 | | - | |
8168 | | - | |
8169 | | - | |
8170 | | - | |
8171 | | - | |
8172 | | - | |
8173 | | - | |
8174 | | - | |
8175 | | - | |
8176 | 8147 | | |
8177 | 8148 | | |
8178 | 8149 | | |
| |||
9234 | 9205 | | |
9235 | 9206 | | |
9236 | 9207 | | |
9237 | | - | |
9238 | | - | |
9239 | | - | |
| 9208 | + | |
| 9209 | + | |
| 9210 | + | |
9240 | 9211 | | |
9241 | 9212 | | |
9242 | 9213 | | |
9243 | 9214 | | |
9244 | 9215 | | |
9245 | 9216 | | |
9246 | | - | |
| 9217 | + | |
9247 | 9218 | | |
9248 | 9219 | | |
9249 | 9220 | | |
| |||
10909 | 10880 | | |
10910 | 10881 | | |
10911 | 10882 | | |
10912 | | - | |
| 10883 | + | |
10913 | 10884 | | |
10914 | 10885 | | |
10915 | 10886 | | |
| |||
11642 | 11613 | | |
11643 | 11614 | | |
11644 | 11615 | | |
| 11616 | + | |
| 11617 | + | |
| 11618 | + | |
| 11619 | + | |
| 11620 | + | |
| 11621 | + | |
| 11622 | + | |
11645 | 11623 | | |
11646 | 11624 | | |
11647 | 11625 | | |
| |||
11825 | 11803 | | |
11826 | 11804 | | |
11827 | 11805 | | |
11828 | | - | |
| 11806 | + | |
11829 | 11807 | | |
11830 | 11808 | | |
11831 | 11809 | | |
| |||
12214 | 12192 | | |
12215 | 12193 | | |
12216 | 12194 | | |
12217 | | - | |
12218 | 12195 | | |
12219 | 12196 | | |
12220 | 12197 | | |
| |||
12229 | 12206 | | |
12230 | 12207 | | |
12231 | 12208 | | |
12232 | | - | |
| 12209 | + | |
12233 | 12210 | | |
12234 | 12211 | | |
12235 | 12212 | | |
| |||
0 commit comments