Directus is a popular open-source software used for managing and interacting with database content via APIs. It is widely utilized by developers and organizations to easily create content management systems for various applications. The software is favored for its flexibility and the ease with which it allows connection to existing SQL databases, enabling non-technical users to interact with data. Directus provides both RESTful and GraphQL APIs, offering a modern approach to building applications that require a robust content back-end. It is used globally for creating dynamic content applications, simplifying the workflow for developers creating bespoke solutions. Its extensibility and support for custom hooks and automation make it a preferred choice in modern web application development.
The information disclosure vulnerability in Directus allows unauthenticated attackers to access detailed schema information even if GraphQL introspection is purportedly disabled. By exploiting the routes `/graphql/system` and `/server/specs/graphql`, attackers can still retrieve schema structures. This vulnerability occurs because while attempting to disable introspection through a configuration setting, the routes remain accessible. Consequently, sensitive metadata about collections, field names, types, and their relations can be exposed. This stems from improper implementation in previous versions where the introspection disabling rule was not correctly applied across all endpoints. Protecting schema detail exposure is critical since such information can aid attackers in crafting targeted attacks against the server or its database.
Technically, the vulnerability is tied to the server's failure to enforce the intended configuration setting, `GRAPHQL_INTROSPECTION=false`, across all applicable endpoints. The impact of this is amplified since the server_specs_graphql resolver and associated REST route are misconfigured to still respond with schema details. Attackers can leverage these endpoints to harvest sensitive schema data through unauthenticated requests. Effectively, the vulnerability lies in the lax validation control applied only at the GraphQL validation layer but not enforced uniformly. This results in leaking the full Schema Definition Language (SDL) and other metadata which administrators have tried securing by disabling introspection. The nexus of this issue is the missing integration of default security rules that encompass all respective paths in the service.
When this vulnerability is exploited, it can provide attack vectors with detailed insights into the application's structure, potentially leading to more sophisticated attacks. Unauthenticated disclosure of schema information can help adversaries in better understanding application logic and data flow, enhancing the precision of automated and manual tests to find other vulnerabilities. Knowledge of schema details can accelerate discovery of further weaknesses within the application server or associated database. Attackers may then exploit such information to escalate privileges or access restricted areas reliant on the exposed GraphQL structures. Overall, the unauthorized revelation of backend details facilitates a comprehensive reconnaissance to plan future malicious activities that could disrupt application integrity and confidentiality.
REFERENCES
- https://github.com/directus/directus/security/advisories/GHSA-wxwm-3fxv-mrvx
- https://github.com/directus/directus/pull/26868
- https://github.com/directus/directus/commit/fba89ef4d862b0a410bd7f5ff439501ce807a2b1
- https://github.com/directus/directus/releases/tag/v11.16.1
- https://nvd.nist.gov/vuln/detail/CVE-2026-35413
- Upgrade to Directus 11.16.1 or later.
- Ensure all introspection disabling configurations are applied to all API endpoints in the application settings.
- Conduct regular security audits to verify proper application of security rules across all service routes.
- Consider applying additional security layers such as API gateways or firewalls to monitor and block unauthorized Metadata access.
- Regularly update and patch software based on vendor advisories.
Get AI-powered remediation steps tailored to your asset.
Try AI Solutions →