Skip to content

fix(deps): clear the audit findings instead of ignoring them - #171

Merged
rennf93 merged 1 commit into
masterfrom
fix/audit-findings
Oct 20, 2026
Merged

rennf93 merged 1 commit into
masterfrom
fix/audit-findings

Conversation

@rennf93

@rennf93 rennf93 commented Oct 20, 2026

Copy link
Copy Markdown
Member

Closes #170

pnpm audit --audit-level=low now passes with no ignore list: No known vulnerabilities found.

Changes:

  1. pnpm-workspace.yaml: the auditConfig.ignoreGhsas block (37 GHSAs) is gone. Without it master audits to 9 advisories; the other 28 no longer match the lock.
  2. package.json: vite ^7.3.7 as a root dev dependency. vitest 5 takes vite as a peer and pnpm auto-installed 7.3.1; an override only rewrites the peer range (unmet peer vite@^7.3.7: found 7.3.1), a root dependency resolves it. The lock now has vite 7.3.7 only.
  3. pnpm-workspace.yaml: override esbuild@<0.28.1: ^0.28.2. tsup 8.5.1 asks for ^0.27.0; tsup 9 has ^0.28.2 but needs Node 22.18+, and CI builds on 18 and 20. esbuild 0.28's only breaking change is the install-time binary integrity check.

Behavior change in the build output (not in the source): the dist is built by esbuild 0.28.2 instead of 0.27.4. Two things change in packages/core/dist/index.cjs: TypeScript parameter properties get class field declarations (define semantics, esbuild 0.27.5 #4421, the same as tsc for ES2022), and the __esm helper rethrows a failed module init (#4461). Chunk names change with the content.

Verified locally (Node 24, pnpm 10.25.0, Redis 7 on 6379):

  • pnpm build, pnpm lint: exit 0
  • pnpm test: core 2284, express 113, nestjs 94, fastify 87, hono 85, all passed; conformance gates pipeline 35/0, events 37/0, pattern_safety 29/0, redis_interop 5/0 (passed/failed)
  • pnpm test:coverage: 100 / 97.35 / 100 / 100 (statements / branches / functions / lines), thresholds 100 / 96 / 99 / 100

The 12 open Dependabot PRs for docs/ fail only on dependency-audit, and that job audits the pnpm workspace, not docs/. They get their own PR.

- drop auditConfig.ignoreGhsas (37 GHSAs, 28 no longer match the lock)
- vite ^7.3.7 at the workspace root, so vitest 5 resolves its peer to a patched release
- override esbuild to ^0.28.2 for tsup 8.5.1 (GHSA-g7r4-m6w7-qqqr)
@rennf93 rennf93 added dependencies package.json or pnpm-lock.yaml security Security-related issue (use private reporting first!) labels Oct 20, 2026
@github-actions github-actions Bot added the build Makefile / Docker / turbo / tsup / vitest / tsconfig label Oct 20, 2026
@rennf93
rennf93 merged commit 383270f into master Oct 20, 2026
19 checks passed
@rennf93
rennf93 deleted the fix/audit-findings branch October 21, 2026 02:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

build Makefile / Docker / turbo / tsup / vitest / tsconfig dependencies package.json or pnpm-lock.yaml security Security-related issue (use private reporting first!)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

dependency-audit fails on vite 7.3.1, and 37 advisories are ignored instead of fixed

1 participant