Skip to content

fix(deps): resolve open Dependabot alerts in the lockfile - #411

Merged
glebedel merged 1 commit into
mainfrom
s2d2/audit-dependabot-alerts
Nov 23, 2026
Merged

glebedel merged 1 commit into
mainfrom
s2d2/audit-dependabot-alerts

Conversation

@glebedel

@glebedel glebedel commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor

Clears the open Dependabot alerts on main by moving the lockfile to patched versions. Every fixed version is older than the repo's 7 day minimumReleaseAge, so the supply-chain gate still holds.

Published consumers of @stackone/ai resolve their own dependency versions, so this changes what CI, the tests, the examples and the mock MCP server run against, not what users install.

What changed

  • zod dev catalog: ^4.3.0 to ^4.6.7 (direct, GHSA-mrhx-c7xc-m3w5).
  • Re-resolved within existing ranges: proxy-addr, body-parser, fast-uri, qs, ajv, path-to-regexp, undici, js-yaml, smol-toml, source-map-js, picomatch.
  • vite, postcss, rollup and nanoid sit under peer-resolved packages (vite under vitest, rollup under unplugin), so pnpm update leaves them alone. Four overrides in pnpm-workspace.yaml, each scoped to the vulnerable range only, move them. Each can be dropped once the parent packages require the fix.
Package main this PR
proxy-addr (critical) 2.0.7 2.0.8
fast-uri 3.1.0 3.1.9
body-parser 2.2.1 2.4.0
path-to-regexp 8.3.0 8.4.2
qs 6.14.0 6.17.1
ajv 8.17.1 8.20.0
zod 4.3.5 4.6.7
undici 7.29.0 7.30.2
vite 7.2.6 7.3.7
rollup 4.53.3 4.67.5
postcss 8.5.6 8.5.32
nanoid 3.3.11 3.3.20
js-yaml 4.1.1 4.3.2
smol-toml 1.5.2 1.9.1
source-map-js 1.2.1 1.2.2
picomatch 2.3.1 / 4.0.3 2.3.2 / 4.0.7

Proof

A script checks every open alert's vulnerable range (from the Dependabot API) against every version of that package in the lockfile:

main:     critical 1/1, high 28/28, medium 23/23, low 9/9 still vulnerable
this PR:  critical 0/1, high 0/28,  medium 0/23,  low 1/9 still vulnerable
STILL 46 low esbuild >= 0.27.3 < 0.28.1 -> 0.27.7

The one left is low severity, affects only esbuild's dev server (not used here), and is held at 0.27 by tsx@4.21's ~0.27.0 range. Fixing it means a tsx minor bump, which is out of scope here.

Local run on Node 24.22.3 and pnpm 11.17.0 at the PR head:

Check Result
pnpm install --frozen-lockfile clean
pnpm peers check no peer dependency issues
pnpm lint (oxfmt, oxlint type-aware, knip) clean (knip's existing @typescript/native-preview hint only)
pnpm build built, publint no issues
pnpm test 47 files, 1324 passed, 4 skipped, no type errors

No runtime change to the library, so there is no demo beyond the checks above.

Gates

Gate Result
/forge:forge slop meter: no source files, 0 findings; config diff reviewed by hand
Security scan with Aikido Aikido PR check runs on this head; alert check script above
Codex security pass not run: no source code changed (lockfile and pnpm config only)
/security-review not run: no source code changed
/code-review self-review of the diff; frozen install and peers check clean

May conflict in pnpm-lock.yaml with #399. Whichever merges second needs pnpm install --lockfile-only after taking either side.

Post-merge validation

After merge, the Dependabot alert list should show 0 critical, 0 high and 0 medium open, with esbuild #46 as the only one left. CI on main should stay green.

Requested by guillaume@stackone.com in Slack (repo audit thread)

🤖 Generated with Claude Code


Summary by cubic

Clears open Dependabot alerts on main by moving the lockfile to patched versions. Published consumers of @stackone/ai resolve their own dependency versions, so this changes only what CI, tests, and the examples run against — not what users install.

Scope

  • Bumps the dev catalog zod to ^4.6.7 and re-resolves transitive deps (proxy-addr, body-parser, fast-uri, qs, ajv, path-to-regexp, undici, js-yaml, smol-toml, source-map-js, picomatch) within their existing ranges.
  • Adds overrides scoped to vulnerable ranges for vite, postcss, rollup, and nanoid, which sit under peer-resolved packages. Each can be dropped once the parent package requires the fix.
  • Every fixed version is older than the repo's 7-day minimumReleaseAge.

Validation

  • Frozen install, peers check, lint, build, and all 1324 tests pass.
  • Script check of every open alert's vulnerable range: 0 critical/high/medium remain. The one low (esbuild, dev server only) is held at 0.27 by tsx's ~0.27.0 range and is out of scope here.
  • May conflict in pnpm-lock.yaml with chore(deps): bump the minor-and-patch group with 7 updates, adapted #399; the second merge needs pnpm install --lockfile-only after taking either side.

Written for commit e6659c7. Summary will update on new commits.

View guided diff Turn on auto-fix

- Bump the dev catalog zod to ^4.6.7 (GHSA-mrhx-c7xc-m3w5)
- Re-resolve transitive runtime and dev dependencies within their
  existing ranges: proxy-addr, body-parser, fast-uri, qs, ajv,
  path-to-regexp, undici, js-yaml, smol-toml, source-map-js, picomatch
- Add pnpm overrides scoped to the vulnerable ranges for vite, postcss,
  rollup and nanoid, which sit under peer-resolved packages and are not
  re-resolved by pnpm update

Every fixed version is older than the 7 day minimumReleaseAge.
Clears the critical alert, all 28 high, all 23 medium and 8 of 9 low.
The remaining low (esbuild 0.27.7, dev server only) is pinned by tsx.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: Guillaume Lebedel <10488548+glebedel@users.noreply.github.com>
@glebedel
glebedel requested a review from a team as a code owner November 13, 2026 11:51
@glebedel glebedel self-assigned this Nov 13, 2026
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 13, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-13T11:52:56.309825Z e6659c7 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@pkg-pr-new

pkg-pr-new Bot commented Nov 13, 2026

Copy link
Copy Markdown

Open in StackBlitz

npm i https://pkg.pr.new/StackOneHQ/stackone-ai-node/@stackone/ai@411

commit: e6659c7

@glebedel

Copy link
Copy Markdown
Contributor Author

@StuBehan a nudge on this one when you have a moment. Clears the open Dependabot alerts on main by moving the lockfile to patched versions.

Why it should be a quick review: +601 -767 across 2 files, CI green on the current head, forge and /code-review already run, no open review threads. It only needs an approving review to merge.

@glebedel
glebedel merged commit ec0493d into main Nov 23, 2026
19 checks passed
@glebedel
glebedel deleted the s2d2/audit-dependabot-alerts branch November 23, 2026 09:35
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.

2 participants