Skip to content

Cypher injection fixes - #966

Merged
gem-neo4j merged 7 commits into
devfrom
cypher_injection_fixes
Sep 9, 2026
Merged

gem-neo4j merged 7 commits into
devfrom
cypher_injection_fixes

Conversation

@gem-neo4j

Copy link
Copy Markdown
Contributor

Fixes a bunch of potential cypher injection cases:

Linear: Fixes SURF-1414, SURF-1413, SURF-1411, SURF-1410, SURF-1409, SURF-1404

@fredrik-neo4j fredrik-neo4j left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

if (identProps == null) return "";
return identProps.keySet().stream()
.map(Util::quote)
.map(key -> Util.sanitize(key, true))

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there a practical use case for Util.quote or should it be removed in favor for Util.sanitize

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems to have 50 uses so might be that easy of a replacement

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah, didn't really want to open that can of worms 😅

@gem-neo4j
gem-neo4j merged commit c7cb012 into dev Sep 9, 2026
7 checks passed
@gem-neo4j
gem-neo4j deleted the cypher_injection_fixes branch September 9, 2026 13:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants