CVE-2024-31205: Saleor CSRF bypass in refreshToken mutation

Published Apr 8, 2024
·
Updated

Saleor is an e-commerce platform. Starting in version 3.10.0 and prior to versions 3.14.64, 3.15.39, 3.16.39, 3.17.35, 3.18.31, and 3.19.19, an attacker may bypass cross-set request forgery (CSRF) validation when calling refresh token mutation with empty string. When a user provides an empty string in refreshToken mutation, while the token persists in JWTREFRESHTOKENCOOKIENAME cookie, application omits validation against CSRF token and returns valid access token. Versions 3.14.64, 3.15.39, 3.16.39, 3.17.35, 3.18.31, and 3.19.19 contain a patch for the issue. As a workaround, one may replace saleor.graphql.account.mutations.authentication.refreshtoken.py.getrefreshtoken. This will fix the issue, but be aware, that it returns JWTMISSINGTOKEN instead of JWTINVALIDTOKEN.

Affected Software

7 affected components
Saleor Saleor>3.10.0<=3.14.64, >3.14.64<3.15.39, >3.15.39<3.16.39, >3.16.39<3.17.35, >3.17.35<3.18.31, >3.18.31<3.19.19
Saleor Saleor>=3.10.0<3.14.64
Saleor Saleor>=3.15.0<3.15.39
Saleor Saleor>=3.16.0<3.16.39
Saleor Saleor>=3.17.0<3.17.35
Saleor Saleor>=3.18.0<3.18.31
Saleor Saleor>=3.19.0<3.19.19

Event History

Apr 8, 2024
CVE Published
via MITRE·02:26 PM
Data Sourced
via MITRE·02:26 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·03:15 PM
RemedyDescriptionSeverityWeaknessAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2024-31205?

CVE-2024-31205 has been classified as a medium severity vulnerability.

2

How do I fix CVE-2024-31205?

To fix CVE-2024-31205, upgrade Saleor to version 3.14.64 or newer, specifically 3.15.39, 3.16.39, 3.17.35, 3.18.31, or 3.19.19.

3

Which versions of Saleor are affected by CVE-2024-31205?

CVE-2024-31205 affects Saleor versions from 3.10.0 to 3.19.18, excluding the patched versions.

4

What kind of attack does CVE-2024-31205 enable?

CVE-2024-31205 enables attackers to bypass CSRF validation during the refresh token mutation.

5

When was CVE-2024-31205 disclosed?

CVE-2024-31205 was disclosed in mid-2024.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203