CVE-2026-22589 — Vulnerability in spree_core — CVE Details
Spree API has Unauthenticated IDOR - Guest Address
What Should I Do?
Address in Next Maintenance Window
Low exploitation probability (0.64%). Schedule for your next planned update.
Does your project use an affected spree_core version?
Paste your Gemfile.lock to check it for CVE-2026-22589 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.
Summary
Summary
An Unauthenticated Insecure Direct Object Reference (IDOR) vulnerability was identified that allows an unauthenticated attacker to access guest address information without supplying valid credentials or session cookies.
Details
During testing, it was observed that all guest users can make an unauthenticated request to retrieve address data belonging to other guest users by manipulating object identifiers. The attacker would need to know the storefront URL structure to perform this attack (which can be learnt after creating a registered user account).
Affected Component(s)
- Address Edit endpoint:
/addresses/{addressId}/edit
Root Cause
- Faulty authorization check in CanCanCan Ability class:
- can :manage, ::Spree::Address, user_id: user.id
+ can :manage, ::Spree::Address, user_id: user.id if user.persisted?
the user object in Spree::Ability class for guest users is a Spree.user_class.new object.
Addresses endpoint to access it is part of the spree_storefront gem. Headless builds using APIs are not affected, as the Addresses endpoint there is only for registered users, and records are scoped to the currently signed-in user.
PoC
Preconditions
- No authentication required
- No cookies or session tokens set
To reproduce this vulnerability simply perform the request shown below, replacing the number with an arbitrary value.
For the initial request the Guest Address id = 6 is used to obtain the information
Request
GET /addresses/6/edit
Repeat the request and check the response, in this example using Guest Address id = 2.
Request
GET /addresses/2/edit
Impact
An unauthenticated attacker can:
- Enumerate and retrieve guest address information (Addresses associated with User accounts are NOT affected)
- Access personally identifiable information (PII) such as:
- Full names
- Physical addresses
- Phone numbers (if present)
This vulnerability could lead to:
- Privacy violations
- Regulatory compliance issues (e.g., GDPR)
- Loss of user trust
Advisory Timeline
- First published January 8, 2026 (322 days ago).
- Last revised February 3, 2026 — 25 days after initial publication.
Remediation
Upgrade to the fixed version using your package manager.
gem install spree_core -v 5.0.7
gem install spree_core -v 5.2.5
gem install spree_core -v 4.10.2
gem install spree_core -v 5.1.9
After upgrading, scan your dependencies again to confirm the vulnerability is resolved.
Affected Packages (4)
Affects 1 ecosystem: RubyGems (1).
| Package | Fixed In |
|---|---|
| spree_core RubyGems · Affected: 5.0.0, 5.0.1, 5.0.2, 5.0.3 (+3 more) | 5.0.7 |
| spree_core RubyGems · Affected: 5.2.0, 5.2.1, 5.2.2, 5.2.3 (+1 more) | 5.2.5 |
| spree_core RubyGems · Affected: 4.0.0, 4.0.1, 4.0.2, 4.0.3 (+77 more) | 4.10.2 |
| spree_core RubyGems · Affected: 5.1.0, 5.1.1, 5.1.2, 5.1.3 (+5 more) | 5.1.9 |
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
- CWE-639Insecure Direct Object Reference (IDOR)MITRE
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 7.5 score means for each attack dimension.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
References
- https://github.com/spree/spree/security/advisories/GHSA-3ghg-3787-w2xrWEB
- https://nvd.nist.gov/vuln/detail/CVE-2026-22589ADVISORY
- https://github.com/spree/spree/commit/16067def6de8e0742d55313e83b0fbab6d2fd795WEB
- https://github.com/spree/spree/commit/4c2bd62326fba0d846fd9e4bad2c62433829b3adWEB
- https://github.com/spree/spree/commit/d051925778f24436b62fa8e4a6b842c72ca80a67WEB
- https://github.com/spree/spree/commit/e1cff4605eb15472904602aebaf8f2d04852d6adWEB
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/spree_core/CVE-2026-22589.ymlWEB
- https://github.com/spree/spreePACKAGE
Frequently Asked Questions
- What is CVE-2026-22589?
- Spree API has Unauthenticated IDOR - Guest Address. This vulnerability has been assigned a severity rating of HIGH (CVSS score: 7.5/10).
- How do I check if my project is affected by CVE-2026-22589?
- CVE-2026-22589 affects spree_core. It has a 0.6% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2026-22589 and 200,000+ other known vulnerabilities.
Severity & Exploitability
Significant impact if exploited, or exploitable with modest effort.
This is a below-median EPSS score — only 45% of tracked vulnerabilities score at or below it, so most tracked vulnerabilities are considered more likely to be exploited than this one.
Also Known As
Related CVEs
- CVE-2026-126366HIGH
msgpack-ruby JRuby decoder makes uncapped header-count allocations; a 5-byte message forces multi-GiB OOM
- CVE-2026-126081HIGH
Action Pack: Possible Strong Parameters Bypass in Parameters#each_key