CVE-2020-15131: Slp validate False-positive Validity For NFT1 Genesis Vulnerability
CRITICALCVE-2020-15131 is a CRITICAL (CVSS 7.5) false-positive validity for nft1 genesis vulnerability (CWE-697: Incorrect Comparison) affecting Slp validate libraries in the npm ecosystem. The issue involves false-positive validity for nft1 genesis transactions. Remediation is available by upgrading affected packages to version 1.2.2.
CVE-2020-15131 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:N/I:H/A:N).
How to Fix CVE-2020-15131
To remediate this vulnerability, upgrade all affected Slp validate 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 slp-validate@1.2.2
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
npm ls slp-validate
How to Check if You Are Affected
To determine whether your Node.js application is affected by CVE-2020-15131, inspect your project dependencies using npm:
npm ls slp-validate
Analyze the terminal output to locate any version of Slp validate in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.2.2), your application is affected.
Note: The npm ls slp-validate 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 Slp validate, 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-15131 Affected Slp validate Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
slp-validate
|
npm |
< 1.2.2
|
1.2.2
|
References
Frequently Asked Questions
What is CVE-2020-15131?
Which Slp validate versions are affected?
What version fixes CVE-2020-15131?
Is slp-validate affected?
What is the CVSS score of CVE-2020-15131?
What CWE is associated with CVE-2020-15131?
How can I check npm dependencies for CVE-2020-15131?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-6jmr-jfh7-xg3h",
"modified" : "2021-01-08T21:00:17Z",
"published" : "2020-07-30T14:58:53Z",
"aliases" : [ "CVE-2020-15131" ],
"summary" : "False-positive validity for NFT1 genesis transactions",
"details" : "### Impact\nIn the npm package named \"slp-validate\", versions prior to 1.2.2 are vulnerable to false-positive validation outcomes for the NFT1 Child Genesis transaction type. A poorly implemented SLP wallet or opportunistic attacker could create a seemingly valid NFT1 child token without burning any of the NFT1 Group token type as is required by the NFT1 specification.\n\n### Patches\nnpm package \"slp-validate\" has been patched and is published and tagged as version 1.2.2.\n\n### Workarounds\nUpgrade to slp-validate 1.2.2.\n\n### References\n* Package location: https://www.npmjs.com/package/slp-validate\n* SLP NFT1 spec: https://slp.dev/specs/slp-nft-1/#nft1-protocol-requirements\n* Git commit hash fixing this issue: https://github.com/simpleledger/slp-validate.js/commit/3963cf914afae69084059b82483da916d97af65c\n* Unit tests have been added to assist validator implementations in avoiding this bug: https://github.com/simpleledger/slp-unit-test-data/commit/8c942eacfae12686dcf1f3366321445a4fba73e7\n\n### For more information\nIf you have any questions or comments about this advisory please open an issue in the [slp-validate](https://github.com/simpleledger/slp-validate.js/issues) repository.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "slp-validate"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "1.2.2"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/simpleledger/slp-validate.js/security/advisories/GHSA-6jmr-jfh7-xg3h"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2020-15131"
}, {
"type" : "WEB",
"url" : "https://github.com/simpleledger/slp-validate.js/commit/3963cf914afae69084059b82483da916d97af65c"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-697" ],
"severity" : "CRITICAL",
"github_reviewed" : true,
"github_reviewed_at" : "2020-07-30T14:54:40Z",
"nvd_published_at" : null
}
}