Vulnerabilities in pkg:npm/node-etsy-client

PACKAGE
Advisory Identifier: GHSA-xw22-wv29-3299
Advisory Summary

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

1 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:npm/node-etsy-client

1 Known Advisory Record(s)

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

CVE Identifier CVE-2021-21421
GHSA Identifier GHSA-xw22-wv29-3299
Severity HIGH
CVSS v3.1 Base Score 8.1
CWE Classification CWE-209: Generation of Error Message Containing Sensitive Information
Affected Product Node etsy client
Package Ecosystem npm
Published Date
Last Updated

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

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

node-etsy-client fixed: 0.3.0
npm install node-etsy-client@0.3.0
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 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

### Impact _What kind of vulnerability is it? Who is impacted?_ Applications that are using node-etsy-client and reporting client error to the end user will offer api key value too ### Patches _Has the problem been patched? What versions should users upgrade to?_ creharmony/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. ### Workarounds _Is there a way for users to fix or remediate the vulnerability without upgrading?_ Do not report or log etsy client error if you are using version <= v0.2.0 Update your version of node-etsy-client ### References _Are there any links users can visit to find out more?_ - https://github.com/creharmony/node-etsy-client/issues/17 : On connect error secret appears in error #17 ### For more information If you have any questions or comments about this advisory: * Open an issue in [github.com/creharmony/node-etsy-client/issues](https://github.com/creharmony/node-etsy-client/issues/)

CVE-2021-21421 Affected Node etsy client Versions

1 component(s)
Fixed Versions:
0.3.0
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?
CVE-2021-21421 is a security vulnerability in Node etsy client involving ApiKey secret could be revelated on network issue under CWE-209: Generation of Error Message Containing Sensitive Information.
Which Node etsy client versions are affected?
Affected versions include releases prior to 0.3.0 across affected packages: node-etsy-client.
What version fixes CVE-2021-21421?
Upgrading to 0.3.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is node-etsy-client affected?
Yes, node-etsy-client is affected in releases prior to 0.3.0. Upgrade your dependency to 0.3.0 or later.
What is the CVSS score of CVE-2021-21421?
CVE-2021-21421 has a CVSS v3.1 base score of 8.1 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H.
What CWE is associated with CVE-2021-21421?
CVE-2021-21421 is classified under CWE-209: Generation of Error Message Containing Sensitive Information (The product generates an error message that includes sensitive information about its environment, users, or associated data.).
How can I check npm dependencies for CVE-2021-21421?
Run the dependency tree command: 'npm ls node-etsy-client'. 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-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"
  }
}