Skip to content

[Audit] No dependency vulnerability scanning for the contract's Cargo dependency tree #1280

Description

@K1NGD4VID

Filed from the second-wave repository audit (issue 78/100). See the audit summary for full category context.

  • Location: .github/workflows/security.yml:16-45 (dependency-check job); .github/dependabot.yml:20-31
  • Problem: The dependency-check job only runs npm audit against the three npm scopes; there is no cargo audit/cargo deny step for contracts/Cargo.lock (soroban-sdk and transitive crates), despite dependabot.yml already acknowledging a dedicated Cargo ecosystem exists. Separately, all three npm audit invocations use --audit-level=critical, silently ignoring high-severity findings in production dependencies.
  • Evidence: No Cargo-ecosystem scan in security.yml; npm audit calls hardcode critical as the failure threshold.
  • Suggested implementation: Add a cargo audit (or cargo deny check advisories) step for the contracts workspace, and lower the npm audit failure threshold to high.
  • Acceptance criteria: CI fails on a known high-or-above npm vulnerability and on any Cargo advisory match for the contracts workspace.
  • Difficulty: S
  • Expected impact: Closes a real supply-chain scanning gap for both the on-chain contract and the off-chain services.

Metadata

Metadata

Assignees

Labels

Stellar WaveIssues in the Stellar wave programcontractsSmart contract related tasksinfraCI/CD and infrastructurerefactorRefactoring existing codesecond-wave-auditFiled from the second-wave repo audit (100 issues)

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions