{"answers":{"affected":"4 open source packages ship an affected version, including @adonisjs/lucid.","exploited":"There is no known exploitation of CVE-2026-22814 in the wild and no public exploit code.","fix":"Upgrade @adonisjs/lucid to a fixed version for your release line: 21.8.2 or 22.0.0-next.6.","what":"CVE-2026-22814 is a high-severity vulnerability in adonisjs lucid, published on 13 Jan 2026. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2026-22814 and fix it if it is affected.\n\nWhat it is: CVE-2026-22814 is a high-severity vulnerability in adonisjs lucid, published on 13 Jan 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2026-22814 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- @adonisjs/lucid (npm): affected all versions; fixed in 21.8.2\n- @adonisjs/lucid (npm): affected all versions; fixed in 21.8.2\n- @adonisjs/lucid (npm): affected from 22.0.0-next.0; fixed in 22.0.0-next.6\n- @adonisjs/lucid (npm): affected from 22.0.0-next.0; fixed in 22.0.0-next.6\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2026-22814/ (Markdown: https://insights.sbomify.com/CVE-2026-22814/index.md)","id":"CVE-2026-22814","markdown":"https://insights.sbomify.com/CVE-2026-22814/index.md","name":"CVE-2026-22814","record":{"aliases":["GHSA-g5gc-h5hp-555f"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["data_modify","security_bypass"],"network_reachable":"yes","non_default_config":false,"product_category":"AdonisJS ORM library","requires_auth":"none","summary":"Attackers can overwrite internal ORM state via mass assignment, leading to unauthorized record modification and logic bypasses in AdonisJS applications.","user_interaction":"not_required","vuln_class":"business_logic"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[],"cvss":{"score":8.2,"severity":"high","source":"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","version":"4.0"},"cwes":[{"id":"CWE-915","name":"Improperly Controlled Modification of Dynamically-Determined Object Attributes"}],"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.","ecosystems":["npm"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Mass Assignment in AdonisJS Lucid Allows Overwriting Internal ORM State","id":"CVE-2026-22814","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"npm","product":null,"products":[],"type":"business_logic","year":"2026"},"n_packages":4,"n_references":1,"next":{"headline":"AIOHTTP: Uncapped memory usage possible through aiohttp allowing unlimited trailer headers","id":"CVE-2026-22815"},"packages":[{"ecosystem":"npm","fixed":["21.8.2"],"introduced":["0"],"last_affected":[],"package":"@adonisjs/lucid","purl":null,"source":"GHSA-g5gc-h5hp-555f"},{"ecosystem":"npm","fixed":["21.8.2"],"introduced":["0"],"last_affected":[],"package":"@adonisjs/lucid","purl":"pkg:npm/%40adonisjs/lucid","source":"GHSA-g5gc-h5hp-555f"},{"ecosystem":"npm","fixed":["22.0.0-next.6"],"introduced":["22.0.0-next.0"],"last_affected":[],"package":"@adonisjs/lucid","purl":null,"source":"GHSA-g5gc-h5hp-555f"},{"ecosystem":"npm","fixed":["22.0.0-next.6"],"introduced":["22.0.0-next.0"],"last_affected":[],"package":"@adonisjs/lucid","purl":"pkg:npm/%40adonisjs/lucid","source":"GHSA-g5gc-h5hp-555f"}],"prev":{"headline":"Malicious website can execute commands on the local system through XSS in the OpenCode web UI","id":"CVE-2026-22813"},"products":["lucid"],"published":"2026-01-13","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"yes","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2026-01-14","vendors":["adonisjs"]},"summary":"Attackers can overwrite internal ORM state via mass assignment, leading to unauthorized record modification and logic bypasses in AdonisJS applications.","url":"https://insights.sbomify.com/CVE-2026-22814/"}