CVE-2019-16762: Slpjs Critical Severity Vulnerability That Affects Vulnerability

CRITICAL
Advisory Identifier: GHSA-425c-ccf3-3jrr
CVSS 5.7
CWE-20
Published
Advisory Summary

CVE-2019-16762 is a CRITICAL (CVSS 5.7) critical severity vulnerability that affects vulnerability (CWE-20: Improper Input Validation) affecting Slpjs libraries in the npm ecosystem. The issue involves critical severity vulnerability that affects slpjs. Remediation is available by upgrading affected packages to version 0.21.4.

CVE-2019-16762 at a Glance

CVE Identifier CVE-2019-16762
GHSA Identifier GHSA-425c-ccf3-3jrr
Severity CRITICAL
CVSS v3.1 Base Score 5.7
CWE Classification CWE-20: Improper Input Validation
Affected Product Slpjs
Package Ecosystem npm
Published Date
Last Updated

Security Impact

CVSS: 5.7

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:U/C:N/I:H/A:H).

Attack Vector Network (AV:N)
Attack Complexity High (AC:H)
Privileges Required High (PR:H)
User Interaction Required (UI:R)
Scope Unchanged (S:U)
Confidentiality None (C:N)
Integrity High (I:H)
Availability High (A:H)

How to Fix CVE-2019-16762

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.21.4
npm install slpjs@0.21.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-2019-16762, 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.21.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-20: Improper Input Validation, where the product receives input or data, but it does not validate or incorrectly validates that the input has the properties that are required to process the data safely and correctly. 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

## Validator parsing discrepancy due to string encoding ### Impact A specially crafted Bitcoin script can cause a discrepancy between the specified SLP consensus rules and the validation result of the slpjs npm package. An attacker could create a specially crafted Bitcoin script in order to cause a hard-fork from the SLP consensus. ### Patches All versions > 0.21.3 are patched. ### Workarounds Upgrade to any version >= 0.21.4. ### References The bug was located and fixed [here](https://github.com/simpleledger/slpjs/commit/ac8809b42e47790a6f0205991b36f2699ed10c84#diff-fe58606994c412ba56a65141a7aa4a62L701). ### For more information If you have any questions or comments about this advisory: * Open an issue in the [slpjs repo](https://github.com/simpleledger/slpjs/issues) * Email us at [info@slp.cash](mailto:info@slp.cash)

CVE-2019-16762 Affected Slpjs Versions

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

References

Frequently Asked Questions

What is CVE-2019-16762?
CVE-2019-16762 is a security vulnerability in Slpjs involving Critical severity vulnerability that affects slpjs under CWE-20: Improper Input Validation.
Which Slpjs versions are affected?
Affected versions include releases prior to 0.21.4 across affected packages: slpjs.
What version fixes CVE-2019-16762?
Upgrading to 0.21.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.21.4. Upgrade your dependency to 0.21.4 or later.
What is the CVSS score of CVE-2019-16762?
CVE-2019-16762 has a CVSS v3.1 base score of 5.7 (CRITICAL) with vector string CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:U/C:N/I:H/A:H.
What CWE is associated with CVE-2019-16762?
CVE-2019-16762 is classified under CWE-20: Improper Input Validation (The product receives input or data, but it does not validate or incorrectly validates that the input has the properties that are required to process the data safely and correctly.).
How can I check npm dependencies for CVE-2019-16762?
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-425c-ccf3-3jrr",
  "modified" : "2021-01-08T19:57:59Z",
  "published" : "2019-11-15T23:10:35Z",
  "aliases" : [ "CVE-2019-16762" ],
  "summary" : "Critical severity vulnerability that affects slpjs",
  "details" : "## Validator parsing discrepancy due to string encoding\n\n### Impact\nA specially crafted Bitcoin script can cause a discrepancy between the specified SLP consensus rules and the validation result of the slpjs npm package. An attacker could create a specially crafted Bitcoin script in order to cause a hard-fork from the SLP consensus.\n\n### Patches\nAll versions > 0.21.3 are patched.\n\n### Workarounds\nUpgrade to any version >= 0.21.4.\n\n### References\nThe bug was located and fixed [here](https://github.com/simpleledger/slpjs/commit/ac8809b42e47790a6f0205991b36f2699ed10c84#diff-fe58606994c412ba56a65141a7aa4a62L701).\n\n### For more information\nIf you have any questions or comments about this advisory:\n* Open an issue in the [slpjs repo](https://github.com/simpleledger/slpjs/issues)\n* Email us at [info@slp.cash](mailto:info@slp.cash)",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:U/C:N/I:H/A:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "npm",
      "name" : "slpjs"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "0.21.4"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/simpleledger/slpjs/security/advisories/GHSA-425c-ccf3-3jrr"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2019-16762"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/simpleledger/slpjs/commit/ac8809b42e47790a6f0205991b36f2699ed10c84#diff-fe58606994c412ba56a65141a7aa4a62L701"
  }, {
    "type" : "ADVISORY",
    "url" : "https://github.com/advisories/GHSA-425c-ccf3-3jrr"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-20" ],
    "severity" : "CRITICAL",
    "github_reviewed" : true,
    "github_reviewed_at" : "2020-06-16T20:56:55Z",
    "nvd_published_at" : null
  }
}