Improperly Controlled Modification of Dynamically-Determined Object Attributes Affecting @adonisjs/lucid package, versions <21.8.2>=22.0.0-next.0 <22.0.0-next.6


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.47% (37th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Improperly Controlled Modification of Dynamically-Determined Object Attributes vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-JS-ADONISJSLUCID-14927512
  • published14 Jan 2026
  • disclosed13 Jan 2026
  • creditHunter Wodzenski

Introduced: 13 Jan 2026

CVE-2026-22814  (opens in a new tab)
CWE-915  (opens in a new tab)

How to fix?

Upgrade @adonisjs/lucid to version 21.8.2, 22.0.0-next.6 or higher.

Overview

@adonisjs/lucid is a SQL ORM built on top of Active Record pattern

Affected versions of this package are vulnerable to Improperly Controlled Modification of Dynamically-Determined Object Attributes via the merge and fill methods, as well as record creation and update functions. An attacker can manipulate internal ORM state and bypass logic controls by injecting specially crafted keys into the payload passed to model assignment methods. This can result in unauthorized modification of records or logic bypasses by overwriting internal properties such as $isPersisted, $attributes, or $isDeleted.

Workaround

This vulnerability can be mitigated by strictly validating model inputs with an allow list that drops unknown keys.

CVSS Base Scores

version 4.0
version 3.1