Skip to content

chore(docs): patch brace expansion resource exhaustion fixes - #19382

Merged
OrcaWin merged 1 commit into
mainfrom
OrcaWin/neil-docs-parser-dep-updates
Sep 8, 2026
Merged

OrcaWin merged 1 commit into
mainfrom
OrcaWin/neil-docs-parser-dep-updates

Conversation

@OrcaWin

@OrcaWin OrcaWin commented Sep 7, 2026 •

Copy link
Copy Markdown
Collaborator
Files Added Deleted Net
Test 0 0 0 0
Prod 1 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​8 $\color{#cf222e}{\Huge{\mathbf{−}}}$​8 0

Ready for review. Final validation evidence: Node 22 CI passes all 13 tests, types/lint and production generation of 119 pages. Audit 21 → 18; remaining pinned tooling advisories disclosed.

ELI5

Patch the documentation site's two brace-expansion dependency lines: 1.1.16 → 1.1.18 and 5.0.8 → 5.0.9. This prevents oversized brace patterns from exhausting memory or blocking the event loop in build/deployment glob tooling.

Why each bump is worthwhile and compatible

Change Reason / safety
1.1.16 → 1.1.18 Includes total-length limits and the subsequent intermediate-array bypass repair, GHSA-mh99-v99m-4gvg and GHSA-rgw5-rvv9-x895. Remains in minimatch 3.1.5's existing ^1.1.7 range.
5.0.8 → 5.0.9 Repairs the first mitigation's unbounded comma-alternative arrays and wasted padded-sequence work. Includes empty-alternative compatibility repairs; see upstream comparison. Remains in minimatch 10.2.6's ^5.0.8 range and supports the site's Node 22 runtime.

Only two lockfile resolutions and their consumer references change. No forced overrides, parent updates or deployment configuration changes. Ordinary patterns preserve their output; enormous patterns intentionally truncate at the library's documented resource limits. This protects tooling, not a claimed production HTTP exploit.

Testing

Local macOS arm64, Node 26.6, pnpm 10.24, ORCA_BACKGROUND_LAUNCH=1:

  • Frozen install, 13 package tests, lint (zero errors, four existing image warnings), typecheck and complete Next.js production build: passed.
  • Both installed parser lines: exact ordinary glob output, empty-alternative regression cases and bounded adversarial expansion passed. The reported 400-alternative/padded-sequence input completed in 93 ms / 60 ms, respectively, under a 128 MB heap and produced at most 4 million characters. These are smoke timings, not a cross-platform benchmark.
  • Actual minimatch 3.1.5 and 10.2.6 consumers both match expected docs paths and reject unrelated paths.
  • git diff --check: passed.
  • Node 22 Linux site CI passed; linked above. No production deployment performed.

Deferred dependencies

Ajv 8.6.3, smol-toml and path-to-regexp are pinned by Vercel consumers; the attempted compatible update correctly retained those versions. smol-toml also has a newer EOF-comment infinite-loop advisory fixed in 1.7.1, so 1.6.1 alone is not an adequate target. These require a coordinated Vercel parent update and deployment-tool validation. The explicit Undici 5 override likewise remains an unresolved parent-migration issue. This PR does not claim a clean docs audit or suppress those advisories.

Linked Issue

User-requested careful dependency review.

Visual Proof

N/A — build-tool lockfile patch only.

Review

Independent of all desktop, Electron, cloud, editor and mobile dependency PRs. No runtime source, remote-wire, SSH or folder-workspace change.

@OrcaWin

OrcaWin commented Sep 7, 2026

Copy link
Copy Markdown
Collaborator Author

Ready for review at 74cd5bed17.

Docs CI passed on the declared Node 22.23.2 runtime: frozen install, 13/13 tests, lint (zero errors, four existing warnings), typecheck and full production build with 119/119 static pages generated. No deployment ran.

Actual minimatch consumers and both brace-expansion lines also passed local normal-pattern, empty-alternative regression and bounded adversarial-input checks. Audit findings fell 21 → 18, removing three high findings. The remaining pinned Vercel/Undici/Ajv/TOML/route-parser findings are disclosed, not suppressed. Only the two reviewed brace-expansion resolutions change.

@OrcaWin

OrcaWin commented Sep 7, 2026

Copy link
Copy Markdown
Collaborator Author

Additional combined-candidate validation (local, macOS arm64): merged #19361, #19369, #19377, #19378, #19362, #19380 and #19382 into local commit a610eca2303d94ad02199240c0d3afc11bc1757f. Blocked Tiptap #19376 is excluded. This supplements each PR's own exact-commit tests; it does not replace pending CI.

  • Combined frozen-lockfile install, full pnpm tc and pnpm run build:electron-vite: passed.
  • Existing editor + renderer i18n suites: 1,581 passed, 2 skipped; 227 files passed, 1 skipped.
  • 11 parser/query/URI/selector/plist/XML/browser-target/ID assertions: passed.
  • 5 real React Trans rendering/interpolation/language-switch assertions: passed.
  • 6 real headless Chrome sanitizer assertions on the combined installed DOMPurify: passed.
  • Actual combined Electron 43.6.0 / Node 24.20.0: native SQLite read/write, patched PTY spawn/output/exit and filesystem watcher event all passed.

All commands used ORCA_BACKGROUND_LAUNCH=1; no visible app window was opened. The only merge conflict was adjacent package.json entries: resolve by retaining both "dompurify": "3.4.14" and "electron": "43.6.0". Lockfiles merged automatically and the combined frozen install verified consistency. Leaf PR branches remain independent and unchanged; nothing has been merged into main.

@pullfrog pullfrog Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ No new issues found.

Reviewed changes

  • brace-expansion transitive bump in docs/site/pnpm-lock.yaml — 1.1.16 → 1.1.18 (under [email protected], range ^1.1.7) and 5.0.8 → 5.0.9 (under [email protected], range ^5.0.8), pinning the resource-exhaustion fixes behind GHSA-mh99-v99m-4gvg and GHSA-rgw5-rvv9-x895.
  • Lockfile consistency — both version bumps are reflected in the packages and snapshots sections; no stale 1.1.16/5.0.8 references remain in the file.

The change is a brace-expansion transitive dependency bump with no direct dep in docs/site/package.json (the only related pin is the existing @vercel/python-analysis>minimatch: 10.2.6 override). Both versions resolve within their parents' existing semver ranges, and their integrity hashes match what is already present in the root and mobile lockfiles, so this adds no new supply-chain surface. Build-tooling only, no runtime or user-facing behavior — the author's reasoning and safety analysis are accurate.

Pullfrog  | View workflow run | Using DeepSeek Pro (free via Pullfrog for OSS) | 𝕏

@OrcaWin
OrcaWin merged commit a4e5106 into main Sep 8, 2026
46 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant