Skip to content

chore(deps): remediate docs runtime dependency advisories - #206

Merged
truthixify merged 1 commit into
wraith-protocol:developfrom
Pythagoras-x:chore/remediate-runtime-dependency-advisories
Oct 19, 2026
Merged

truthixify merged 1 commit into
wraith-protocol:developfrom
Pythagoras-x:chore/remediate-runtime-dependency-advisories

Conversation

@Pythagoras-x

Copy link
Copy Markdown
Contributor

Closes #196

What

Remediate the 9 high and 9 moderate advisories reported by the production audit on the Stellar and Solana SDK dependency paths, and add an enforced policy for new high findings.

Changes

  • Direct deps upgraded (package.json):
    • @solana/web3.js ^1.95.0 → ^1.99.0
    • @stellar/stellar-sdk ^13.1.0 → ^13.3.0
  • pnpm.overrides to lift transitive deps to their patched releases:
    • axios@<1.20.0 → >=1.20.0 (clears 7 high + 5 moderate, Stellar path)
    • toml@<4.2.0 → ^4.2.0 (clears 2 high, Stellar path)
    • uuid@<11.1.1 → ^11.1.1 (clears 1 moderate, Solana path)
  • pnpm.auditConfig.ignoreGhsas records the three remaining stream-json moderates. Patched releases (>=3.6.0) are ESM-only and no longer expose the stream-json/streamers/StreamValues and stream-json/utils/Verifier subpaths that jayson@4 require()s, so there is no compatible fix; the vulnerable code paths (filters, JSONC, Assembler) are unused by the Solana RPC client.
  • Lockfile refreshed (pnpm-lock.yaml).
  • New policy + gate:
    • DEPENDENCY-POLICY.md — rules for high/critical (block merge) and for allowlisting unfixable moderates.
    • .github/workflows/dependency-audit.yml — runs pnpm audit --prod --audit-level high on PRs, on push to develop/main, and weekly against the live advisory DB.

Audit result

Before After
High 9 0
Moderate 9 0 (3 ignored, documented)

Verification

All snippet and playground suites pass:

  • pnpm test (snippets, nav coverage, contract registry, compatibility matrix, redirects/anchors)
  • pnpm run check:api-examples
  • pnpm run check:snippets-extended (Rust / Python / shell / config, incl. the offline Python quickstart)
  • pnpm run check:playground-fixtures + pnpm run test:playground
  • pnpm run check:stellar-testnet
  • pnpm install --frozen-lockfile

Also verified the overrides resolve at runtime: @stellar/stellar-sdk loads toml@4.3.0, and jayson/@solana/web3.js load uuid@11.1.1.

The production audit reported 9 high and 9 moderate advisories, all
reachable through the Stellar and Solana SDK paths used by the executable
docs tooling.

- Bump @solana/web3.js to ^1.99.0 and @stellar/stellar-sdk to ^13.3.0.
- Add pnpm overrides to pull axios (>=1.20.0), toml (^4.2.0) and uuid
  (^11.1.1) up to their patched releases. This clears all 9 high findings
  and 6 of the 9 moderate ones.
- Record the three stream-json advisories in pnpm.auditConfig.ignoreGhsas:
  patched releases are ESM-only and drop the subpaths jayson@4 requires,
  and the vulnerable code paths (filters, JSONC, Assembler) are unused.
- Add the Dependency audit workflow and DEPENDENCY-POLICY.md so a new high
  or critical advisory on a production dependency path fails the build.
@drips-wave

drips-wave Bot commented Oct 19, 2026

Copy link
Copy Markdown

@Pythagoras-x Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@truthixify truthixify left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed exact head 4d3a53b. The production dependency audit is clean at the enforced severity, the dependency policy and workflow are scoped appropriately, the complete docs test suite passes, and all required checks are green.

@truthixify
truthixify merged commit 7f0d637 into wraith-protocol:develop Oct 19, 2026
8 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.

[Wave 10] Remediate docs runtime dependency advisories

2 participants