CVE-2026-125080

Cypher injection via orderBy placeholder in Spring Data Neo4j custom queries

Published Nov 20, 2026 CVSS 4.0 · 8.2 High EPSS n/a KEV · Not listed
Description
Improper neutralization of special elements in data query logic (Cypher injection) in the orderBy placeholder handling for custom queries in Neo4j Spring Data Neo4j versions 6.1.0 through 8.0.8 and 8.1.0 through 8.1.2 allows a remote attacker to read database contents via blind reads, write read content into new nodes, or, if APOC and APOC file export are enabled, to write query results to a file in the database's accessible file system via crafted sort order parameters. Exploitation requires an application that passes unvalidated user input as the orderBy value to a custom Cypher query using the placeholder directive.

Remediation

Vendor Solution

Upgrade Spring Data Neo4j to 8.0.9, 8.1.3, 8.2.0 or later (depending on your release line). The fix restricts functions callable in the orderBy directive to an allow list of built-in (non-APOC) functions; the list must be extended intentionally if other functions are needed.


Vendor Workaround

Validate any user-supplied orderBy value against an allow list of known property names and sort directions before passing it to Spring Data Neo4j. Do not expose the orderBy input to untrusted users without validation.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
References
History
Type Values Removed Values Added
Description Improper neutralization of special elements in data query logic (Cypher injection) in the orderBy placeholder handling for custom queries in Neo4j Spring Data Neo4j versions 6.1.0 through 8.0.8 and 8.1.0 through 8.1.2 allows a remote attacker to read database contents via blind reads, write read content into new nodes, or, if APOC and APOC file export are enabled, to write query results to a file in the database's accessible file system via crafted sort order parameters. Exploitation requires an application that passes unvalidated user input as the orderBy value to a custom Cypher query using the placeholder directive.
Title Cypher injection via orderBy placeholder in Spring Data Neo4j custom queries
First Time appeared Neo4j
Neo4j spring Data Neo4j
Weaknesses CWE-943
CPEs cpe:2.3:a:neo4j:spring_data_neo4j:*:*:*:*:*:*:*:*
Vendors & Products Neo4j
Neo4j spring Data Neo4j
References
Metrics cvssV4_0

{'score': 8.2, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
Neo4j
Published
Updated
Nov 20, 2026, 8:48 AM
Reserved
Nov 9, 2026, 5:00 PM
Status
Received
Published
Nov 20, 2026, 9:19 AM
Modified
Nov 20, 2026, 9:19 AM