CVE-2021-32691: @apollosproject/data connector rock Auto-merging Person Records Compromised Vulnerability
HIGHCVE-2021-32691 is a HIGH (CVSS 8.8) auto-merging person records compromised vulnerability (CWE-287: Improper Authentication) affecting @apollosproject/data connector rock libraries in the npm ecosystem. The issue involves auto-merging person records compromised. Remediation is available by upgrading affected packages to version 2.20.0.
CVE-2021-32691 at a Glance
Security Impact
CVSS: 8.8
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H).
How to Fix CVE-2021-32691
To remediate this vulnerability, upgrade all affected @apollosproject/data connector rock dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
npm install @apollosproject/data-connector-rock@2.20.0
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
npm ls @apollosproject/data-connector-rock
How to Check if You Are Affected
To determine whether your Node.js application is affected by CVE-2021-32691, inspect your project dependencies using npm:
npm ls @apollosproject/data-connector-rock
Analyze the terminal output to locate any version of @apollosproject/data connector rock in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.20.0), your application is affected.
Note: The npm ls @apollosproject/data-connector-rock command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-287: Improper Authentication, where when an actor claims to have a given identity, the product does not prove or insufficiently proves that the claim is correct. In @apollosproject/data connector rock, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2021-32691 Affected @apollosproject/data connector rock Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
@apollosproject/data-connector-rock
|
npm |
< 2.20.0
|
2.20.0
|
References
Frequently Asked Questions
What is CVE-2021-32691?
Which @apollosproject/data connector rock versions are affected?
What version fixes CVE-2021-32691?
Is @apollosproject/data-connector-rock affected?
What is the CVSS score of CVE-2021-32691?
What CWE is associated with CVE-2021-32691?
How can I check npm dependencies for CVE-2021-32691?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-r578-pj6f-r4ff",
"modified" : "2021-06-16T21:25:21Z",
"published" : "2021-06-21T17:07:47Z",
"aliases" : [ "CVE-2021-32691" ],
"summary" : "Auto-merging Person Records Compromised",
"details" : "### Impact\n\nNew user registrations are able to access anyone's account by only knowing their basic profile information (name, birthday, gender, etc). This includes all app functionality within the app, as well as any authenticated links to Rock-based webpages (such as giving and events).\n\n### Patches\n\nWe have released a security patch on v2.20.0. The solution was to create a duplicate person and then patch the new person with their profile details.\n\n### Workarounds\n\nIf you do not wish to upgrade your app to the new version, you can patch your server by overriding the `create` data source method on the `People` class.\n\n```js\n create = async (profile) => {\n const rockUpdateFields = this.mapApollosFieldsToRock(profile);\n // auto-merge functionality is compromised\n // we are creating a new user and patching them with profile details\n const id = await this.post('/People', {\n Gender: 0, // required by Rock. Listed first so it can be overridden.\n IsSystem: false, // required by rock\n });\n await this.patch(`/People/${id}`, {\n ...rockUpdateFields,\n });\n return id;\n };\n```\n\n### For more information\nIf you have any questions or comments about this advisory:\n* Email us at [support@apollos.app](mailto:support@apollos.app)\n",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "@apollosproject/data-connector-rock"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "2.20.0"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/ApollosProject/apollos-apps/security/advisories/GHSA-r578-pj6f-r4ff"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2021-32691"
}, {
"type" : "WEB",
"url" : "https://github.com/ApollosProject/apollos-apps/commit/cb5f8f1c0b24f1b215b2bb5eb6f9a8e16d728ce2"
}, {
"type" : "WEB",
"url" : "https://github.com/ApollosProject/apollos-apps/releases/tag/v2.20.0"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-287", "CWE-303" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2021-06-16T18:55:04Z",
"nvd_published_at" : "2021-06-16T22:15:00Z"
}
}