Vulnerabilities in pkg:npm/slpjs

PACKAGE
Advisory Identifier: GHSA-jc83-cpf9-q7c6
Advisory Summary

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

3 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:npm/slpjs

3 Known Advisory Record(s)

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

Advisory ID CVE / NVD Severity Summary
GHSA-jc83-cpf9-q7c6 CVE-2020-11071 CRITICAL False-negative validation results in MINT transactions with invalid baton
GHSA-425c-ccf3-3jrr CVE-2019-16762 CRITICAL Critical severity vulnerability that affects slpjs
GHSA-cc2p-4jhr-xhhx CVE-2020-15130 CRITICAL False-positive validity for NFT1 genesis transactions in SLPJS

CVE-2020-11071 at a Glance

CVE Identifier CVE-2020-11071
GHSA Identifier GHSA-jc83-cpf9-q7c6
Severity CRITICAL
CVSS v3.1 Base Score 8.6
CWE Classification CWE-697: Incorrect Comparison
Affected Product Slpjs
Package Ecosystem npm
Published Date
Last Updated

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

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

slpjs fixed: 0.27.2
npm install slpjs@0.27.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 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

### Impact Users 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. ### Patches npm package [slpjs](https://www.npmjs.com/package/slpjs) has been patched and published as version 0.27.2. ### Workarounds Upgrade to slpjs 0.27.2. ### References * slpjs [commit](https://github.com/simpleledger/slpjs/commit/3671be2ffb6d4cfa94c00c6dc8649d1ba1d75754) ### For more information If you have any questions or comments about this advisory: * Open an issue in [slp-validate](https://github.com/simpleledger/slp-validate/issues) or [slpjs](https://github.com/simpleledger/slpjs/issues)

CVE-2020-11071 Affected Slpjs Versions

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

References

Frequently Asked Questions

What is CVE-2020-11071?
CVE-2020-11071 is a security vulnerability in Slpjs involving False-negative validation results in MINT transactions with invalid baton under CWE-697: Incorrect Comparison.
Which Slpjs versions are affected?
Affected versions include releases prior to 0.27.2 across affected packages: slpjs.
What version fixes CVE-2020-11071?
Upgrading to 0.27.2 (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.2. Upgrade your dependency to 0.27.2 or later.
What is the CVSS score of CVE-2020-11071?
CVE-2020-11071 has a CVSS v3.1 base score of 8.6 (CRITICAL) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:H/A:N.
What CWE is associated with CVE-2020-11071?
CVE-2020-11071 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-11071?
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-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
  }
}