Intel

AIKIDO-2026-859672

grafeo-ogm is vulnerable to Improper Authorization

GHSA-7CMX-7R2Q-4RFFPublished Oct 21, 2026
October 21, 2026

88

CVE Score

High

Improper Authorization

Are you affected? Scan for Free

TL;DR

Before the fix, Node-Level Security enforced policies on the root type and skipped them on types reached through relationships. When the root or a type in the middle of a traversal had no policy, Model.resolvePolicyContext() in src/model.ts returned null and buildTargetBundle returned undefined, so nested create, update, delete, and connect, plus explainPolicies, ignored the policies beyond that type; interface and union targets ignored their concrete members' policies, and InterfaceModel treated an implementer whose read rules were all gated by appliesWhen as unrestricted. Model.delete({ delete: { rel: [{ where }] } }) ignored where and deleted every related node, including nodes shared with other records, even when the application defines no policies. { field_NOT: null } compiled to an always-true check, and rel_ALL, a connection node_NOT, and an edge-only relConnection filter were skewed by hidden nodes.

How do I fix this?

Upgrade the grafeo-ogm package to version 2.3.0 or later.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and you use cascade delete, a { field_NOT: null } filter, or Node-Level Security.

Package

Versions

1.0.0 - 2.2.0

Fixed in 2.3.0

Background info

grafeo-ogm is vulnerable to Improper Authorization in versions 1.0.0 - 2.2.0.

Get secure today,
quickly and for free.

Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.

No credit card required | Scan results in 32 seconds.

Trusted by 150k+ orgs
  • Revolut
  • n8n
  • Lovable
  • Deel
  • Prove
  • Omnea