CVE-2021-32691: @apollosproject/data connector rock Auto-merging Person Records Compromised Vulnerability

HIGH
Advisory Identifier: GHSA-r578-pj6f-r4ff
CVSS 8.8
CWE-287 CWE-303
Published
Advisory Summary

CVE-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

CVE Identifier CVE-2021-32691
GHSA Identifier GHSA-r578-pj6f-r4ff
Severity HIGH
CVSS v3.1 Base Score 8.8
CWE Classification CWE-287: Improper Authentication
Affected Product @apollosproject/data connector rock
Package Ecosystem npm
Published Date
Last Updated

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).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction Required (UI:R)
Scope Unchanged (S:U)
Confidentiality High (C:H)
Integrity High (I:H)
Availability High (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.

@apollosproject/data-connector-rock fixed: 2.20.0
npm install @apollosproject/data-connector-rock@2.20.0
Verify Direct and Transitive Dependencies

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

### Impact New 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). ### Patches We 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. ### Workarounds If 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. ```js create = async (profile) => { const rockUpdateFields = this.mapApollosFieldsToRock(profile); // auto-merge functionality is compromised // we are creating a new user and patching them with profile details const id = await this.post('/People', { Gender: 0, // required by Rock. Listed first so it can be overridden. IsSystem: false, // required by rock }); await this.patch(`/People/${id}`, { ...rockUpdateFields, }); return id; }; ``` ### For more information If you have any questions or comments about this advisory: * Email us at [support@apollos.app](mailto:support@apollos.app)

CVE-2021-32691 Affected @apollosproject/data connector rock Versions

1 component(s)
Fixed Versions:
2.20.0
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?
CVE-2021-32691 is a security vulnerability in @apollosproject/data connector rock involving Auto-merging Person Records Compromised under CWE-287: Improper Authentication.
Which @apollosproject/data connector rock versions are affected?
Affected versions include releases prior to 2.20.0 across affected packages: @apollosproject/data-connector-rock.
What version fixes CVE-2021-32691?
Upgrading to 2.20.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is @apollosproject/data-connector-rock affected?
Yes, @apollosproject/data-connector-rock is affected in releases prior to 2.20.0. Upgrade your dependency to 2.20.0 or later.
What is the CVSS score of CVE-2021-32691?
CVE-2021-32691 has a CVSS v3.1 base score of 8.8 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H.
What CWE is associated with CVE-2021-32691?
CVE-2021-32691 is classified under CWE-287: Improper Authentication (When an actor claims to have a given identity, the product does not prove or insufficiently proves that the claim is correct.).
How can I check npm dependencies for CVE-2021-32691?
Run the dependency tree command: 'npm ls @apollosproject/data-connector-rock'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "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"
  }
}