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.

Project Subscriptions

Vendors Products
Spring Data Neo4j Subscribe
Advisories

No advisories yet.

Fixes

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.


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.

References
History

Fri, 20 Nov 2026 09:00:00 +0000

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'}


Projects

Sign in to view the affected projects.

cve-icon MITRE

Status: PUBLISHED

Assigner: Neo4j

Published:

Updated: 2026-11-20T08:48:57.543Z

Reserved: 2026-11-09T17:00:48.023Z

Link: CVE-2026-125080

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-11-20T09:19:56.827

Modified: 2026-11-20T09:19:56.827

Link: CVE-2026-125080

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

No data.

Weaknesses