| 1 | # Website build dependency mitigation |
| 2 | |
| 3 | The lockfile inventory does not expose dependencies compiled into another |
| 4 | package. Four runtime bundles in the installed web npm graph contain the |
| 5 | minimatch preprocessing of |
| 6 | [GHSA-g3hv-75wg-m249](https://github.com/advisories/GHSA-g3hv-75wg-m249): Next 16.4.6's |
| 7 | `dist/compiled/@vercel/nft/index.js`, cf 1.0.0-beta.12's |
| 8 | `dist/autoconfig-PfnbLuEO.mjs` and `dist/d1-MvAQMvvo.mjs`, and wrangler |
| 9 | 4.161.0's `wrangler-dist/cli.js`. The Next NFT bundle also contains the glob |
| 10 | walkers of [GHSA-3g3m-2fjr-6pw4](https://github.com/advisories/GHSA-3g3m-2fjr-6pw4). |
| 11 | Its original bytes match the |
| 12 | [tagged upstream bundle](https://github.com/vercel/next.js/blob/v16.4.6/packages/next/src/compiled/@vercel/nft/index.js). |
| 13 | |
| 14 | `scripts/patch-bundled-globs.mjs` applies the upstream |
| 15 | [preprocessing fix](https://github.com/isaacs/minimatch/commit/77a0f5c4b80bdc641c3c930a1d9edf5ad2db57f8) |
| 16 | to these four reviewed bundles. It caps generated patterns at `braceExpandMax` |
| 17 | (100,000 by default) and skips the quadratic deduplication pass for more than |
| 18 | 1,000 patterns. It also applies the |
| 19 | [walker fix](https://github.com/isaacs/node-glob/commit/4682e8c9babee1b385202ede36389634e12076d7) |
| 20 | to NFT, preserving private variable and callback bindings. A closed table |
| 21 | requires the exact package versions, lock identities and complete |
| 22 | preimage/postimage hashes. Every file is validated before any write. |
| 23 | Postinstall applies the backports and the dependency audit always verifies all |
| 24 | four bundles, even though npm's advisory report does not list the embedded |
| 25 | copies. Unknown versions, changed bytes and unapplied patches fail closed. |
| 26 | Package licences and notices remain unchanged. |
| 27 | |
| 28 | The backports cover those two advisories only. Other code embedded in these |
| 29 | bundles, including wrangler's and cf's own `ws` copies, is not covered by the |
| 30 | lockfile audit or by this patch and changes only when the bundling package is |
| 31 | upgraded. The literal-symbol inventory cannot prove absence of arbitrarily |
| 32 | renamed implementations. |
| 33 |