Cross-site Request Forgery (CSRF) Affecting @vendure/core package, versions <2.0.3


Severity

Recommended
0.0
medium
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Cross-site Request Forgery (CSRF) vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-JS-VENDURECORE-5772121
  • published12 Jul 2023
  • disclosed11 Jul 2023
  • creditYaniv-git

Introduced: 11 Jul 2023

CVE NOT AVAILABLE CWE-352  (opens in a new tab)

How to fix?

Upgrade @vendure/core to version 2.0.3 or higher.

Overview

@vendure/core is an A modern, headless ecommerce framework

Affected versions of this package are vulnerable to Cross-site Request Forgery (CSRF) such that 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).

Workaround

Users who are unable to upgrade to the fixed version can manually set the authOptions.cookieOptions.sameSite configuration option to 'strict', 'lax' or true.

References

CVSS Scores

version 3.1