Vulnerabilities in pkg:gem/graphiti
PACKAGECVE-2026-33286 is a CRITICAL (CVSS 9.1) graphiti affected by arbitrary method vulnerability (CWE-913: Improper Control of Dynamically-Managed Code Resources) affecting Graphiti libraries in the RubyGems ecosystem. The issue involves graphiti affected by arbitrary method execution via unvalidated relationship names. Remediation is available by upgrading affected packages to version 1.10.2.
pkg:gem/graphiti
Vulnerability advisories affecting package pkg:gem/graphiti. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-3m5v-4xp5-gjg2 | CVE-2026-33286 | CRITICAL | Graphiti Affected by Arbitrary Method Execution via Unvalidated Relationship Names |
CVE-2026-33286 at a Glance
Security Impact
CVSS: 9.1
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H).
How to Fix CVE-2026-33286
To remediate this vulnerability, upgrade all affected Graphiti dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade graphiti to 1.10.2
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for graphiti
How to Check if You Are Affected
To determine whether your application is affected by CVE-2026-33286, inspect your project dependencies for Graphiti:
inspect dependencies for graphiti
Analyze the terminal output to locate any version of Graphiti in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.10.2), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-913: Improper Control of Dynamically-Managed Code Resources, where the product does not properly restrict reading from or writing to dynamically-managed code resources such as variables, objects, classes, attributes, functions, or executable instructions or statements. In Graphiti, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2026-33286 Affected Graphiti Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
graphiti
|
RubyGems |
< 1.10.2
|
1.10.2
|
References
Frequently Asked Questions
What is CVE-2026-33286?
Which Graphiti versions are affected?
What version fixes CVE-2026-33286?
Is graphiti affected?
What is the CVSS score of CVE-2026-33286?
What CWE is associated with CVE-2026-33286?
How can I check RubyGems dependencies for CVE-2026-33286?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-3m5v-4xp5-gjg2",
"modified" : "2026-03-25T21:33:29Z",
"published" : "2026-03-20T15:58:14Z",
"aliases" : [ "CVE-2026-33286" ],
"summary" : "Graphiti Affected by Arbitrary Method Execution via Unvalidated Relationship Names",
"details" : "### Summary\n\nAn arbitrary method execution vulnerability has been found which affects Graphiti's JSONAPI write functionality. An attacker can craft a malicious JSONAPI payload with arbitrary relationship names to invoke any public method on the underlying model instance, class or its associations.\n\n### Impact\n\nAny application exposing Graphiti write endpoints (create/update/delete) to untrusted users is affected. \n\nThe `Graphiti::Util::ValidationResponse#all_valid?` method recursively calls `model.send(name)` using relationship names taken directly from user-supplied JSONAPI payloads, without validating them against the resource's configured sideloads. This allows an attacker to potentially run any public method on a given model instance, on the instance class or associated instances or classes, including destructive operations.\n\n### Patches\n\nThis is patched in Graphiti **v1.10.2**. Users should upgrade as soon as possible.\n\n### Workarounds\n\nIf upgrading to v1.10.2 is not immediately possible, consider one or more of the following mitigations:\n\n- **Restrict write access**: Ensure Graphiti write endpoints (create/update/delete) are not accessible to untrusted users.\n- **Authentication & authorisation**: Apply strong authentication and authorisation checks before any write operation is processed, for example use Rails strong parameters to ensure only valid parameters are processed.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "RubyGems",
"name" : "graphiti"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "1.10.2"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "<= 1.10.1"
}
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/graphiti-api/graphiti/security/advisories/GHSA-3m5v-4xp5-gjg2"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-33286"
}, {
"type" : "WEB",
"url" : "https://github.com/graphiti-api/graphiti/commit/ddb5ad2b69330774bd1a47935ed89a9fe4396a54"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/graphiti-api/graphiti"
}, {
"type" : "WEB",
"url" : "https://github.com/graphiti-api/graphiti/releases/tag/v1.10.2"
}, {
"type" : "WEB",
"url" : "https://github.com/rubysec/ruby-advisory-db/blob/master/gems/graphiti/CVE-2026-33286.yml"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-913" ],
"severity" : "CRITICAL",
"github_reviewed" : true,
"github_reviewed_at" : "2026-03-20T15:58:14Z",
"nvd_published_at" : "2026-03-24T00:16:30Z"
}
}