grafeo-ogm is vulnerable to Improper Authorization
88
CVE Score
High
Improper Authorization
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.
Upgrade the grafeo-ogm package to version 2.3.0 or later.
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.
1.0.0 - 2.2.0
Fixed in 2.3.0grafeo-ogm is vulnerable to Improper Authorization in versions 1.0.0 - 2.2.0.
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.
I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant
ISO 42001Compliant© All Intel data is openly available and commercially licensed.