CVE-2020-15130: Slpjs False-positive Validity For NFT1 Genesis Vulnerability

CRITICAL
Advisory Identifier: GHSA-cc2p-4jhr-xhhx
CVSS 7.5
CWE-697
Published
Advisory Summary

CVE-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

CVE Identifier CVE-2020-15130
GHSA Identifier GHSA-cc2p-4jhr-xhhx
Severity CRITICAL
CVSS v3.1 Base Score 7.5
CWE Classification CWE-697: Incorrect Comparison
Affected Product Slpjs
Package Ecosystem npm
Published Date
Last Updated

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).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality None (C:N)
Integrity High (I:H)
Availability None (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.

slpjs fixed: 0.27.4
npm install slpjs@0.27.4
Verify Direct and Transitive Dependencies

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

### Impact In 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. ### Patches npm package "slpjs" has been patched and is published and tagged as version 0.27.4. ### Workarounds Upgrade to slpjs 0.27.4. ### References * Package location: https://www.npmjs.com/package/slpjs * SLP NFT1 spec: https://slp.dev/specs/slp-nft-1/#nft1-protocol-requirements * Git commit hash fixing this issue: https://github.com/simpleledger/slpjs/commit/290c20e8bff13ac81459d43e54cac232b5e3456c * Unit tests have been added to assist validator implementations in avoiding this bug: https://github.com/simpleledger/slp-unit-test-data/commit/8c942eacfae12686dcf1f3366321445a4fba73e7 ### For more information If you have any questions or comments about this advisory please open an issue in the [slp-validate](https://github.com/simpleledger/slpjs/issues) repository.

CVE-2020-15130 Affected Slpjs Versions

1 component(s)
Fixed Versions:
0.27.4
Product / Package Ecosystem Affected Versions Fixed Version
slpjs
npm
< 0.27.4
0.27.4

References

Frequently Asked Questions

What is CVE-2020-15130?
CVE-2020-15130 is a security vulnerability in Slpjs involving False-positive validity for NFT1 genesis transactions in SLPJS under CWE-697: Incorrect Comparison.
Which Slpjs versions are affected?
Affected versions include releases prior to 0.27.4 across affected packages: slpjs.
What version fixes CVE-2020-15130?
Upgrading to 0.27.4 (or the latest patched release for your respective branch) resolves the vulnerability.
Is slpjs affected?
Yes, slpjs is affected in releases prior to 0.27.4. Upgrade your dependency to 0.27.4 or later.
What is the CVSS score of CVE-2020-15130?
CVE-2020-15130 has a CVSS v3.1 base score of 7.5 (CRITICAL) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N.
What CWE is associated with CVE-2020-15130?
CVE-2020-15130 is classified under CWE-697: Incorrect Comparison (The product compares two entities in a security-relevant context, but the comparison is incorrect.).
How can I check npm dependencies for CVE-2020-15130?
Run the dependency tree command: 'npm ls slpjs'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "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
  }
}