Vulnerabilities in pkg:gem/graphiti

PACKAGE
Advisory Identifier: GHSA-3m5v-4xp5-gjg2
Advisory Summary

CVE-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.

1 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:gem/graphiti

1 Known Advisory Record(s)

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

CVE Identifier CVE-2026-33286
GHSA Identifier GHSA-3m5v-4xp5-gjg2
Severity CRITICAL
CVSS v3.1 Base Score 9.1
CWE Classification CWE-913: Improper Control of Dynamically-Managed Code Resources
Affected Product Graphiti
Package Ecosystem RubyGems
Published Date
Last Updated

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).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality None (C:N)
Integrity High (I:H)
Availability High (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.

graphiti fixed: 1.10.2
Upgrade graphiti to 1.10.2
Verify Direct and Transitive Dependencies

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

### Summary An 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. ### Impact Any application exposing Graphiti write endpoints (create/update/delete) to untrusted users is affected. The `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. ### Patches This is patched in Graphiti **v1.10.2**. Users should upgrade as soon as possible. ### Workarounds If upgrading to v1.10.2 is not immediately possible, consider one or more of the following mitigations: - **Restrict write access**: Ensure Graphiti write endpoints (create/update/delete) are not accessible to untrusted users. - **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.

CVE-2026-33286 Affected Graphiti Versions

1 component(s)
Fixed Versions:
1.10.2
Product / Package Ecosystem Affected Versions Fixed Version
graphiti
RubyGems
< 1.10.2
1.10.2

References

Frequently Asked Questions

What is CVE-2026-33286?
CVE-2026-33286 is a security vulnerability in Graphiti involving Graphiti Affected by Arbitrary Method Execution via Unvalidated Relationship Names under CWE-913: Improper Control of Dynamically-Managed Code Resources.
Which Graphiti versions are affected?
Affected versions include releases prior to 1.10.2 across affected packages: graphiti.
What version fixes CVE-2026-33286?
Upgrading to 1.10.2 (or the latest patched release for your respective branch) resolves the vulnerability.
Is graphiti affected?
Yes, graphiti is affected in releases prior to 1.10.2. Upgrade your dependency to 1.10.2 or later.
What is the CVSS score of CVE-2026-33286?
CVE-2026-33286 has a CVSS v3.1 base score of 9.1 (CRITICAL) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H.
What CWE is associated with CVE-2026-33286?
CVE-2026-33286 is classified under CWE-913: Improper Control of Dynamically-Managed Code Resources (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.).
How can I check RubyGems dependencies for CVE-2026-33286?
Run the dependency tree command: 'inspect dependencies for graphiti'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "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"
  }
}