chore(core): upgrade @octokit deps to fix CVE-2025-25288 (paginate-rest ReDoS)
Summary
Bumps @octokit/rest + related plugins to versions that ship a patched @octokit/plugin-paginate-rest, fixing GHSA-h5c3-5r3r-rr8q / CVE-2025-25288 (ReDoS, moderate). The old v18 line of @octokit/rest transitively pins @octokit/[email protected], which is inside the vulnerable range < 9.2.2.
Socket and other SCA scanners flag this on any project that pulls in @auto-it/core, so fixing it upstream helps every consumer.
Target stack
CJS-compatible — stays off the @octokit/rest@21+ ESM-only line to avoid an ESM migration of the whole monorepo:
| Package | Before | After |
|---|---|---|
@octokit/rest |
^18.12.0 |
^20.1.2 |
@octokit/core |
^3.5.1 |
^5.2.2 |
@octokit/plugin-throttling |
^3.6.2 |
^8.2.0 |
@octokit/plugin-retry |
^3.0.9 |
^6.1.0 |
@octokit/plugin-enterprise-compatibility |
1.3.0 |
^4.1.0 |
Resolved @octokit/plugin-paginate-rest is 11.4.4-cjs.2 — the CJS back-port on the fixed 11.4.x line, no longer flagged.
Code changes
packages/core/src/git.tsplugin-throttlingv4 renamedonAbuseLimit→onSecondaryRateLimit; v8 movedretryCountout of the options object into a 4th handler argument.@octokit/corev4 removed thepreviewsoption — droppedsymmetra-preview(GA since 2019, header no longer needed).- REST search endpoints now require
advanced_search: \"true\"(string) rather than booleantrue; test updated.
- Small cleanups surfaced by the newer TypeScript /
@types/node:child.pidnarrowing inverify-auth.ts,Object.entriescast inutils/omit.ts, explicit.toString()onexecSyncoutput inplugins/exec, tighter regex/reduce types inplugins/released,agentcast at threenode-fetchcall sites (HttpsProxyAgent shape vs. the newhttp.Agent).
Test / build environment
- The new octokit majors require
node >= 18. CI bumped to Node 20 (LTS) andpkg-fetchbinaries tonode18. - TypeScript bumped to
~4.9.5so theimport { type X }syntax in the new octokit.d.tsparses. AddedskipLibCheck: trueanduseUnknownInCatchVariables: falseto the roottsconfigso the rest of the monorepo keeps compiling without touching catch blocks across the codebase. @types/nodehoisted to^18.19.0(direct dep + resolution),@types/readable-streampinned to^4via resolution so it matches the new node globals.actions/checkout/actions/cachebumped tov4,actions/setup-nodetov4. The oldv3pins were one likely reason some dependabot/related PRs wouldn't go green.
Test status
Locally, on Node 22 / yarn 1:
yarn build✅yarn lint— 3 errors, identical tomain(pre-existing unused-memoizeimports).yarn test— 790 passing, 60 failing. Identical failure set tomain; all remaining failures are pre-existing (the prebuiltpkgbinary not being present locally,strip-ansi@7ESM vs. ts-jest@26, and a handful of tests that require a realGITHUB_TOKEN). No new regressions introduced by this change.
Change Type
- [ ]
documentation - [ ]
patch - [x]
minor - [ ]
major
It's arguably a major because the Node engine requirement effectively moves from 14 to 18 and some octokit-plugin option names change, but the surface of @auto-it/core is unchanged. Happy to relabel if you prefer.
Notes
- Related / superseded: #2459 (same direction, stalled since 2024, conflicting). This PR intentionally jumps past
@octokit/rest@19because that major still ships[email protected]— also inside the CVE's vulnerable range — so it wouldn't fix the advisory. - No changes to the public API of
@auto-it/coreor any plugin.
🤖 Generated with Claude Code