{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2024-31205","id":"CVE-2024-31205","title":"Saleor CSRF bypass in refreshToken mutation","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, appl","descriptionLong":"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`.\n","published":"2024-04-08T14:26:30.971Z","updated":"2026-11-11T10:30:49.553499981Z","reserved":"2024-03-29T14:16:31.899Z","status":"Analyzed","rejected":false,"assigner":"GitHub_M","metric":{"version":"3.1","score":4.2,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:N","rating":"medium","source":"GitHub_M"},"metrics":[{"version":"3.1","score":4.2,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:N","rating":"medium","source":"GitHub_M"},{"version":"3.1","score":4.2,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:N","rating":"medium","source":"github.com"},{"version":"3.1","score":5.4,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N","rating":"medium","source":"NVD"},{"version":"3.1","score":4.2,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:N","rating":"medium","source":"OSV"}],"rating":"medium","products":["saleor"],"affectedProducts":[{"vendor":"saleor","product":"saleor","defaultStatus":null,"versions":[{"version":">= 3.10.0, < 3.14.64","status":"affected"},{"version":">= 3.15.0, < 3.15.39","status":"affected"},{"version":">= 3.16.0, < 3.16.39","status":"affected"},{"version":">= 3.17.0, < 3.17.35","status":"affected"},{"version":">= 3.18.0, < 3.18.31","status":"affected"},{"version":">= 3.19.0, < 3.19.19","status":"affected"}],"platforms":[]}],"packages":[],"cwes":["CWE-352"],"aliases":["GHSA-ff69-fwjf-3c9w"],"references":[{"url":"https://github.com/saleor/saleor/security/advisories/GHSA-ff69-fwjf-3c9w","tags":["x_refsource_CONFIRM","x_transferred","Mitigation","Patch","Vendor Advisory","advisory"]},{"url":"https://github.com/saleor/saleor/commit/36699c6f5c99590d24f46e3d5c5b1a3c2fd072e7","tags":["x_refsource_MISC","x_transferred","Patch","fix"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/31xxx/CVE-2024-31205.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-31205","tags":["advisory"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial"},"epss":0.00193,"epssPercentile":0.09078,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2024-31205","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-31205","ok":true,"note":"Analyzed"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2024-31205","ok":true,"note":"0 packages"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2024-31205","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}