Skip to content

Security: ValidatorsDAO/solana-stream

Security

SECURITY.md

Security policy

Reporting a vulnerability

Report suspected vulnerabilities privately through GitHub private vulnerability reporting. If that form is not available, contact ERPC support from the ERPC Web Dashboard and ask for a private channel. Do not open a public issue for a suspected vulnerability, an exposed credential or an exploitable detail.

Include enough to reproduce the issue safely: package and version (crates.io solana-stream-sdk, npm @validators-dao/solana-stream-sdk, @validators-dao/solana-shreds-client, @validators-dao/solana-entry-decoder, or a sample client), runtime and operating system, the impact, and a minimal reproduction.

Redact API keys, X_TOKEN values, endpoint URLs that carry a key (?api-key=…), wallet files and key material from the report. Never send a real secret as proof.

Scope

This policy covers the SDK packages, the sample clients in client/ and temp-release/ (the templates slv bot init installs), the repository tooling, and the dependencies as this repository integrates them. Issues in ERPC endpoints or other services go to their operators; describe the SDK side of the interaction.

Supported versions

Security fixes go to the latest published version of each package.

Supported Rust build for curve operations

Use stable Rust for the Agave dependency graph. On x86-64, nightly builds of the locked curve25519-dalek 4.1.3 may select an affected AVX-512 backend. Its 3.2.0 dependency in validator test tooling requires an additional nightly SIMD feature to select that backend. Stable builds of those two releases use unaffected backends. Agave's declared dependency ranges preclude the fixed 5.1.0 major. CI also bans 5.0.0, which can select the affected backend on stable. Revisit the exception when the Solana crates support 5.1 or later. RustSec advisory and affected build configurations

chrono is unmaintained. The default Rust SDK omits its direct dependency. The UDP API exposes chrono::DateTime through TransactionsBySlot. A type migration belongs in a breaking release. Validator test tooling and starter applications also use it. RustSec maintenance notice

Updating an application's dependencies

Rust applications resolve the SDK within their own Cargo.lock. The SDK's minimum versions for HTTP/2, TLS and protobuf decoding ensure that updating the SDK also selects the corresponding protocol fixes. Applications staying on SDK 5.2.0 can update compatible packages in their own lockfile with Cargo. Inspect the result with cargo tree -i h2, cargo tree -i rustls, and cargo audit. A prebuilt Node addon needs a rebuilt binary to incorporate Rust dependency changes.

A scan of the full workspace lock includes optional and development packages. The optional RocksDB zlib backend previously locked libz-sys 1.1.31. The lock now resolves the patched 1.1.33. The normal UDP graph excludes RocksDB. libz-sys advisory

Three additional lockfile warnings warrant keeping their dependency paths visible:

  • reed-solomon-erasure 6.0.0, used by UDP recovery, requires lru 0.7.x. The patched LRU version is 0.18.2 or newer. The codec uses get and put with Vec<usize> keys. The reported failure requires a key destructor that panics during pop. Reassess when the codec changes its cache. LRU advisory
  • Legacy rand 0.7.3 comes through the validator test oracle's precompile verifier. The locked feature graph omits rand's logging feature, required for the reported issue. rand advisory
  • Legacy memmap2 0.5.10 is a dependency of validator-side genesis tooling. It is absent from the standalone UDP consumer's normal/build graph. The patched 0.9.x line is outside the legacy parent's requirement. memmap2 advisory

What the repository checks

  • scripts/run-gitleaks.sh scans the whole history for credentials and scripts/check-oss-hygiene.sh checks tracked files for non-public hosts, internal references and key material (CI, every pull request).
  • cargo deny check (deny.toml) and pnpm audit check dependencies for advisories, licenses and sources (CI, every pull request). deny.toml lists each accepted advisory with its reason.
  • The SDK, the sample clients in client/ and the TypeScript templates in temp-release/ keep credentials out of logs: endpoints and RPC errors are logged without the credentials, path or query of their URLs (solana_stream_sdk::redact, src/utils/redact.ts). The Rust templates in temp-release/ get this when they move to SDK 4.0.

There aren't any published security advisories