CVE-2020-15130: Slpjs False-positive Validity For NFT1 Genesis Vulnerability
CRITICALCVE-2020-15130 is a CRITICAL (CVSS 7.5) false-positive validity for nft1 genesis vulnerability (CWE-697: Incorrect Comparison) affecting Slpjs libraries in the npm ecosystem. The issue involves false-positive validity for nft1 genesis transactions in slpjs. Remediation is available by upgrading affected packages to version 0.27.4.
CVE-2020-15130 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-15130
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.4
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-15130, 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.4), 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-15130 Affected Slpjs Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
slpjs
|
npm |
< 0.27.4
|
0.27.4
|
References
Frequently Asked Questions
What is CVE-2020-15130?
Which Slpjs versions are affected?
What version fixes CVE-2020-15130?
Is slpjs affected?
What is the CVSS score of CVE-2020-15130?
What CWE is associated with CVE-2020-15130?
How can I check npm dependencies for CVE-2020-15130?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-cc2p-4jhr-xhhx",
"modified" : "2021-01-07T23:43:05Z",
"published" : "2020-07-30T14:58:42Z",
"aliases" : [ "CVE-2020-15130" ],
"summary" : "False-positive validity for NFT1 genesis transactions in SLPJS",
"details" : "### Impact\nIn the npm package named \"slpjs\", versions prior to 0.27.4 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 \"slpjs\" has been patched and is published and tagged as version 0.27.4.\n\n### Workarounds\nUpgrade to slpjs 0.27.4.\n\n### References\n* Package location: https://www.npmjs.com/package/slpjs\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/slpjs/commit/290c20e8bff13ac81459d43e54cac232b5e3456c\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/slpjs/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" : "slpjs"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "0.27.4"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/simpleledger/slpjs/security/advisories/GHSA-cc2p-4jhr-xhhx"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2020-15130"
}, {
"type" : "WEB",
"url" : "https://github.com/simpleledger/slpjs/commit/290c20e8bff13ac81459d43e54cac232b5e3456c"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-697" ],
"severity" : "CRITICAL",
"github_reviewed" : true,
"github_reviewed_at" : "2020-07-30T14:44:06Z",
"nvd_published_at" : null
}
}