{"id":"CVE-2020-15269","aliases":["CVE-2020-15269","GHSA-f8cm-364f-q9qh"],"related":[],"kind":"vulnerability","state":"published","title":"Expired token reuse in Spree","summary":"In Spree before versions 3.7.11, 4.0.4, or 4.1.11, expired user tokens could be used to access Storefront API v2 endpoints. The issue is patched in versions 3.7.11, 4.0.4 and 4.1.11. A workaround without upgrading is described in the linked advisory.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In Spree before versions 3.7.11, 4.0.4, or 4.1.11, expired user tokens could be used to access Storefront API v2 endpoints. The issue is patched in versions 3.7.11, 4.0.4 and 4.1.11. A workaround without upgrading is described in the linked advisory.","source":"cvelist"},{"lang":"en","text":"### Impact\nThe perpetrator who previously obtained an old expired user token could use it to access Storefront API v2 endpoints. \n\n### Patches\nPlease upgrade to 3.7.11, 4.0.4, or 4.1.11 depending on your used Spree version. \n\n### Workarounds\nIn your project directory create a decorator file `app/controllers/spree/api/v2/base_controller_decotatror.rb` with contents:\n\n```ruby\nmodule Spree\n  module Api\n    module V2\n      module BaseControllerDecorator\n        private\n\n        def spree_current_user\n          return nil unless doorkeeper_token\n          return @spree_current_user if @spree_current_user\n\n          doorkeeper_authorize!\n\n          @spree_current_user ||= ::Spree.user_class.find_by(id: doorkeeper_token.resource_owner_id)\n        end\n     end\n  end\nend\n\nSpree::Api::V2::BaseController.prepend(Spree::Api::V2::BaseControllerDecorator)\n```\n\n### For more information\nIf you have any questions or comments about this advisory:\n* Email us at [security@spreecommerce.org](mailto:security@spreecommerce.org)","format":"markdown","source":"ghsa"},{"lang":"es","text":"En Spree versiones anteriores a 3.7.11, 4.0.4 o 4.1.11, los tokens de usuario vencidos podrían ser usados para acceder a los endpoints de Storefront API versión v2.&#xa0;El problema está parcheado en las versiones 3.7.11, 4.0.4 y 4.1.11.&#xa0;Una solución alternativa sin actualizar es descrita en el aviso vinculado","source":"nvd"}],"published":"2020-10-20T20:03:52.000Z","modified":"2026-07-08T06:00:53.304Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N","score":7.4,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N","score":7.4,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N","score":7.4,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N","score":9.1,"rating":"CRITICAL"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:L/Au:N/C:P/I:P/A:N","score":6.4,"rating":"MEDIUM"}],"cwes":["CWE-287","CWE-613"],"affected":[{"ranges":[{"version":"< 3.7.11","status":"affected"},{"version":">= 4.0.0, < 4.0.4","status":"affected"},{"version":">= 4.1.0, < 4.1.11","status":"affected"}],"vendor":"spree","product":"spree","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"3.7.11"}],"ecosystem":"RubyGems","package":"spree","purl":"pkg:gem/spree","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"4.0.0","status":"affected","fixed":"4.0.4"}],"ecosystem":"RubyGems","package":"spree","purl":"pkg:gem/spree","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"4.1.0","status":"affected","fixed":"4.1.11"}],"ecosystem":"RubyGems","package":"spree","purl":"pkg:gem/spree","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"3.7.11"},{"status":"affected","introduced":"4.0.0","fixed":"4.0.4"},{"status":"affected","introduced":"4.1.0","fixed":"4.1.11"}],"vendor":"sparksolutions","product":"spree","cpe":"cpe:2.3:a:sparksolutions:spree:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/spree/spree/security/advisories/GHSA-f8cm-364f-q9qh","tags":["third-party-advisory","web","x-refsource-confirm","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/spree/spree/commit/e43643abfe51f54bd9208dd02298b366e9b9a847","tags":["patch","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2020-15269","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/rubysec/ruby-advisory-db/blob/master/gems/spree/CVE-2020-15269.yml","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/spree/spree","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2020-15269","url":"https://www.cve.org/CVERecord?id=CVE-2020-15269","licence":"CVE Terms of Use","modified":"2024-08-04T13:15:18.944Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-f8cm-364f-q9qh","url":"https://github.com/advisories/GHSA-f8cm-364f-q9qh","licence":"CC-BY-4.0","modified":"2026-07-08T06:00:53.304Z"},{"source":"nvd","name":"NVD","id":"CVE-2020-15269","url":"https://nvd.nist.gov/vuln/detail/CVE-2020-15269","licence":"Public domain","modified":"2026-06-17T02:56:23.750Z"}],"updatedAt":"2026-11-25T22:57:55.316Z","epss":{"score":0.01064,"percentile":0.65591,"date":"2026-12-01T12:00:22.000Z"}}