Vulnerabilities in pkg:npm/slp-validate

PACKAGE
Advisory Identifier: GHSA-6jmr-jfh7-xg3h
Advisory Summary

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

3 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:npm/slp-validate

3 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:npm/slp-validate. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-6jmr-jfh7-xg3h CVE-2020-15131 CRITICAL False-positive validity for NFT1 genesis transactions
GHSA-4w97-57v2-3w44 CVE-2020-11072 CRITICAL False-negative validation results in MINT transactions with invalid baton
GHSA-wmx6-vxcf-c3gr CVE-2019-16761 CRITICAL Validation Bypass in slp-validate

CVE-2020-15131 at a Glance

CVE Identifier CVE-2020-15131
GHSA Identifier GHSA-6jmr-jfh7-xg3h
Severity CRITICAL
CVSS v3.1 Base Score 7.5
CWE Classification CWE-697: Incorrect Comparison
Affected Product Slp validate
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-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.

slp-validate fixed: 1.2.2
npm install slp-validate@1.2.2
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 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

### Impact In 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. ### Patches npm package "slp-validate" has been patched and is published and tagged as version 1.2.2. ### Workarounds Upgrade to slp-validate 1.2.2. ### References * Package location: https://www.npmjs.com/package/slp-validate * SLP NFT1 spec: https://slp.dev/specs/slp-nft-1/#nft1-protocol-requirements * Git commit hash fixing this issue: https://github.com/simpleledger/slp-validate.js/commit/3963cf914afae69084059b82483da916d97af65c * 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/slp-validate.js/issues) repository.

CVE-2020-15131 Affected Slp validate Versions

1 component(s)
Fixed Versions:
1.2.2
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?
CVE-2020-15131 is a security vulnerability in Slp validate involving False-positive validity for NFT1 genesis transactions under CWE-697: Incorrect Comparison.
Which Slp validate versions are affected?
Affected versions include releases prior to 1.2.2 across affected packages: slp-validate.
What version fixes CVE-2020-15131?
Upgrading to 1.2.2 (or the latest patched release for your respective branch) resolves the vulnerability.
Is slp-validate affected?
Yes, slp-validate is affected in releases prior to 1.2.2. Upgrade your dependency to 1.2.2 or later.
What is the CVSS score of CVE-2020-15131?
CVE-2020-15131 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-15131?
CVE-2020-15131 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-15131?
Run the dependency tree command: 'npm ls slp-validate'. 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-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
  }
}