GHSA-h9wq-xcqx-mqxm Vendure Cross Site Request Forgery vulnerability impacting all API requests

Not scored Published

Insecure default cookie settings in Vendure allow Cross-Site Request Forgery attacks against all API requests, requiring manual configuration changes to mitigate.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
Available

What is GHSA-h9wq-xcqx-mqxm?

GHSA-h9wq-xcqx-mqxm is a vulnerability in @vendure/core, published on 11 Jul 2023. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.

Official description

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?

Which versions are affected by GHSA-h9wq-xcqx-mqxm?

2 open source packages ship an affected version, including @vendure/core.

PackageAffectedFixed in
@vendure/core npmAll versions2.0.3
@vendure/core npmAll versions2.0.3

How do I fix GHSA-h9wq-xcqx-mqxm?

Upgrade @vendure/core to 2.0.3 or later.

Is GHSA-h9wq-xcqx-mqxm being exploited?

There is no known exploitation of GHSA-h9wq-xcqx-mqxm in the wild and no public exploit code.

Sources

Is GHSA-h9wq-xcqx-mqxm in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free