rmosolgo/graphql-ruby · Security

graphql allows remote code execution when loading a crafted GraphQL schema

GHSA ID
GHSA-q92j-grw3-h492
CVE ID
CVE-2025-27407
Severity
critical
Published
Updated
CVSS
9 · CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H
CVSS v3
9 · CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H

Description

Summary

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.

CWEs

References