{"answers":{"affected":"2 open source packages ship an affected version, including spree_auth_devise. It affects 1 product.","exploited":"There is no known exploitation of CVE-2013-2506 in the wild and no public exploit code.","fix":"Upgrade spree_auth_devise to 3.0.5 or later.","what":"CVE-2013-2506 is a medium-severity vulnerability in n/a, published on 8 Mar 2013. Any signed-in user can exploit it over the network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2013-2506 and fix it if it is affected.\n\nWhat it is: CVE-2013-2506 is a medium-severity vulnerability in n/a, published on 8 Mar 2013. Any signed-in user can exploit it over the network, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2013-2506 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- spree_auth_devise (RubyGems): affected from 1.0.0; fixed in 3.0.5\n- spree_auth_devise (RubyGems): affected from 1.0.0; fixed in 3.0.5\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2013-2506/ (Markdown: https://insights.sbomify.com/CVE-2013-2506/index.md)","id":"CVE-2013-2506","markdown":"https://insights.sbomify.com/CVE-2013-2506/index.md","name":"CVE-2013-2506","record":{"aliases":["GHSA-jp57-9j37-5476"],"analysis":{"component_type":"web_application","fix_type":"upgrade","impacts":["privilege_escalation"],"network_reachable":"yes","non_default_config":false,"product_category":"Spree e-commerce platform","requires_auth":"low_privilege","summary":"Authenticated users can escalate privileges by assigning arbitrary roles to themselves due to unsafe mass assignment in Spree.","user_interaction":"not_required","vuln_class":"privilege_escalation"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"mitre","cpe":[{"product":"spree","vendor":"spreecommerce"}],"cvss":{"score":4,"severity":"medium","source":"nvd","vector":"AV:N/AC:L/Au:S/C:N/I:P/A:N","version":"2.0"},"cwes":[{"id":"CWE-264","name":null}],"description":"app/models/spree/user.rb in spree_auth_devise in Spree 1.1.x before 1.1.6, 1.2.x, and 1.3.x does not perform mass assignment safely when updating a user, which allows remote authenticated users to assign arbitrary roles to themselves.","ecosystems":["RubyGems"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"spree_auth_devise allows remote authenticated users to assign themselves arbitrary roles","id":"CVE-2013-2506","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"RubyGems","product":null,"products":[],"type":"privilege_escalation","year":"2013"},"n_packages":2,"n_references":2,"next":{"headline":"Cross-site scripting in n/a","id":"CVE-2013-2507"},"packages":[{"ecosystem":"RubyGems","fixed":["3.0.5"],"introduced":["1.0.0"],"last_affected":[],"package":"spree_auth_devise","purl":null,"source":"GHSA-jp57-9j37-5476"},{"ecosystem":"RubyGems","fixed":["3.0.5"],"introduced":["1.0.0"],"last_affected":[],"package":"spree_auth_devise","purl":"pkg:gem/spree_auth_devise","source":"GHSA-jp57-9j37-5476"}],"prev":{"headline":"Cross-site scripting in n/a","id":"CVE-2013-2504"},"products":["n/a"],"published":"2013-03-08","related":[{"cvss_score":10,"headline":"Spreecommerce \u003c 0.60.2 Search Parameter RCE","id":"CVE-2011-10019","kev_date_added":null,"published":"2025-08-13"},{"cvss_score":9.3,"headline":"Spreecommerce \u003c 0.50.x API RCE","id":"CVE-2011-10026","kev_date_added":null,"published":"2025-08-20"},{"cvss_score":7.7,"headline":"Unauthenticated Spree Commerce users can view completed guest orders by Order ID","id":"CVE-2026-25757","kev_date_added":null,"published":"2026-02-06"},{"cvss_score":7.7,"headline":"Spree allows unauthenticated users can access all guest addresses","id":"CVE-2026-25758","kev_date_added":null,"published":"2026-02-06"},{"cvss_score":7.7,"headline":"Authorization bypass in Spree","id":"CVE-2020-26223","kev_date_added":null,"published":"2020-11-13"},{"cvss_score":7.5,"headline":"Spree API has Unauthenticated IDOR - Guest Address","id":"CVE-2026-22589","kev_date_added":null,"published":"2026-01-10"},{"cvss_score":6.5,"headline":"Spree API has Authenticated Insecure Direct Object Reference (IDOR) via Order Modification","id":"CVE-2026-22588","kev_date_added":null,"published":"2026-01-08"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2024-08-06","vendors":["n/a"]},"summary":"Authenticated users can escalate privileges by assigning arbitrary roles to themselves due to unsafe mass assignment in Spree.","url":"https://insights.sbomify.com/CVE-2013-2506/"}