Cypher injection via orderBy placeholder in Spring Data Neo4j custom queries
Default status is the baseline for the product, each version can override it (e.g. patched versions marked unaffected).
| Vendor | Product | Default status | Versions | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Neo4j | Spring Data Neo4j | unaffected |
|
No data.
No data.
No data available yet.
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.
No CVSS v3.1
No CVSS v3.0
No CVSS v2
This CVE is not in the KEV list.
No EPSS score available.
Key SSVC decision points have not yet been added.
| Link | Providers |
|---|---|
| https://neo4j.com/security/CVE-2026-125080 |
|
| 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
|