CVE-2022-36084: cruddl vulnerable to ArangoDB Query Language (AQL) injection through flexSearch
10
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.75858%
CWE
Published
9/16/2022
Updated
1/27/2023
KEV Status
No
Technology
JavaScript
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
| Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
|---|---|---|---|
| cruddl | npm | >= 3.0.0, < 3.0.2 | 3.0.2 |
| cruddl | npm | >= 1.1.0, < 2.7.0 | 2.7.0 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from improper AQL query construction in generateTokenizationQuery. The commit diff shows the function was modified from unsafe string interpolation (TOKENS("${value.expression}", ...)) to parameterized aql-tagged templates. This matches the CWE-74 injection pattern described in the advisory, where user-controlled inputs were not neutralized before being used in downstream AQL queries. The arangodb-adapter.ts changes demonstrate the transition from raw query execution to using parameterized boundValues, confirming the injection vector was in query generation.