{"id":"CVE-2026-31871","aliases":["BIT-parse-2026-31871","GHSA-gqpp-xgvh-9h7h"],"url":"https://o3.security/vulnerability/CVE-2026-31871","summary":"Parse Server has a SQL Injection via dot-notation sub-key name in `Increment` operation on PostgreSQL","details":"### Impact\n\nA 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.\n\nOnly Postgres deployments are affected.\n\n### Patches\n\nThe fix escapes single quotes in the sub-key name before interpolating it into the SQL query, preventing breakout from SQL string literals.\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-gqpp-xgvh-9h7h\n- Fix Parse Server 9: https://github.com/parse-community/parse-server/releases/tag/9.6.0-alpha.5\n- Fix Parse Server 8: https://github.com/parse-community/parse-server/releases/tag/8.6.31","published":"2026-03-11T18:01:16.804Z","modified":"2026-08-12T03:51:08.323129444Z","cvss":null,"epss":null,"cisaKev":null,"exploitsKnown":0,"affectedPackages":[{"ecosystem":"npm","name":"parse-server","fixedVersion":"9.6.0-alpha.5"},{"ecosystem":"npm","name":"parse-server","fixedVersion":"8.6.31"}],"fix":null,"references":[{"type":"WEB","url":"https://github.com/parse-community/parse-server/releases/tag/8.6.31"},{"type":"WEB","url":"https://github.com/parse-community/parse-server/releases/tag/9.6.0-alpha.5"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/31xxx/CVE-2026-31871.json"},{"type":"ADVISORY","url":"https://github.com/parse-community/parse-server/security/advisories/GHSA-gqpp-xgvh-9h7h"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-31871"},{"type":"PACKAGE","url":"https://github.com/parse-community/parse-server"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-08-12T03:51:08.323129444Z"}}