Advisory

GHSA-2w8x-224x-785m

Also known as: CVE-2026-4258

Summary

sjcl is missing point-on-curve validation in sjcl.ecc.basicKey.publicKey

Details

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.

Severity

High Basis: The source's own band: HIGH

Dates

Published
2026-03-17 06:31 UTC
Modified
2026-03-25 14:46 UTC

Affected packages and fixes

sjcl

npm · All systems

Affected

  • introduced 0, fixed 1.0.9 (semver)

Fixed versions

1.0.9

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences