Skip to content

chore(deps): bump vitest to 4.1.11 and repin nanoid to 3.3.19 - #26

Merged
XiaoHai67890 merged 1 commit into
mainfrom
fix/deps-audit
Sep 17, 2026
Merged

XiaoHai67890 merged 1 commit into
mainfrom
fix/deps-audit

Conversation

@everest-an

Copy link
Copy Markdown
Contributor

Change

Fix the pnpm audit --audit-level=moderate gate, which currently fails on main's dependency set. Two advisories had their patched versions move after the previous pin was set:

Severity Package Was Now
high nanoid (GHSA-2v37-7h3g-55p8) 3.3.17 override 3.3.19
moderate vitest / @vitest/mocker (GHSA-82fw-gwwq-j7x9) ^4.1.10 ^4.1.11
  • The nanoid advisory's first patched version was revised upward from 3.3.17 to 3.3.18, so the existing override no longer satisfies the gate. 3.3.19 stays inside postcss's ^3.3.16 range.
  • The vitest advisory was published 2026-09-08 with first patched 4.1.11. Five devDependency ranges bumped.

Both are devDependency-only paths reached through vite/postcss. There is no runtime surface in this repository.

Note on timing

This failure is not caused by #25. pnpm audit queries the advisory database live, so any run after 2026-09-08 fails regardless of branch — main is equally affected if its CI workflow is re-run. #25 changed no dependencies.

Verification

pnpm audit --audit-level=moderate   ->  No known vulnerabilities found
pnpm test:ts                        ->  52 tests pass (core 15, reference-engine 18,
                                        awareness-adapter 12, examples 7) on vitest 4.1.11
node scripts/check-vectors.mjs      ->  PASS — 5 transitions, 12 rejection selectors
node scripts/build-test-vectors-v2.mjs --check
                                    ->  PASS — v2.json reproduces byte-for-byte
node scripts/check-erc-assets.mjs   ->  in sync + 3 CC0 assets

Boundaries

No protocol hash algorithm, state-machine behaviour, golden vector, ERC draft text, or erc/assets/ content changes. Frozen G4 evidence is untouched. pnpm-lock.yaml and pnpm-workspace.yaml change only in the two pinned versions above.

The Solidity suite (contracts/) was not run locally — Foundry is not installed in this environment; it is covered by the Solidity and invariants CI job.

The audit gate fails on two advisories whose patched versions moved after the
previous pin was set:

- GHSA-2v37-7h3g-55p8 (nanoid, high): the first patched version was revised
  upward from 3.3.17 to 3.3.18, so the 3.3.17 override no longer satisfies the
  gate. Repin to 3.3.19, still inside postcss's `^3.3.16` range.
- GHSA-82fw-gwwq-j7x9 (vitest / @vitest/mocker, moderate): published
  2026-09-08, first patched 4.1.11. Raise the five devDependency ranges from
  `^4.1.10` to `^4.1.11`.

Both are devDependency-only paths reached through vite/postcss; there is no
runtime surface in this repository. No protocol, vector, or conformance
behaviour changes.

Verified: `pnpm audit --audit-level=moderate` reports no known vulnerabilities;
`pnpm test:ts`, `check:vectors`, `check:reproducible` and `check:erc-assets`
pass.
@XiaoHai67890
XiaoHai67890 merged commit dba2afd into main Sep 17, 2026
6 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.

2 participants