CVE-2019-16761: Slp validate Validation Bypass Vulnerability
CRITICALCVE-2019-16761 is a CRITICAL (CVSS 5.7) validation bypass vulnerability (CWE-20: Improper Input Validation) affecting Slp validate libraries in the npm ecosystem. The issue involves validation bypass in slp-validate. Remediation is available by upgrading affected packages to version 1.0.1.
CVE-2019-16761 at a Glance
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).
How to Fix CVE-2019-16761
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.
npm install slp-validate@1.0.1
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-2019-16761, 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.0.1), 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-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 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
CVE-2019-16761 Affected Slp validate Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
slp-validate
|
npm |
≥ 1.0.0
< 1.0.1
All 1 versions
1.0.0
|
1.0.1
|
References
Frequently Asked Questions
What is CVE-2019-16761?
Which Slp validate versions are affected?
What version fixes CVE-2019-16761?
Is slp-validate affected?
What is the CVSS score of CVE-2019-16761?
What CWE is associated with CVE-2019-16761?
How can I check npm dependencies for CVE-2019-16761?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-wmx6-vxcf-c3gr",
"modified" : "2021-01-08T20:11:31Z",
"published" : "2019-11-15T23:10:19Z",
"aliases" : [ "CVE-2019-16761" ],
"summary" : "Validation Bypass in slp-validate",
"details" : "Versions of `slp-validate` prior to 1.0.1 are vulnerable to a validation bypass. Bitcoin scripts may cause the validation result from `slp-validate` to differ from the specified SLP consensus. This allows an attacker to create a Bitcoin script that causes a hard-fork from the SLP consensus.\n\n\n## Recommendation\n\nUpgrade to version 1.0.1 or later.",
"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" : "slp-validate"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "1.0.0"
}, {
"fixed" : "1.0.1"
} ]
} ],
"versions" : [ "1.0.0" ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/simpleledger/slp-validate/security/advisories/GHSA-wmx6-vxcf-c3gr"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2019-16761"
}, {
"type" : "WEB",
"url" : "https://github.com/simpleledger/slp-validate/commit/50ad96c2798dad6b9f9a13333dd05232defe5730#diff-fe58606994c412ba56a65141a7aa4a62L123"
}, {
"type" : "ADVISORY",
"url" : "https://github.com/advisories/GHSA-wmx6-vxcf-c3gr"
}, {
"type" : "WEB",
"url" : "https://www.npmjs.com/advisories/1422"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-20" ],
"severity" : "CRITICAL",
"github_reviewed" : true,
"github_reviewed_at" : "2020-06-16T20:49:38Z",
"nvd_published_at" : null
}
}