CVE-2026-31871 — Vulnerability in parse-server — CVE Details
Parse Server vulnerable to SQL Injection via dot-notation sub-key name in `Increment` operation on PostgreSQL
What Should I Do?
Address in Next Maintenance Window
Low exploitation probability (0.63%). Schedule for your next planned update.
Does your project use an affected parse-server version?
Paste your package-lock.json to check it for CVE-2026-31871 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.
Summary
Impact
A SQL injection vulnerability exists in the PostgreSQL storage adapter when processing Increment operations on nested object fields using dot notation (e.g., stats.counter). The sub-key name is interpolated directly into SQL string literals without escaping. An attacker who can send write requests to the Parse Server REST API can inject arbitrary SQL via a crafted sub-key name containing single quotes, potentially executing commands or reading data from the database, bypassing CLPs and ACLs.
Only Postgres deployments are affected.
Patches
The fix escapes single quotes in the sub-key name before interpolating it into the SQL query, preventing breakout from SQL string literals.
Workarounds
There is no known workaround.
References
- GitHub security advisory: https://github.com/parse-community/parse-server/security/advisories/GHSA-gqpp-xgvh-9h7h
- Fix Parse Server 9: https://github.com/parse-community/parse-server/releases/tag/9.6.0-alpha.5
- Fix Parse Server 8: https://github.com/parse-community/parse-server/releases/tag/8.6.31
Advisory Timeline
- First published March 11, 2026 (260 days ago).
- Last revised March 13, 2026 — 3 days after initial publication.
Remediation
Upgrade to the fixed version using your package manager.
npm install parse-server@8.6.31
npm install parse-server@9.6.0-alpha.5
After upgrading, scan your dependencies again to confirm the vulnerability is resolved.
Affected Packages (2)
Affects 1 ecosystem: npm (1).
| Package | Fixed In |
|---|---|
| parse-server npm · Affected: All versions | 8.6.31 |
| parse-server npm · Affected: All versions | 9.6.0-alpha.5 |
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
- CWE-89SQL InjectionMITRE
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 9.8 score means for each attack dimension.
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
References
- https://github.com/parse-community/parse-server/security/advisories/GHSA-gqpp-xgvh-9h7hWEB
- https://nvd.nist.gov/vuln/detail/CVE-2026-31871ADVISORY
- https://github.com/parse-community/parse-serverPACKAGE
- https://github.com/parse-community/parse-server/releases/tag/8.6.31WEB
- https://github.com/parse-community/parse-server/releases/tag/9.6.0-alpha.5WEB
Frequently Asked Questions
- What is CVE-2026-31871?
- Parse Server vulnerable to SQL Injection via dot-notation sub-key name in `Increment` operation on PostgreSQL. This vulnerability has been assigned a severity rating of CRITICAL (CVSS score: 9.8/10).
- How do I check if my project is affected by CVE-2026-31871?
- CVE-2026-31871 affects parse-server. It has a 0.6% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2026-31871 and 200,000+ other known vulnerabilities.
Severity & Exploitability
Maximum impact if exploited, often with little effort or access required.
This is a below-median EPSS score — only 44.8% of tracked vulnerabilities score at or below it, so most tracked vulnerabilities are considered more likely to be exploited than this one.
Also Known As
Related CVEs
- CVE-2023-36475CRITICAL
Parse Server vulnerable to remote code execution via MongoDB BSON parser through prototype pollution
- CVE-2026-27804CRITICAL
Parse Server: Account takeover via JWT algorithm confusion in Google auth adapter
- CVE-2026-30966CRITICAL
Parse Server has role escalation and CLP bypass via direct `_Join` table write
- CVE-2026-32248CRITICAL
Parse Server: Account takeover via operator injection in authentication data identifier
- CVE-2024-27298CRITICAL
ZDI-CAN-19105: Parse Server literalizeRegexPart SQL Injection
- CVE-2026-30965CRITICAL
Parse Server vulnerable to session token exfiltration via `redirectClassNameForKey` query parameter
- CVE-2026-30863CRITICAL
Parse Server: JWT audience validation bypass in Google, Apple, and Facebook authentication adapters
- CVE-2026-31800HIGH
Parse Server: Classes `_GraphQLConfig` and `_Audience` master key bypass via generic class routes