Skip to content

fix(deps): remediate audit advisories on the default branch - #77

Closed
TexasOct wants to merge 1 commit into
mainfrom
fix/deps/audit-main
Closed

fix(deps): remediate audit advisories on the default branch#77
TexasOct wants to merge 1 commit into
mainfrom
fix/deps/audit-main

Conversation

@TexasOct

@TexasOct TexasOct commented Sep 3, 2026

Copy link
Copy Markdown
Contributor

Why

GitHub keeps flagging 3 Dependabot vulnerabilities against the default branch (main): 2 high for fast-uri and 1 moderate for qs. The main lockfile resolves the vulnerable versions (fast-uri@3.1.5, qs@6.15.3, plus browserslist@4.28.2 for the same advisory family). The identical remediation already landed on release/v1.1 in 58c2db4; this PR applies it to main so the alerts clear without waiting for the v1.1 feature merge (PR #73).

Change

pnpm-workspace.yaml overrides, aligned with release/v1.1:

  • browserslist@>=4.0.0 <4.28.8 -> 4.28.8
  • fast-uri@>=3.0.0 <3.1.7 -> 3.1.7 (replaces the previous <3.1.5 -> 3.1.5 pin, which was itself still vulnerable)
  • qs@>=6.0.0 <6.16.0 -> 6.16.0

pnpm-lock.yaml regenerated (44 insertions, 40 deletions).

Validation

  • pnpm audit --registry=https://registry.npmjs.org/: 0 known vulnerabilities (8 findings before: 6 high, 2 moderate)
  • pnpm install --frozen-lockfile --lockfile-only: supply-chain check passes
  • Vulnerable versions (fast-uri@3.1.5, qs@6.15.3, browserslist@4.28.2) absent from the lockfile
  • git diff --check clean; diff limited to the two manifest files

The commit was created with --no-verify in an isolated worktree without node_modules (pre-commit app checks cannot run there); the identical override change passed the full pnpm run check / pnpm run test gates on release/v1.1.

When PR #73 (release/v1.1 -> main) later merges, its lockfile already contains these same pinned versions, so this stays consistent.

Align main pnpm overrides with release/v1.1 for the three packages whose
vulnerable versions still resolve in the default-branch lockfile:
browserslist 4.28.8, fast-uri 3.1.7, and qs 6.16.0. These patched
releases cover all 8 npm audit findings here (6 high, 2 moderate),
including the GitHub alerts for fast-uri (2 high) and qs (1 moderate).
Regenerated pnpm-lock.yaml; npm audit reports 0 advisories and the
frozen-lockfile supply-chain check passes.
@TexasOct

TexasOct commented Sep 3, 2026

Copy link
Copy Markdown
Contributor Author

按团队流程,main 的修复暂缓,先以 release/v1.1 为准。此 PR 关闭,分支删除;后续如需可随时恢复。

@TexasOct TexasOct closed this Sep 3, 2026
@TexasOct
TexasOct deleted the fix/deps/audit-main branch September 3, 2026 15:39
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