IntelligenceAdvisoriesAdvisory
GHSA-2w8x-224x-785m
sjcl is missing point-on-curve validation in sjcl.ecc.basicKey.publicKey
In short
What to know.
- Package
- sjcl npmbefore 1.0.9
- What to do
- Upgrade sjcl to 1.0.9 or later.
- Source's rating
- HighNoumen has not assessed it.
- Noumen finding
- NMN-2026-0014Candidate. Severity high, confidence high.
3 December 2026
Source
- OSV record GHSA-2w8x-224x-785mosv.devRetrieved 3 December 2026
Full record
- Identifier
- GHSA-2w8x-224x-785m
- Aliases
- CVE-2026-4258
- Severity
- High, as rated by the source. Noumen has not assessed it.
- CVSS
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N/E:P
- Fixed versions
- 1.0.9
- Published
- 17 March 2026
- Modified
- 25 March 2026
- Source
- OSV record GHSA-2w8x-224x-785m, retrieved 3 December 2026, 00:00 UTC
Affected packages and ranges
| Package | Affected versions | Fixed in |
|---|---|---|
| sjcl npm | before 1.0.9 | 1.0.9 |
Affected means inside a published range, not that the code path is reachable in your project.
Details, as published by the source
All versions of the package sjcl are vulnerable to Improper Verification of Cryptographic Signature due to missing point-on-curve validation in sjcl.ecc.basicKey.publicKey(). An attacker can recover a victim's ECDH private key by sending crafted off-curve public keys and observing ECDH outputs. The dhJavaEc() function directly returns the raw x-coordinate of the scalar multiplication result (no hashing), providing a plaintext oracle without requiring any decryption feedback.
References
- advisorynvd.nist.gov/vuln/detail/CVE-2026-4258
- webgithub.com/bitwiseshiftleft/sjcl/commit/ee307459972442a17beebc29dc331fffd8aff796
- webgist.github.com/Kr0emer/2560f98edb10b0b34f2438cd63913c47
- packagegithub.com/bitwiseshiftleft/sjcl
- webgithub.com/bitwiseshiftleft/sjcl/blob/master/core/ecc.js#L454-L461
- websecurity.snyk.io/vuln/SNYK-JS-SJCL-15369617
