GHSA-h9wq-xcqx-mqxm: @vendure/core Vendure Cross Site Request Forgery Vulnerability

LOW
Published
Advisory Summary

GHSA-h9wq-xcqx-mqxm is a LOW vendure cross site request forgery vulnerability (General Security Weakness) affecting @vendure/core libraries in the npm ecosystem. The issue involves vendure cross site request forgery vulnerability impacting all api requests. Remediation is available by upgrading affected packages to version 2.0.3.

GHSA-h9wq-xcqx-mqxm at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-h9wq-xcqx-mqxm
Severity LOW
CVSS v3.1 Base Score N/A
CWE Classification General Security Weakness
Affected Product @vendure/core
Package Ecosystem npm
Published Date
Last Updated

How to Fix GHSA-h9wq-xcqx-mqxm

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

@vendure/core fixed: 2.0.3
npm install @vendure/core@2.0.3
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 @vendure/core

How to Check if You Are Affected

To determine whether your Node.js application is affected by GHSA-h9wq-xcqx-mqxm, inspect your project dependencies using npm:

npm ls @vendure/core

Analyze the terminal output to locate any version of @vendure/core in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.0.3), your application is affected.

Note: The npm ls @vendure/core 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 General Security Weakness. In @vendure/core, 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 Vendure is an e-commerce GraphQL framework with a number of APIs and different levels of authorization. By default the Cookie settings are insecure, having the SameSite setting as false which results in not having one (originates from the cookie-session npm package’s default settings). ### Patches In progress ### Workarounds Manually set the `authOptions.cookieOptions.sameSite` configuration option to `'strict'`, `'lax'` or `true`. ### References _Are there any links users can visit to find out more?_

GHSA-h9wq-xcqx-mqxm Affected @vendure/core Versions

1 component(s)
Fixed Versions:
2.0.3
Product / Package Ecosystem Affected Versions Fixed Version
@vendure/core
npm
< 2.0.3
2.0.3

References

Frequently Asked Questions

What is GHSA-h9wq-xcqx-mqxm?
GHSA-h9wq-xcqx-mqxm is a security vulnerability in @vendure/core involving Vendure Cross Site Request Forgery vulnerability impacting all API requests under General Security Weakness.
Which @vendure/core versions are affected?
Affected versions include releases prior to 2.0.3 across affected packages: @vendure/core.
What version fixes GHSA-h9wq-xcqx-mqxm?
Upgrading to 2.0.3 (or the latest patched release for your respective branch) resolves the vulnerability.
Is @vendure/core affected?
Yes, @vendure/core is affected in releases prior to 2.0.3. Upgrade your dependency to 2.0.3 or later.
What CWE is associated with GHSA-h9wq-xcqx-mqxm?
GHSA-h9wq-xcqx-mqxm is classified under General Security Weakness.
How can I check npm dependencies for GHSA-h9wq-xcqx-mqxm?
Run the dependency tree command: 'npm ls @vendure/core'. 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-h9wq-xcqx-mqxm",
  "modified" : "2023-07-11T22:46:19Z",
  "published" : "2023-07-11T22:46:19Z",
  "aliases" : [ ],
  "summary" : "Vendure Cross Site Request Forgery vulnerability impacting all API requests",
  "details" : "### Impact\nVendure is an e-commerce GraphQL framework with a number of APIs and different levels of\nauthorization. By default the Cookie settings are insecure, having the SameSite setting as false\nwhich results in not having one (originates from the cookie-session npm package’s default\nsettings).\n\n### Patches\nIn progress\n\n### Workarounds\nManually set the `authOptions.cookieOptions.sameSite` configuration option to `'strict'`, `'lax'` or `true`.\n\n### References\n_Are there any links users can visit to find out more?_\n",
  "severity" : [ ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "npm",
      "name" : "@vendure/core"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "2.0.3"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/vendure-ecommerce/vendure/security/advisories/GHSA-h9wq-xcqx-mqxm"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/vendure-ecommerce/vendure/commit/4a10d6785a3bf792ddf84053cdf232c205b82c81"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/vendure-ecommerce/vendure"
  } ],
  "database_specific" : {
    "cwe_ids" : [ ],
    "severity" : "LOW",
    "github_reviewed" : true,
    "github_reviewed_at" : "2023-07-11T22:46:19Z",
    "nvd_published_at" : null
  }
}