CVE-2020-11071: Slpjs False-negative Validation Results Vulnerability
CRITICALCVE-2020-11071 is a CRITICAL (CVSS 8.6) false-negative validation results vulnerability (CWE-697: Incorrect Comparison) affecting Slpjs libraries in the npm ecosystem. The issue involves false-negative validation results in mint transactions with invalid baton. Remediation is available by upgrading affected packages to version 0.27.2.
CVE-2020-11071 at a Glance
Security Impact
CVSS: 8.6
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:C/C:N/I:H/A:N).
How to Fix CVE-2020-11071
To remediate this vulnerability, upgrade all affected Slpjs 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 slpjs@0.27.2
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
npm ls slpjs
How to Check if You Are Affected
To determine whether your Node.js application is affected by CVE-2020-11071, inspect your project dependencies using npm:
npm ls slpjs
Analyze the terminal output to locate any version of Slpjs in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.27.2), your application is affected.
Note: The npm ls slpjs 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-697: Incorrect Comparison, where the product compares two entities in a security-relevant context, but the comparison is incorrect. In Slpjs, 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-11071 Affected Slpjs Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
slpjs
|
npm |
< 0.27.2
|
0.27.2
|
References
Frequently Asked Questions
What is CVE-2020-11071?
Which Slpjs versions are affected?
What version fixes CVE-2020-11071?
Is slpjs affected?
What is the CVSS score of CVE-2020-11071?
What CWE is associated with CVE-2020-11071?
How can I check npm dependencies for CVE-2020-11071?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-jc83-cpf9-q7c6",
"modified" : "2021-01-08T20:17:31Z",
"published" : "2020-05-12T00:39:03Z",
"aliases" : [ "CVE-2020-11071" ],
"summary" : "False-negative validation results in MINT transactions with invalid baton",
"details" : "### Impact\nUsers could experience false-negative validation outcomes for [MINT](https://github.com/simpleledger/slp-specifications/blob/master/slp-token-type-1.md#mint---extended-minting-transaction) transaction operations. A poorly implemented SLP wallet could allow spending of the affected tokens which would result in the destruction of a user's minting baton.\n\n### Patches\nnpm package [slpjs](https://www.npmjs.com/package/slpjs) has been patched and published as version 0.27.2.\n\n\n### Workarounds\nUpgrade to slpjs 0.27.2.\n\n### References\n* slpjs [commit](https://github.com/simpleledger/slpjs/commit/3671be2ffb6d4cfa94c00c6dc8649d1ba1d75754)\n\n### For more information\nIf you have any questions or comments about this advisory:\n* Open an issue in [slp-validate](https://github.com/simpleledger/slp-validate/issues) or [slpjs](https://github.com/simpleledger/slpjs/issues)",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:H/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "slpjs"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "0.27.2"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/simpleledger/slpjs/security/advisories/GHSA-jc83-cpf9-q7c6"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2020-11071"
}, {
"type" : "WEB",
"url" : "https://github.com/simpleledger/slpjs/commit/3671be2ffb6d4cfa94c00c6dc8649d1ba1d75754"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-697" ],
"severity" : "CRITICAL",
"github_reviewed" : true,
"github_reviewed_at" : "2020-05-12T00:26:13Z",
"nvd_published_at" : null
}
}