GHSA-h9wq-xcqx-mqxm: @vendure/core Vendure Cross Site Request Forgery Vulnerability
LOWGHSA-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
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.
npm install @vendure/core@2.0.3
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
GHSA-h9wq-xcqx-mqxm Affected @vendure/core Versions
1 component(s)| 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?
Which @vendure/core versions are affected?
What version fixes GHSA-h9wq-xcqx-mqxm?
Is @vendure/core affected?
What CWE is associated with GHSA-h9wq-xcqx-mqxm?
How can I check npm dependencies for GHSA-h9wq-xcqx-mqxm?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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
}
}