{"id":"CVE-2026-4258","details":"Versions of the package sjcl before 1.0.9 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.","aliases":["GHSA-2w8x-224x-785m"],"modified":"2026-08-12T03:51:35.471136745Z","published":"2026-03-17T05:00:04.199Z","database_specific":{"cwe_ids":["CWE-347"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/4xxx/CVE-2026-4258.json","unresolved_ranges":[{"extracted_events":[{"fixed":"1.0.9"},{"fixed":"*"}],"source":"AFFECTED_FIELD"},{"extracted_events":[{"fixed":"1.0.9"}],"source":"DESCRIPTION"}],"cna_assigner":"snyk"},"references":[{"type":"WEB","url":"https://gist.github.com/Kr0emer/2560f98edb10b0b34f2438cd63913c47"},{"type":"WEB","url":"https://github.com/bitwiseshiftleft/sjcl/blob/master/core/ecc.js%23L454-L461"},{"type":"WEB","url":"https://security.snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-15751243"},{"type":"WEB","url":"https://security.snyk.io/vuln/SNYK-JS-SJCL-15369617"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/4xxx/CVE-2026-4258.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-4258"},{"type":"FIX","url":"https://github.com/bitwiseshiftleft/sjcl/commit/ee307459972442a17beebc29dc331fffd8aff796"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/bitwiseshiftleft/sjcl","events":[{"introduced":"0"},{"fixed":"ee307459972442a17beebc29dc331fffd8aff796"}],"database_specific":{"extracted_events":[{"introduced":"0"},{"last_affected":"1.0.8"}],"source":["CPE_RANGE","REFERENCES"],"cpe":"cpe:2.3:a:bitwiseshiftleft:stanford_javascript_crypto_library:*:*:*:*:*:node.js:*:*"}}],"versions":["1.0.8","1.0.7","1.0.6","1.0.5","1.0.4","1.0.3","1.0.2","1.0.0"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-4258.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V4","score":"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"}]}