CVE-2019-10790: Taffy TaffyDB Can Allow Access To Vulnerability
HIGHCVE-2019-10790 is a HIGH (CVSS 7.5) taffydb can allow access to vulnerability (CWE-668: Exposure of Resource to Wrong Sphere) affecting Taffy libraries in the npm ecosystem. The issue involves taffydb can allow access to any data items in the db. Remediation is available in the latest vendor maintenance releases.
CVE-2019-10790 at a Glance
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:H/I:N/A:N).
How to Fix CVE-2019-10790
To remediate this vulnerability, upgrade all affected Taffy 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 taffy@Latest secure release
npm install taffydb@Latest secure release
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
npm ls taffy
How to Check if You Are Affected
To determine whether your Node.js application is affected by CVE-2019-10790, inspect your project dependencies using npm:
npm ls taffy
Analyze the terminal output to locate any version of Taffy in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than the patched release), your application is affected.
Note: The npm ls taffy 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-668: Exposure of Resource to Wrong Sphere, where the product exposes a resource to the wrong control sphere, providing unintended actors with inappropriate access to the resource. In Taffy, 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-10790 Affected Taffy Versions
2 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
taffy
|
npm |
≤ 2.6.2
|
|
|
taffydb
|
npm |
≤ 2.7.3
|
|
References
Frequently Asked Questions
What is CVE-2019-10790?
Which Taffy versions are affected?
What version fixes CVE-2019-10790?
Is taffy affected?
Is taffydb affected?
What is the CVSS score of CVE-2019-10790?
What CWE is associated with CVE-2019-10790?
How can I check npm dependencies for CVE-2019-10790?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-mxhp-79qh-mcx6",
"modified" : "2023-01-30T19:22:17Z",
"published" : "2020-02-19T16:43:42Z",
"aliases" : [ "CVE-2019-10790" ],
"summary" : "TaffyDB can allow access to any data items in the DB",
"details" : "TaffyDB allows attackers to forge adding additional properties into user-input processed by taffy which can allow access to any data items in the DB. Taffy sets an internal index for each data item in its DB. However, it is found that the internal index can be forged by adding additional properties into user-input. If index is found in the query, TaffyDB will ignore other query conditions and directly return the indexed data item. Moreover, the internal index is in an easily-guessable format (e.g., T000002R000001). As such, attackers can use this vulnerability to access any data items in the DB. **Note:** `taffy` and its successor package `taffydb` are not maintained.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "taffy"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"last_affected" : "2.6.2"
} ]
} ]
}, {
"package" : {
"ecosystem" : "npm",
"name" : "taffydb"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"last_affected" : "2.7.3"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2019-10790"
}, {
"type" : "WEB",
"url" : "https://snyk.io/vuln/SNYK-JS-TAFFY-546521"
}, {
"type" : "WEB",
"url" : "https://www.npmjs.com/package/taffy"
}, {
"type" : "PACKAGE",
"url" : "https://www.npmjs.com/package/taffydb"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-20", "CWE-668" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2020-02-18T20:15:03Z",
"nvd_published_at" : "2020-02-17T20:15:00Z"
}
}