{"answers":{"affected":"6 open source packages ship an affected version, including joi and @hapi/joi.","exploited":"There is no known exploitation of CVE-2026-84368 in the wild and no public exploit code.","fix":"Upgrade joi to a fixed version for your release line: 17.13.6 or 18.2.5.","what":"CVE-2026-84368 is a low-severity vulnerability in hapijs joi, published on 1 Sep 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-84368 and fix it if it is affected.\n\nWhat it is: CVE-2026-84368 is a low-severity vulnerability in hapijs joi, published on 1 Sep 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-84368 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- joi (npm): affected from 17.2.0; fixed in 17.13.6\n- joi (npm): affected from 17.2.0; fixed in 17.13.6\n- joi (npm): affected from 18.0.0; fixed in 18.2.5\n- joi (npm): affected from 18.0.0; fixed in 18.2.5\n- @hapi/joi (npm): affected from 16.0.0 up to 17.1.1; no fix listed\n- @hapi/joi (npm): affected from 16.0.0 up to 17.1.1; no fix listed\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-84368/ (Markdown: https://insights.sbomify.com/CVE-2026-84368/index.md)","id":"CVE-2026-84368","markdown":"https://insights.sbomify.com/CVE-2026-84368/index.md","name":"CVE-2026-84368","record":{"aliases":["CLSA-2026-1791362244","ECHO-7ff3-9409-2629","GHSA-6w3j-5fw6-r9vr","MINI-3466-mhf3-25f4","MINI-49fh-wpxh-hc86","MINI-4pvg-j7m3-3pv3","MINI-6335-27px-c9c5","MINI-6524-gx66-qmff","MINI-665f-pm7x-24mw","MINI-8pw6-w566-wfvj","MINI-ccf4-xv3x-gwcv","MINI-cgrc-gjp6-mq45","MINI-g8xm-qj63-v6wc","MINI-jj6p-xp4h-xv5x","MINI-p23f-mjc4-5cpf","MINI-p9w9-mrc6-xh4v","MINI-q4j2-vcvq-88j9","MINI-rrvc-hv85-vxh3","MINI-vvm4-8j5p-97mh","MINI-whgx-j344-ggff","MINI-xcj3-38x5-fc77","ROOT-APP-NPM-CVE-2026-84368"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["security_bypass"],"network_reachable":"yes","non_default_config":true,"product_category":"JavaScript validation library","requires_auth":"none","summary":"Prototype pollution in joi allows attackers to corrupt Object.prototype via custom message keys, potentially bypassing security checks in consuming applications.","user_interaction":"not_required","vuln_class":"other"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[],"cvss":{"score":3.7,"severity":"low","source":"cna","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N","version":"3.1"},"cwes":[{"id":"CWE-1321","name":"Improperly Controlled Modification of Object Prototype Attributes"}],"description":"joi is a schema description language and data validator for JavaScript. From 16.0.0 until 17.13.6 and 18.2.5, the @hapi/joi package through 17.1.1 and the successor joi package contain prototype pollution in lib/messages.js, where exports.compile() and exports.merge() reuse inherited objects for attacker-controlled language keys supplied through messages(), message(), prefs({ messages }), Joi.extend({ messages }), or rule({ message }). A language key named __proto__ writes properties onto Object.prototype, and constructor writes to the Object function's static properties. A consuming application that gates on the presence of an inherited property can take the wrong branch for every inspected object. The flaw is not reachable from data that joi validates and requires an application to feed untrusted input directly into schema-construction configuration. This issue is fixed in joi versions 17.13.6 and 18.2.5; no fixed @hapi/joi version is available.","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":"joi: Prototype pollution via a `__proto__` language key in custom messages","id":"CVE-2026-84368","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"npm","product":null,"products":[],"type":"other","year":"2026"},"n_packages":6,"n_references":5,"next":{"headline":"SVGO: removeScripts incompletely sanitizes executable HTML in SVG foreignObject elements","id":"CVE-2026-84369"},"packages":[{"ecosystem":"npm","fixed":[],"introduced":["16.0.0"],"last_affected":["17.1.1"],"package":"@hapi/joi","purl":null,"source":"GHSA-6w3j-5fw6-r9vr"},{"ecosystem":"npm","fixed":[],"introduced":["16.0.0"],"last_affected":["17.1.1"],"package":"@hapi/joi","purl":"pkg:npm/%40hapi/joi","source":"GHSA-6w3j-5fw6-r9vr"},{"ecosystem":"npm","fixed":["17.13.6"],"introduced":["17.2.0"],"last_affected":[],"package":"joi","purl":null,"source":"GHSA-6w3j-5fw6-r9vr"},{"ecosystem":"npm","fixed":["17.13.6"],"introduced":["17.2.0"],"last_affected":[],"package":"joi","purl":"pkg:npm/joi","source":"GHSA-6w3j-5fw6-r9vr"},{"ecosystem":"npm","fixed":["18.2.5"],"introduced":["18.0.0"],"last_affected":[],"package":"joi","purl":null,"source":"GHSA-6w3j-5fw6-r9vr"},{"ecosystem":"npm","fixed":["18.2.5"],"introduced":["18.0.0"],"last_affected":[],"package":"joi","purl":"pkg:npm/joi","source":"GHSA-6w3j-5fw6-r9vr"}],"prev":{"headline":"joi: object().rename() with a template target can set the validated object's prototype","id":"CVE-2026-84367"},"products":["joi"],"published":"2026-09-01","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":"no","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2026-09-02","vendors":["hapijs"]},"summary":"Prototype pollution in joi allows attackers to corrupt Object.prototype via custom message keys, potentially bypassing security checks in consuming applications.","url":"https://insights.sbomify.com/CVE-2026-84368/"}