# CVE-2026-4258: sjcl is missing point-on-curve validation in sjcl.ecc.basicKey.publicKey

- Severity: High 8.7 (CVSS:4.0, scored by snyk) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.29%, higher than 22% of CVEs (2026-12-02)
- Public exploit code or proof of concept: 2 links below, marked "exploit"
- Published: 2026-03-17T05:00:04.199Z
- Modified: 2026-08-07T15:25:31.786Z
- Also known as: GHSA-2w8x-224x-785m
- Weaknesses: CWE-325, CWE-347
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- Assigned by: snyk

## Description

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.

(As written by CVE List.)

## Affected

- sjcl: before 1.0.9
- org.webjars.npm:sjcl: before *
- sjcl (npm): before 1.0.9
- bitwiseshiftleft stanford_javascript_crypto_library: up to 1.0.8

## Every score

- snyk: CVSS:4.0 8.7 High `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`
- snyk: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N/E:P`
- GitHub: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`
- GitHub: CVSS:4.0 High `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`

## References

- <https://security.snyk.io/vuln/SNYK-JS-SJCL-15369617> (exploit, third-party-advisory, web)
- <https://gist.github.com/Kr0emer/2560f98edb10b0b34f2438cd63913c47> (exploit, mitigation, third-party-advisory, web)
- <https://security.snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-15751243>
- <https://github.com/bitwiseshiftleft/sjcl/blob/master/core/ecc.js%23L454-L461> (broken-link)
- <https://github.com/bitwiseshiftleft/sjcl/commit/ee307459972442a17beebc29dc331fffd8aff796> (patch, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-4258> (advisory)
- <https://github.com/bitwiseshiftleft/sjcl> (package)
- <https://github.com/bitwiseshiftleft/sjcl/blob/master/core/ecc.js#L454-L461> (web)

## Sources

- CVE List: [CVE-2026-4258](https://www.cve.org/CVERecord?id=CVE-2026-4258), CVE Terms of Use, modified 2026-08-07
- GitHub Advisory Database: [GHSA-2w8x-224x-785m](https://github.com/advisories/GHSA-2w8x-224x-785m), CC-BY-4.0, modified 2026-03-25
- NVD: [CVE-2026-4258](https://nvd.nist.gov/vuln/detail/CVE-2026-4258), Public domain, modified 2026-07-28

---

Page: https://cve.day/CVE-2026-4258 · Whole record: https://cve.day/CVE-2026-4258.json · Rebuilt by cve.day 2026-11-25T22:59:16.035Z
