Vulnerabilities in pkg:npm/storefront-api

PACKAGE
Advisory Identifier: GHSA-9wxj-37p8-49ff
Advisory Summary

CVE-2020-11883 is a MODERATE (CVSS 5.3) diavante vue-storefront-api and storefront-api disclose vulnerability (CWE-209: Generation of Error Message Containing Sensitive Information) affecting Storefront api libraries in the npm ecosystem. The issue involves diavante vue-storefront-api and storefront-api disclose stack trace. Remediation is available by upgrading affected packages to version 1.0.0-rc3, 1.12.0.

1 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:npm/storefront-api

1 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:npm/storefront-api. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-9wxj-37p8-49ff CVE-2020-11883 MODERATE Diavante vue-storefront-api and storefront-api disclose stack trace

CVE-2020-11883 at a Glance

CVE Identifier CVE-2020-11883
GHSA Identifier GHSA-9wxj-37p8-49ff
Severity MODERATE
CVSS v3.1 Base Score 5.3
CWE Classification CWE-209: Generation of Error Message Containing Sensitive Information
Affected Product Storefront api
Package Ecosystem npm
Published Date
Last Updated

Security Impact

CVSS: 5.3

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:L/I:N/A:N).

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

How to Fix CVE-2020-11883

To remediate this vulnerability, upgrade all affected Storefront api dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

storefront-api fixed: 1.0.0-rc3
npm install storefront-api@1.0.0-rc3
vue-storefront-api fixed: 1.12.0
npm install vue-storefront-api@1.12.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 storefront-api

How to Check if You Are Affected

To determine whether your Node.js application is affected by CVE-2020-11883, inspect your project dependencies using npm:

npm ls storefront-api

Analyze the terminal output to locate any version of Storefront api in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.0.0-rc3), your application is affected.

Note: The npm ls storefront-api 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 Storefront api, 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

In Divante vue-storefront-api through 1.11.1 and storefront-api through 1.0-rc.1, as used in VueStorefront PWA, unexpected HTTP requests lead to an exception that discloses the error stack trace, with absolute file paths and Node.js module names.

CVE-2020-11883 Affected Storefront api Versions

2 component(s)
Fixed Versions:
1.0.0-rc31.12.0
Product / Package Ecosystem Affected Versions Fixed Version
storefront-api
npm
< 1.0.0-rc3
1.0.0-rc3
vue-storefront-api
npm
< 1.12.0
1.12.0

References

Frequently Asked Questions

What is CVE-2020-11883?
CVE-2020-11883 is a security vulnerability in Storefront api involving Diavante vue-storefront-api and storefront-api disclose stack trace under CWE-209: Generation of Error Message Containing Sensitive Information.
Which Storefront api versions are affected?
Affected versions include releases prior to 1.0.0-rc3, 1.12.0 across affected packages: storefront-api, vue-storefront-api.
What version fixes CVE-2020-11883?
Upgrading to 1.0.0-rc3, 1.12.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is storefront-api affected?
Yes, storefront-api is affected in releases prior to 1.0.0-rc3. Upgrade your dependency to 1.0.0-rc3 or later.
Is vue-storefront-api affected?
Yes, vue-storefront-api is affected in releases prior to 1.12.0. Upgrade your dependency to 1.12.0 or later.
What is the CVSS score of CVE-2020-11883?
CVE-2020-11883 has a CVSS v3.1 base score of 5.3 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N.
What CWE is associated with CVE-2020-11883?
CVE-2020-11883 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-2020-11883?
Run the dependency tree command: 'npm ls storefront-api'. 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-9wxj-37p8-49ff",
  "modified" : "2023-07-13T17:45:08Z",
  "published" : "2022-05-24T17:15:44Z",
  "aliases" : [ "CVE-2020-11883" ],
  "summary" : "Diavante vue-storefront-api and storefront-api disclose stack trace",
  "details" : "In Divante vue-storefront-api through 1.11.1 and storefront-api through 1.0-rc.1, as used in VueStorefront PWA, unexpected HTTP requests lead to an exception that discloses the error stack trace, with absolute file paths and Node.js module names.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "npm",
      "name" : "storefront-api"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.0.0-rc3"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "npm",
      "name" : "vue-storefront-api"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.12.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2020-11883"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/DivanteLtd/storefront-api/pull/59"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/DivanteLtd/vue-storefront-api/pull/431"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/vuestorefront/storefront-api/commit/9165b80c72b469c9615ce2f665499e6f6ead0a6a"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/vuestorefront/vue-storefront-api/commit/965247f41f872e84e4662d04d8e2108eaf6119da"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-200", "CWE-209" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2023-07-13T17:45:08Z",
    "nvd_published_at" : "2020-04-17T19:15:00Z"
  }
}