Vulnerabilities in pkg:npm/node-etsy-client
PACKAGECVE-2021-21421 is a HIGH (CVSS 8.1) apikey secret could be revelated vulnerability (CWE-209: Generation of Error Message Containing Sensitive Information) affecting Node etsy client libraries in the npm ecosystem. The issue involves apikey secret could be revelated on network issue. Remediation is available by upgrading affected packages to version 0.3.0.
pkg:npm/node-etsy-client
Vulnerability advisories affecting package pkg:npm/node-etsy-client. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-xw22-wv29-3299 | CVE-2021-21421 | HIGH | ApiKey secret could be revelated on network issue |
CVE-2021-21421 at a Glance
Security Impact
CVSS: 8.1
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H).
How to Fix CVE-2021-21421
To remediate this vulnerability, upgrade all affected Node etsy client 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 node-etsy-client@0.3.0
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
npm ls node-etsy-client
How to Check if You Are Affected
To determine whether your Node.js application is affected by CVE-2021-21421, inspect your project dependencies using npm:
npm ls node-etsy-client
Analyze the terminal output to locate any version of Node etsy client in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.3.0), your application is affected.
Note: The npm ls node-etsy-client 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-209: Generation of Error Message Containing Sensitive Information, where the product generates an error message that includes sensitive information about its environment, users, or associated data. In Node etsy client, 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-2021-21421 Affected Node etsy client Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
node-etsy-client
|
npm |
< 0.3.0
|
0.3.0
|
References
Frequently Asked Questions
What is CVE-2021-21421?
Which Node etsy client versions are affected?
What version fixes CVE-2021-21421?
Is node-etsy-client affected?
What is the CVSS score of CVE-2021-21421?
What CWE is associated with CVE-2021-21421?
How can I check npm dependencies for CVE-2021-21421?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-xw22-wv29-3299",
"modified" : "2021-04-02T17:05:21Z",
"published" : "2021-04-06T17:29:52Z",
"aliases" : [ "CVE-2021-21421" ],
"summary" : "ApiKey secret could be revelated on network issue",
"details" : "### Impact\n_What kind of vulnerability is it? Who is impacted?_\nApplications that are using node-etsy-client and reporting client error to the end user will offer api key value too\n\n### Patches\n_Has the problem been patched? What versions should users upgrade to?_\n\ncreharmony/node-etsy-client#18 fixes this issue. This is fixed in [node-etsy-client v0.3.0](https://github.com/creharmony/node-etsy-client/tree/v0.3.0) and later.\n\n### Workarounds\n_Is there a way for users to fix or remediate the vulnerability without upgrading?_\n\nDo not report or log etsy client error if you are using version <= v0.2.0\n\nUpdate your version of node-etsy-client\n\n### References\n_Are there any links users can visit to find out more?_\n\n- https://github.com/creharmony/node-etsy-client/issues/17 : On connect error secret appears in error #17\n\n### For more information\nIf you have any questions or comments about this advisory:\n* Open an issue in [github.com/creharmony/node-etsy-client/issues](https://github.com/creharmony/node-etsy-client/issues/)",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "node-etsy-client"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "0.3.0"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "<= 0.2.0"
}
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/creharmony/node-etsy-client/security/advisories/GHSA-xw22-wv29-3299"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2021-21421"
}, {
"type" : "WEB",
"url" : "https://github.com/creharmony/node-etsy-client/commit/b4beb8ef080366c1a87dbf9e163051a446acaa7d"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-200", "CWE-209" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2021-04-02T17:05:21Z",
"nvd_published_at" : "2021-04-01T22:15:00Z"
}
}