# @solana/assertions@5.0.0 security report (npm)

- Verdict: **No issues** (risk level: safe)
- Scanned: 2026-10-04T16:16:37.000Z
- Files reviewed: 5
- Findings: 2 low severity findings
- Report: https://security.togoder.click/npm/@solana/assertions@5.0.0
- Source: Togoder Security (https://security.togoder.click), AI source-code review

## Summary

Togoder Security scanned the npm package @solana/assertions@5.0.0 on Oct 4, 2026. An AI review of 5 source files produced 2 low severity findings. No malicious behavior, install-time payloads, credential theft or exfiltration were identified.

## Findings

### [low] Environment capability detection

Finding ID: `NPS-5E00BF171C14`

File: `dist/index.browser.cjs`

The code performs runtime capability checks on the WebCrypto API (crypto.getRandomValues, crypto.subtle.digest/generateKey/exportKey/sign/verify) and secure context status. This is standard defensive feature detection for a crypto library, not credential harvesting or environment enumeration.

### [low] Cached async state

Finding ID: `NPS-6DE64ACD25F6`

File: `dist/index.browser.cjs:17`

isEd25519CurveSupported caches a Promise and later reassigns it to a boolean. The mixed Promise/boolean type is slightly unusual but functionally sound and not a security concern.

## Files reviewed

- `dist/index.browser.cjs` (safe): The module only performs benign WebCrypto capability assertions and exports helper guards, with no exfiltration, dynamic execution, process spawning, or file system access.
- `dist/index.browser.mjs` (safe): No malicious patterns detected; the code only performs legitimate WebCrypto capability checks for a Solana SDK.
- `dist/index.native.mjs` (safe): No malicious patterns detected; the code only provides capability assertions for the Web Crypto API without any exfiltration, obfuscation, or dynamic execution.
- `dist/index.node.cjs` (safe): No malicious patterns detected; the file contains only legitimate capability checks for the Web Crypto API used by @solana/errors.
- `dist/index.node.mjs` (safe): No malicious patterns detected; the code only performs capability checks for Web Crypto APIs used in Solana cryptography.

## Version ranges

None of the 2 scanned versions of @solana/assertions are flagged high or critical. The latest scanned version, 5.0.0, is clean. Only versions we have scanned are listed; unscanned versions between them are not covered.

- 3.0.3 – 5.0.0 (`>=3.0.3 <=5.0.0`): clean
- 2.0.0-rc.4 – 2.1.1 (`>=2.0.0-rc.4 <=2.1.1`): not scanned

## Scanned versions

- [5.0.0](https://security.togoder.click/npm/@solana/assertions@5.0.0): safe, 2026-10-04T16:16:37.000Z
- [3.0.3](https://security.togoder.click/npm/@solana/assertions@3.0.3): safe, 2026-10-04T16:04:09.000Z

AI analysis is guidance, not a guarantee. Methodology: https://security.togoder.click/methodology
