CVE-2026-31840: Parse Server SQL Injection Vulnerability

CRITICAL
Advisory Identifier: GHSA-qpr4-jrj4-6f27
CWE-89
Published
Advisory Summary

CVE-2026-31840 is a CRITICAL sql injection vulnerability (CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')) affecting Parse Server libraries in the npm ecosystem. The issue involves sql injection via dot-notation field name in postgresql. Remediation is available by upgrading affected packages to version 9.6.0-alpha.2, 8.6.28.

CVE-2026-31840 at a Glance

CVE Identifier CVE-2026-31840
GHSA Identifier GHSA-qpr4-jrj4-6f27
Severity CRITICAL
CVSS v3.1 Base Score N/A
CWE Classification CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')
Affected Product Parse Server
Package Ecosystem npm
Published Date
Last Updated

How to Fix CVE-2026-31840

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: 9.6.0-alpha.2
npm install parse-server@9.6.0-alpha.2
parse-server fixed: 8.6.28
npm install parse-server@8.6.28
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-2026-31840, 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 9.6.0-alpha.2), 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-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection'), where the product constructs all or part of an sql command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended sql command when it is sent to a downstream component. without sufficient removal or quoting of sql syntax in user-controllable inputs, the generated sql query can cause those inputs to be interpreted as sql instead of ordinary user data. 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 An attacker can use a dot-notation field name in combination with the `sort` query parameter to inject SQL into the PostgreSQL database through an improper escaping of sub-field values in dot-notation queries. The vulnerability may also affect queries that use dot-notation field names with the `distinct` and `where` query parameters. This vulnerability only affects deployments using a PostgreSQL database. ### Patches The fix escapes characters in dot-notation sub-field values that could allow a SQL breakout. ### Workarounds There is no known workaround. ### References - GitHub security advisory: https://github.com/parse-community/parse-server/security/advisories/GHSA-qpr4-jrj4-6f27 - Fix Parse Server 9: https://github.com/parse-community/parse-server/releases/tag/9.6.0-alpha.2 - Fix Parse Server 8: https://github.com/parse-community/parse-server/releases/tag/8.6.28

CVE-2026-31840 Affected Parse Server Versions

2 component(s)
Fixed Versions:
9.6.0-alpha.28.6.28
Product / Package Ecosystem Affected Versions Fixed Version
parse-server
npm
≥ 9.0.0
< 9.6.0-alpha.2
9.6.0-alpha.2
parse-server
npm
< 8.6.28
8.6.28

References

Frequently Asked Questions

What is CVE-2026-31840?
CVE-2026-31840 is a security vulnerability in Parse Server involving SQL injection via dot-notation field name in PostgreSQL under CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection').
Which Parse Server versions are affected?
Affected versions include releases prior to 9.6.0-alpha.2, 8.6.28 across affected packages: parse-server.
What version fixes CVE-2026-31840?
Upgrading to 9.6.0-alpha.2, 8.6.28 (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 9.6.0-alpha.2, 8.6.28. Upgrade your dependency to 9.6.0-alpha.2, 8.6.28 or later.
What CWE is associated with CVE-2026-31840?
CVE-2026-31840 is classified under CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection') (The product constructs all or part of an SQL command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended SQL command when it is sent to a downstream component. Without sufficient removal or quoting of SQL syntax in user-controllable inputs, the generated SQL query can cause those inputs to be interpreted as SQL instead of ordinary user data.).
How can I check npm dependencies for CVE-2026-31840?
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-qpr4-jrj4-6f27",
  "modified" : "2026-03-11T20:44:07Z",
  "published" : "2026-03-10T18:25:27Z",
  "aliases" : [ "CVE-2026-31840" ],
  "summary" : "Parse Server: SQL injection via dot-notation field name in PostgreSQL",
  "details" : "### Impact\n\nAn attacker can use a dot-notation field name in combination with the `sort` query parameter to inject SQL into the PostgreSQL database through an improper escaping of sub-field values in dot-notation queries. The vulnerability may also affect queries that use dot-notation field names with the `distinct` and `where` query parameters.\n\nThis vulnerability only affects deployments using a PostgreSQL database.\n\n### Patches\n\nThe fix escapes characters in dot-notation sub-field values that could allow a SQL breakout.\n\n### Workarounds\n\nThere is no known workaround.\n\n### References\n\n- GitHub security advisory: https://github.com/parse-community/parse-server/security/advisories/GHSA-qpr4-jrj4-6f27\n- Fix Parse Server 9: https://github.com/parse-community/parse-server/releases/tag/9.6.0-alpha.2\n- Fix Parse Server 8: https://github.com/parse-community/parse-server/releases/tag/8.6.28",
  "severity" : [ {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "npm",
      "name" : "parse-server"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "9.0.0"
      }, {
        "fixed" : "9.6.0-alpha.2"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "npm",
      "name" : "parse-server"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "8.6.28"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/parse-community/parse-server/security/advisories/GHSA-qpr4-jrj4-6f27"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-31840"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/parse-community/parse-server"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/parse-community/parse-server/releases/tag/8.6.28"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/parse-community/parse-server/releases/tag/9.6.0-alpha.2"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-89" ],
    "severity" : "CRITICAL",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-03-10T18:25:27Z",
    "nvd_published_at" : "2026-03-11T17:16:58Z"
  }
}