CVE-2022-31112: Parse server Protected Fields Exposed Vulnerability

HIGH
Advisory Identifier: GHSA-crrq-vr9j-fxxh
CVSS 8.2
CWE-212 CWE-200
Published
Advisory Summary

CVE-2022-31112 is a HIGH (CVSS 8.2) protected fields exposed vulnerability (CWE-212: Improper Removal of Sensitive Information Before Storage or Transfer) affecting Parse server libraries in the npm ecosystem. The issue involves protected fields exposed via livequery. Remediation is available by upgrading affected packages to version 4.10.13, 5.2.4.

CVE-2022-31112 at a Glance

CVE Identifier CVE-2022-31112
GHSA Identifier GHSA-crrq-vr9j-fxxh
Severity HIGH
CVSS v3.1 Base Score 8.2
CWE Classification CWE-212: Improper Removal of Sensitive Information Before Storage or Transfer
Affected Product Parse server
Package Ecosystem npm
Published Date
Last Updated

Security Impact

CVSS: 8.2

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:N/S:U/C:H/I:L/A:N).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality High (C:H)
Integrity Low (I:L)
Availability None (A:N)

How to Fix CVE-2022-31112

To remediate this vulnerability, upgrade all affected Parse server dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

parse-server fixed: 4.10.13
npm install parse-server@4.10.13
parse-server fixed: 5.2.4
npm install parse-server@5.2.4
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 parse-server

How to Check if You Are Affected

To determine whether your Node.js application is affected by CVE-2022-31112, inspect your project dependencies using npm:

npm ls parse-server

Analyze the terminal output to locate any version of Parse server in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 4.10.13), your application is affected.

Note: The npm ls parse-server 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-212: Improper Removal of Sensitive Information Before Storage or Transfer, where the product stores, transfers, or shares a resource that contains sensitive information, but it does not properly remove that information before the product makes the resource available to unauthorized actors. In Parse server, 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 Parse Server LiveQuery does not remove protected fields in classes, passing them to the client. ### Patches The LiveQueryController now removes protected fields from the client response. ### Workarounds Use `Parse.Cloud.afterLiveQueryEvent` to manually remove protected fields. ### References - https://github.com/parse-community/parse-server/security/advisories/GHSA-crrq-vr9j-fxxh - https://github.com/parse-community/parse-server ### For more information If you have any questions or comments about this advisory: - For questions or comments about this vulnerability visit our [community forum](http://community.parseplatform.org/) or [community chat](http://chat.parseplatform.org/) - Report other vulnerabilities at [report.parseplatform.org](https://report.parseplatform.org/)

CVE-2022-31112 Affected Parse server Versions

2 component(s)
Fixed Versions:
4.10.135.2.4
Product / Package Ecosystem Affected Versions Fixed Version
parse-server
npm
< 4.10.13
4.10.13
parse-server
npm
≥ 5.0.0
< 5.2.4
5.2.4

References

Frequently Asked Questions

What is CVE-2022-31112?
CVE-2022-31112 is a security vulnerability in Parse server involving Protected fields exposed via LiveQuery under CWE-212: Improper Removal of Sensitive Information Before Storage or Transfer.
Which Parse server versions are affected?
Affected versions include releases prior to 4.10.13, 5.2.4 across affected packages: parse-server.
What version fixes CVE-2022-31112?
Upgrading to 4.10.13, 5.2.4 (or the latest patched release for your respective branch) resolves the vulnerability.
Is parse-server affected?
Yes, parse-server is affected in releases prior to 4.10.13, 5.2.4. Upgrade your dependency to 4.10.13, 5.2.4 or later.
What is the CVSS score of CVE-2022-31112?
CVE-2022-31112 has a CVSS v3.1 base score of 8.2 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:N.
What CWE is associated with CVE-2022-31112?
CVE-2022-31112 is classified under CWE-212: Improper Removal of Sensitive Information Before Storage or Transfer (The product stores, transfers, or shares a resource that contains sensitive information, but it does not properly remove that information before the product makes the resource available to unauthorized actors.).
How can I check npm dependencies for CVE-2022-31112?
Run the dependency tree command: 'npm ls parse-server'. 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-crrq-vr9j-fxxh",
  "modified" : "2022-07-06T19:52:23Z",
  "published" : "2022-07-06T19:52:23Z",
  "aliases" : [ "CVE-2022-31112" ],
  "summary" : "Protected fields exposed via LiveQuery",
  "details" : "### Impact\n\nParse Server LiveQuery does not remove protected fields in classes, passing them to the client.\n\n### Patches\nThe LiveQueryController now removes protected fields from the client response.\n\n### Workarounds\nUse `Parse.Cloud.afterLiveQueryEvent` to manually remove protected fields.\n\n### References\n- https://github.com/parse-community/parse-server/security/advisories/GHSA-crrq-vr9j-fxxh\n- https://github.com/parse-community/parse-server\n\n### For more information\nIf you have any questions or comments about this advisory:\n- For questions or comments about this vulnerability visit our [community forum](http://community.parseplatform.org/) or [community chat](http://chat.parseplatform.org/)\n- Report other vulnerabilities at [report.parseplatform.org](https://report.parseplatform.org/)\n",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "npm",
      "name" : "parse-server"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "4.10.13"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "npm",
      "name" : "parse-server"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "5.0.0"
      }, {
        "fixed" : "5.2.4"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/parse-community/parse-server/security/advisories/GHSA-crrq-vr9j-fxxh"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2022-31112"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/parse-community/parse-server/issues/8073"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/parse-community/parse-server/pull/8074"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/parse-community/parse-server/commit/054f3e6ab01d66a0dcfb77725af28eac1485b375"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/parse-community/parse-server/commit/309f64ced8700321df056fb3cc97f15007a00df1"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/parse-community/parse-server/commit/9fd4516cde5c742f9f29dd05468b4a43a85639a6"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/parse-community/parse-server"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/parse-community/parse-server/releases/tag/5.2.4"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-200", "CWE-212" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2022-07-06T19:52:23Z",
    "nvd_published_at" : "2022-06-30T17:15:00Z"
  }
}