Description
Mercur @mercurjs/core before 2.3.2 contains a missing object-level authorization vulnerability that allows authenticated vendors to access other sellers by substituting the :id path parameter. Attackers can read payment and tax details, overwrite profiles and addresses, and invite, remove, or re-role team members to take over another vendor's store.
Affected products and versions
mercurjs mercur< 2.3.2Fixed in: 2.3.2
CVSS vector, explained
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- Attack vector
- Network (from the internet)
- Attack complexity
- Low
- Privileges required
- Regular user
- User interaction
- Not required
- Scope
- Vulnerable component only
- Confidentiality
- High impact
- Integrity
- High impact
- Availability
- High impact
Weakness type (CWE)
- CWE-639 Authorization Bypass Through User-Controlled Key
References
- github.com/mercurjs/mercur/security/advisories/GHSA-g3pm-h4c6-4xjj vendor advisory
- github.com/mercurjs/mercur/commit/b81f801b12149296dc8c80992453d2a1687110d3 patch
- github.com/mercurjs/mercur/releases/tag/v2.3.2
- github.com/mercurjs/mercur/blob/v2.3.1/packages/core/src/api/vendor/sellers/%5Bid%5D/route
- www.vulncheck.com/advisories/mercur-mercurjs-core-before-2.3.2-missing-authorization-via-v
Sources: CVE.org (CNA and CISA ADP), CISA KEV, FIRST EPSS. Always check the vendor's official advisory.