CVE-2026-4258: Sjcl Sjcl Is Missing Point-on-curve Validation Vulnerability
HIGHCVE-2026-4258 is a HIGH (CVSS 7.5) sjcl is missing point-on-curve validation vulnerability (CWE-325: Missing Cryptographic Step) affecting Sjcl libraries in the npm ecosystem. The issue involves sjcl is missing point-on-curve validation in sjcl.ecc.basickey.publickey. Remediation is available by upgrading affected packages to version 1.0.9.
CVE-2026-4258 at a Glance
Security Impact
CVSS: 7.5
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N).
How to Fix CVE-2026-4258
To remediate this vulnerability, upgrade all affected Sjcl dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
npm install sjcl@1.0.9
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
npm ls sjcl
How to Check if You Are Affected
To determine whether your Node.js application is affected by CVE-2026-4258, inspect your project dependencies using npm:
npm ls sjcl
Analyze the terminal output to locate any version of Sjcl in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.0.9), your application is affected.
Note: The npm ls sjcl command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-325: Missing Cryptographic Step, where the product does not implement a required step in a cryptographic algorithm, resulting in weaker encryption than advertised by the algorithm. In Sjcl, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2026-4258 Affected Sjcl Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
sjcl
|
npm |
< 1.0.9
|
1.0.9
|
References
Frequently Asked Questions
What is CVE-2026-4258?
Which Sjcl versions are affected?
What version fixes CVE-2026-4258?
Is sjcl affected?
What is the CVSS score of CVE-2026-4258?
What CWE is associated with CVE-2026-4258?
How can I check npm dependencies for CVE-2026-4258?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-2w8x-224x-785m",
"modified" : "2026-03-25T14:36:28Z",
"published" : "2026-03-17T06:31:32Z",
"aliases" : [ "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" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N"
}, {
"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"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "sjcl"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "1.0.9"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "<= 1.0.8"
}
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-4258"
}, {
"type" : "WEB",
"url" : "https://github.com/bitwiseshiftleft/sjcl/commit/ee307459972442a17beebc29dc331fffd8aff796"
}, {
"type" : "WEB",
"url" : "https://gist.github.com/Kr0emer/2560f98edb10b0b34f2438cd63913c47"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/bitwiseshiftleft/sjcl"
}, {
"type" : "WEB",
"url" : "https://github.com/bitwiseshiftleft/sjcl/blob/master/core/ecc.js#L454-L461"
}, {
"type" : "WEB",
"url" : "https://security.snyk.io/vuln/SNYK-JS-SJCL-15369617"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-325", "CWE-347" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2026-03-18T16:10:06Z",
"nvd_published_at" : "2026-03-17T06:16:18Z"
}
}