First published: Wed Mar 12 2025(Updated: )
# 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](https://github.com/github-community-projects/graphql-client) to load external schemas via GraphQL introspection.
Credit: security-advisories@github.com
Affected Software | Affected Version | How to fix |
---|---|---|
graphql-ruby | >1.11.5<=1.11.8>1.11.8<=1.12.25>1.12.25<=1.13.24>1.13.24<=2.0.32>2.0.32<=2.1.14>2.1.14<=2.2.17>2.2.17<=2.3.21 | |
rubygems/graphql | >=1.11.5<1.11.11 | 1.11.11 |
rubygems/graphql | >=2.1.0<2.1.15 | 2.1.15 |
rubygems/graphql | >=1.12.0<1.12.25 | 1.12.25 |
rubygems/graphql | >=1.13.0<1.13.24 | 1.13.24 |
rubygems/graphql | >=2.0.0<2.0.32 | 2.0.32 |
rubygems/graphql | >=2.2.10<2.2.17 | 2.2.17 |
rubygems/graphql | >=2.3.0<2.3.21 | 2.3.21 |
rubygems/graphql | >=2.4.0<2.4.13 | 2.4.13 |
Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.
CVE-2025-27407 has been classified with a severity level indicating potential impact due to the loading of a malicious schema.
To fix CVE-2025-27407, upgrade to versions 1.11.8, 1.12.25, 1.13.24, 2.0.32, 2.1.14, 2.2.17, or 2.3.21 of graphql-ruby.
The affected versions of graphql-ruby range from 1.11.5 to 1.11.8, from 1.12.0 to 1.12.25, and several other specific versions until 2.3.21.
CVE-2025-27407 is a vulnerability related to the unsafe loading of malicious schema definitions in the graphql-ruby implementation.
Yes, the methods `GraphQL::Schema.from_introspection` and `GraphQL::Schema::Loader.load` are specifically vulnerable in CVE-2025-27407.