CVE-2026-47385: Nocodb Ast Sqli Knex Raw

Directly using an unvalidated AST node `.value` in a raw SQL query execution (e.g., $DB.raw()) can lead to SQL injection. Validate the node's value against an explicit allowlist (e.g., 'asc', 'desc') before passing it to the builder.

Provally CuratedPublic repositoryHighMedium confidenceVerifiedApache-2.0TS
greprules fetch cve-2026-47385-nocodb-ast-sqli-knex-raw --engine opengrep

Description

Directly using an unvalidated AST node `.value` in a raw SQL query execution (e.g., $DB.raw()) can lead to SQL injection. Validate the node's value against an explicit allowlist (e.g., 'asc', 'desc') before passing it to the builder.