RubySec

Providing security resources for the Ruby community

CVE-2025-27407 (graphql): graphql allows remote code execution when loading a crafted GraphQL schema

ADVISORIES

GEM

graphql

SEVERITY

CVSS v3.x: 9.1 (Critical)

UNAFFECTED VERSIONS

  • < 1.11.5

PATCHED VERSIONS

  • ~> 1.11.11
  • ~> 1.12.25
  • ~> 1.13.24
  • ~> 2.0.32
  • ~> 2.1.15
  • ~> 2.2.17
  • ~> 2.3.21
  • >= 2.4.13

DESCRIPTION

Loading a malicious schema definition in GraphQL::Schema.from_introspection (or GraphQL::Schema::Loader.load) can result in remote code execution. Any system which loads a schema by JSON from an untrusted source is vulnerable, including those that use GraphQL::Client to load external schemas via GraphQL introspection.

RELATED