@noble/curves is vulnerable to Observable Timing Discrepancy
37
Low Risk
The X25519 key-agreement code performs scalar multiplication and modular arithmetic whose execution time varies with secret key material. Remote timing measurement across many samples can observe this variation and recover a few bits of a long-term private key, primarily enabling fingerprinting of a key across deployments rather than full key recovery. The Montgomery ladder and un-precomputed point multiplication previously fell back to variable-time code paths and best-effort constant-time helpers. The fix adds secret-scalar blinding via a CSPRNG, uses a constant-time fixed-window multiply, and hardens the modular arithmetic helpers.
You are affected if you are using a version that falls within the vulnerable range and you perform X25519 key agreement using a long-term private key whose operation timing is observable to an external party.
@noble/curves is vulnerable to Observable Timing Discrepancy in versions 0.2.0 - 2.2.0.
Upgrade the @noble/curves library to the patch version.
Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.
Free. No credit card required.

I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant