tiny-secp256k1
The bitcoin-core libsecp256k1 C library compiled to WebAssembly through a Rust crate, exposing secp256k1 ECDSA, BIP340 Schnorr signatures and point and scalar arithmetic.
In short
What to know.
- Algorithms
- ECDSA on secp256k1, Schnorr signatures (BIP 340)2 of 2 would be broken by a large quantum computer.
- Advisories
- 3 in the storeOSV last read 3 December 2026, 16:47 UTC.
- What to do
- Check your version against the advisories below. Each lists its affected and fixed versions. Plan a move away from ECDSA on secp256k1, Schnorr signatures (BIP 340) before large quantum computers exist.
3 in the store
Advisories
| Advisory | Id | Affected versions | Fixed in | Source's rating |
|---|---|---|---|---|
| tiny-secp256k1: Stale buffer after ignored wasm failure accepts invalid infinity tweak | GHSA-hj9c-qx2w-g7mh | from 2.1.0 before 2.2.5 | Fixed in 2.2.5 | Rated Moderate |
| tiny-secp256k1 allows for verify() bypass when running in bundled environment | GHSA-5vhg-9xg4-cv9m | before 1.1.7 | Fixed in 1.1.7 | Rated High |
| tiny-secp256k1 vulnerable to private key extraction when signing a malicious JSON-stringifyable message in bundled environment | GHSA-7mc2-6phr-23xc | before 1.1.7 | Fixed in 1.1.7 | Rated High |
3 listed
Findings
| Finding | Id | Severity | Updated |
|---|---|---|---|
| tiny-secp256k1: Stale buffer after ignored wasm failure accepts invalid infinity tweak | NMN-2026-0005 | Severity Moderate | 3 December 2026 |
| tiny-secp256k1 vulnerable to private key extraction when signing a malicious JSON-stringifyable message in bundled environment | NMN-2026-0003 | Severity High | 3 December 2026 |
| tiny-secp256k1 allows for verify() bypass when running in bundled environment | NMN-2026-0002 | Severity High | 3 December 2026 |
Reviewed 3 December 2026
Sources
- npm registry metadata for tiny-secp256k1registry.npmjs.orgRetrieved 3 December 2026
- tiny-secp256k1 READMEgithub.comRetrieved 3 December 2026
Full record
- Package
- tiny-secp256k1
- Ecosystem
- npm
- Role
- Binding to a native library
- Repository
- github.com/bitcoinjs/tiny-secp256k1
- 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:47 UTC
- Findings
- 3 listed above.
Algorithms it provides
- ECDSA on secp256k1 signatureClassical public keyBroken by Shor's algorithm
- Schnorr signatures (BIP 340) signatureClassical public keyBroken by Shor's algorithm
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.ECDSA on secp256k1, Schnorr signatures (BIP 340)
Notes describe algorithm families, not any one project.