Skip to main content
Network Thinking Solutions Logo

CVE-2024-31205

Saleor CSRF bypass in refreshToken mutation

All CVEs
CVE-2024-31205Published 4/8/2024

Saleor CSRF bypass in refreshToken mutation

Vendor advisory
CVSS5.4Medium

Overview

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 `JWT_REFRESH_TOKEN_COOKIE_NAME` 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.refresh_token.py.get_refresh_token`. This will fix the issue, but be aware, that it returns `JWT_MISSING_TOKEN` instead of `JWT_INVALID_TOKEN`.

Published
4/8/2024
Last modified
6/17/2026
CVE assigner
Not available
NVD analysis
Not available

Exploitation

No CISA KEV flag in the saved record

An absent KEV flag does not establish that exploitation has never occurred. Verify current intelligence before prioritizing work.

EPSS predictions and CISA SSVC assessments are not imported here. Review additional intelligence on Cloudflare

Affected products

Affected-version rules published in the advisory. Conditions and uncertain comparisons require verification.

Vendor / productAffected versionsPlatform / conditionsEvidence
saleor
saleor
≥ 3.10.0, < 3.14.64

Verify advisory

Source
saleor
saleor
≥ 3.15.0, < 3.15.39

Verify advisory

Source
saleor
saleor
≥ 3.16.0, < 3.16.39

Verify advisory

Source
saleor
saleor
≥ 3.17.0, < 3.17.35

Verify advisory

Source
saleor
saleor
≥ 3.18.0, < 3.18.31

Verify advisory

Source
saleor
saleor
≥ 3.19.0, < 3.19.19

Verify advisory

Source
saleor
saleor
>= 3.10.0, < 3.14.64

Verify advisory

Source
saleor
saleor
>= 3.15.0, < 3.15.39

Verify advisory

Source
saleor
saleor
>= 3.16.0, < 3.16.39

Verify advisory

Source
saleor
saleor
>= 3.17.0, < 3.17.35

Verify advisory

Source
saleor
saleor
>= 3.18.0, < 3.18.31

Verify advisory

Source
saleor
saleor
>= 3.19.0, < 3.19.19

Verify advisory

Source

Recommended actions

Verify the product, installed version, platform, and advisory prerequisites on each system. Apply the vendor's applicable fixed release or mitigation. An affected-range boundary alone is not a universal update recommendation.

Vendor advisory links

Derived from non-aggregator references because the source record has no vendor tags. Verify the advisory before acting on it.

Severity

CVSS describes technical impact. It is separate from exploitation evidence.

Published headline score: 5.4. Score version, vector, and attribution are not available in this record. Additional score details appear when the source record is next refreshed.

Sources & references

Sources: Official CVE List, NVD and cve.now (summaries CC BY 4.0). Uses NVD data; not endorsed by NVD.