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

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 4.2
- **CVSS:** 4.2 (v3.1, CNA) `CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:N`
- **CVSS metrics:** Attack vector: Network; Attack complexity: High; Privileges required: None; User interaction: Required; Scope: Unchanged; Confidentiality impact: Low; Integrity impact: Low; Availability impact: None
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 0.24% (percentile 9, 2026-11-26)
- **CWE:** CWE-352
- **Published:** 2024-04-08T14:26:30.971Z
- **Modified:** 2026-06-17T07:27:58.680Z

## Who should check

- Anyone running saleor \>= 3.10.0, \< 3.14.64; \>= 3.15.0, \< 3.15.39; \>= 3.16.0, \< 3.16.39; \>= 3.17.0, \< 3.17.35; \>= 3.18.0, \< 3.18.31; \>= 3.19.0, \< 3.19.19

## Description

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\`.

## Affected and fixed versions

- saleor: \>= 3.10.0, \< 3.14.64; \>= 3.15.0, \< 3.15.39; \>= 3.16.0, \< 3.16.39; \>= 3.17.0, \< 3.17.35; \>= 3.18.0, \< 3.18.31; \>= 3.19.0, \< 3.19.19 (cvelist)

## Mitigation

- Upgrade saleor to 3.19.19 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2024-31205. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2024-31205.md
Affected: saleor >= 3.10.0, < 3.14.64; >= 3.15.0, < 3.15.39; >= 3.16.0, < 3.16.39; >= 3.17.0, < 3.17.35; >= 3.18.0, < 3.18.31; >= 3.19.0, < 3.19.19
Fixed in: saleor 3.14.64, saleor 3.15.39, saleor 3.16.39, saleor 3.17.35, saleor 3.18.31, saleor 3.19.19

Steps:
1. Search this machine and project for saleor: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2024-31205 being exploited?

There is no confirmed exploitation: CVE-2024-31205 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.24% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2024-31205?

Medium: CVSS 4.2 (v3.1, scored by CNA). Remote, no login needed. A user has to take an action, such as opening a link, for the attack to work. The attack needs conditions outside the attacker's control, which makes it harder.

### Which versions are affected by CVE-2024-31205?

saleor \>= 3.10.0, \< 3.14.64; \>= 3.15.0, \< 3.15.39; \>= 3.16.0, \< 3.16.39; \>= 3.17.0, \< 3.17.35; \>= 3.18.0, \< 3.18.31; \>= 3.19.0, \< 3.19.19.

### Is there a fix for CVE-2024-31205?

Yes. Fixed in saleor 3.14.64, saleor 3.15.39, saleor 3.16.39, saleor 3.17.35, saleor 3.18.31, saleor 3.19.19. Upgrade saleor to 3.19.19 or later.

### How do I check if I'm affected by CVE-2024-31205?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://github.com/saleor/saleor/security/advisories/GHSA-ff69-fwjf-3c9w>
- patch: <https://github.com/saleor/saleor/commit/36699c6f5c99590d24f46e3d5c5b1a3c2fd072e7>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2024-31205>

HTML: <https://flawdb.com/CVE-2024-31205> · JSON: <https://flawdb.com/api/v1/entries/CVE-2024-31205>
