ssh2
SSH2 client and server in JavaScript for Node.js, with Curve25519, ECDH and finite-field Diffie-Hellman key exchange, Ed25519, ECDSA, RSA and DSA host keys, AES-GCM, AES-CTR, AES-CBC and ChaCha20-Poly1305 ciphers, and HMAC.
In short
What to know.
- Algorithms
- X25519, ECDH (Weierstrass curves), Finite-field Diffie-Hellman, Ed25519 and 9 more9 of 13 would be broken by a large quantum computer.
- Advisories
- 1 in the storeOSV last read 3 December 2026, 16:49 UTC.
- What to do
- Check your version against the advisories below. Each lists its affected and fixed versions. Plan a move away from X25519, ECDH (Weierstrass curves), Finite-field Diffie-Hellman, Ed25519, ECDSA on P-256, ECDSA on P-384, ECDSA on P-521, RSA signatures, DSA before large quantum computers exist.
1 in the store
Advisories
| Advisory | Id | Affected versions | Fixed in | Source's rating |
|---|---|---|---|---|
| OS Command Injection in ssh2 | GHSA-652h-xwhf-q4h6 | before 1.4.0 | Fixed in 1.4.0 | Rated High |
1 listed
Findings
| Finding | Id | Severity | Updated |
|---|---|---|---|
| OS Command Injection in ssh2 | NMN-2026-0066 | Severity High | 3 December 2026 |
Reviewed 3 December 2026
Sources
- npm registry metadata for ssh2registry.npmjs.orgRetrieved 3 December 2026
- ssh2 README (algorithm lists)github.comRetrieved 3 December 2026
Full record
- Package
- ssh2
- Ecosystem
- npm
- Role
- Protocol
- Repository
- github.com/mscdex/ssh2
- Status
- Not marked deprecated by its registry or maintainers.
- Reviewed
- Entry reviewed 3 December 2026. Catalogue entry, curated by hand and incomplete by design.
- Advisories read
- Last read from OSV 3 December 2026, 16:49 UTC
- Findings
- 1 listed above.
Algorithms it provides
- X25519 key-exchangeClassical public keyBroken by Shor's algorithm
- ECDH (Weierstrass curves) key-exchangeClassical public keyBroken by Shor's algorithm
- Finite-field Diffie-Hellman key-exchangeClassical public keyBroken by Shor's algorithm
- Ed25519 signatureClassical public keyBroken by Shor's algorithm
- ECDSA on P-256 signatureClassical public keyBroken by Shor's algorithm
- ECDSA on P-384 signatureClassical public keyBroken by Shor's algorithm
- ECDSA on P-521 signatureClassical public keyBroken by Shor's algorithm
- RSA signatures signatureClassical public keyBroken by Shor's algorithm
- DSA signatureClassical public keyBroken by Shor's algorithm
- AES cipherSymmetricWeakened by Grover's search
- AES-GCM aeadSymmetricWeakened by Grover's search
- ChaCha20-Poly1305 aeadSymmetricWeakened by Grover's search
- HMAC macSymmetricWeakened by Grover's search
What a large quantum computer would change
- Broken by Shor's algorithmRests on factoring or discrete logarithms. A large fault-tolerant quantum computer running Shor's algorithm would break it.X25519, ECDH (Weierstrass curves), Finite-field Diffie-Hellman, Ed25519, ECDSA on P-256, ECDSA on P-384, ECDSA on P-521, RSA signatures, DSA
- Weakened by Grover's searchGrover's search would roughly halve its effective security. 256-bit keys and outputs stay adequate.AES, AES-GCM, ChaCha20-Poly1305, HMAC
Notes describe algorithm families, not any one project.