CVE-2020-1026: Msrcrypto Incorrect Calculation Vulnerability
HIGHCVE-2020-1026 is a HIGH (CVSS 9.8) incorrect calculation vulnerability (CWE-682: Incorrect Calculation) affecting Msrcrypto libraries in the npm ecosystem. The issue involves incorrect calculation in the msr javascript cryptography library. Remediation is available by upgrading affected packages to version 1.5.8.
CVE-2020-1026 at a Glance
Security Impact
CVSS: 9.8
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:H/A:H).
How to Fix CVE-2020-1026
To remediate this vulnerability, upgrade all affected Msrcrypto 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 msrcrypto@1.5.8
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
npm ls msrcrypto
How to Check if You Are Affected
To determine whether your Node.js application is affected by CVE-2020-1026, inspect your project dependencies using npm:
npm ls msrcrypto
Analyze the terminal output to locate any version of Msrcrypto in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.5.8), your application is affected.
Note: The npm ls msrcrypto 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-682: Incorrect Calculation, where the product performs a calculation that generates incorrect or unintended results that are later used in security-critical decisions or resource management. In Msrcrypto, 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-2020-1026 Affected Msrcrypto Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
msrcrypto
|
npm |
< 1.5.8
|
1.5.8
|
References
Frequently Asked Questions
What is CVE-2020-1026?
Which Msrcrypto versions are affected?
What version fixes CVE-2020-1026?
Is msrcrypto affected?
What is the CVSS score of CVE-2020-1026?
What CWE is associated with CVE-2020-1026?
How can I check npm dependencies for CVE-2020-1026?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-9x9j-836w-8f55",
"modified" : "2021-10-20T22:19:13Z",
"published" : "2022-01-06T19:44:01Z",
"aliases" : [ "CVE-2020-1026" ],
"summary" : "Incorrect Calculation in the MSR JavaScript Cryptography Library",
"details" : "A Security Feature Bypass vulnerability exists in the MSR JavaScript Cryptography Library that is caused by multiple bugs in the library's Elliptic Curve Cryptography (ECC) implementation.An attacker could potentially abuse these bugs to learn information about a server's private ECC key (a key leakage attack) or craft an invalid ECDSA signature that nevertheless passes as valid.The security update addresses the vulnerability by fixing the bugs disclosed in the ECC implementation, aka `MSR JavaScript Cryptography Library Security Feature Bypass Vulnerability`.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "msrcrypto"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "1.5.8"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2020-1026"
}, {
"type" : "WEB",
"url" : "https://portal.msrc.microsoft.com/en-US/security-guidance/advisory/CVE-2020-1026"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-682" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2021-05-25T19:19:10Z",
"nvd_published_at" : "2020-04-15T15:15:00Z"
}
}