CVE-2026-84368 joi: Prototype pollution via a `__proto__` language key in custom messages
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: no · technical impact: partial
- Technology
- Red Hat
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.
Upgrade path
23 packages: 2 fixed, 20 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| redhat/devspaces/dashboard-rhel9(Red Hat openshift_devspaces 3) | All versions | No fix listed | No fix yet |
| redhat/gatekeeper/gatekeeper-rhel9(Red Hat gatekeeper 3) | All versions | No fix listed | No fix yet |
| redhat/grafana(Red Hat enterprise_linux 10) | All versions | No fix listed | No fix yet |
| redhat/grafana(Red Hat enterprise_linux 8) | All versions | No fix listed | No fix yet |
| redhat/grafana(Red Hat enterprise_linux 9) | All versions | No fix listed | No fix yet |
| redhat/grafana-pcp(Red Hat enterprise_linux 8) | All versions | No fix listed | No fix yet |
| redhat/openshift4/ose-agent-installer-ui-rhel9(Red Hat openshift 4) | All versions | No fix listed | No fix yet |
| redhat/openshift5/ose-agent-installer-ui-rhel9(Red Hat openshift 5) | All versions | No fix listed | No fix yet |
| redhat/pcs(Red Hat enterprise_linux 8) | All versions | No fix listed | No fix yet |
| redhat/redhat-datagrid-maven-repository.zip(Red Hat jboss_data_grid 8) | All versions | No fix listed | No fix yet |
| redhat/rh-podman-desktop.git(Red Hat podman_desktop 1) | All versions | No fix listed | No fix yet |
| redhat/rhmtc/openshift-migration-ui-rhel8(Red Hat rhmt 1) | All versions | No fix listed | No fix yet |
| redhat/rhoai/odh-dashboard-rhel9(Red Hat openshift_ai) | All versions | No fix listed | No fix yet |
| redhat/rhoai/odh-mod-arch-automl-rhel9(Red Hat openshift_ai) | All versions | No fix listed | No fix yet |
| redhat/rhoai/odh-mod-arch-autorag-rhel9(Red Hat openshift_ai) | All versions | No fix listed | No fix yet |
| redhat/rhoai/odh-mod-arch-eval-hub-rhel9(Red Hat openshift_ai) | All versions | No fix listed | No fix yet |
| redhat/rhoai/odh-mod-arch-gen-ai-rhel9(Red Hat openshift_ai) | All versions | No fix listed | No fix yet |
| redhat/rhoai/odh-mod-arch-maas-rhel9(Red Hat openshift_ai) | All versions | No fix listed | No fix yet |
| redhat/rhoai/odh-mod-arch-mlflow-rhel9(Red Hat openshift_ai) | All versions | No fix listed | No fix yet |
| redhat/rhoai/odh-mod-arch-model-registry-rhel9(Red Hat openshift_ai) | All versions | No fix listed | No fix yet |
| hapi joi(npm) | >= 16.0.0, <= 17.1.1 | after 17.1.1 | Fixed |
| npm joi(npm) | >= 17.2.0, < 17.13.6; >= 18.0.0, < 18.2.5 | 17.13.6, 18.2.5 | Fixed |
| hapijs joi | = >= 16.0.0, <= 17.1.1; = >= 17.2.0, < 17.13.6; = >= 18.0.0, < 18.2.5 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| hapijs joi | = >= 16.0.0, <= 17.1.1 | No fix listed |
| hapijs joi | = >= 17.2.0, < 17.13.6 | No fix listed |
| hapijs joi | = >= 18.0.0, < 18.2.5 | No fix listed |
| redhat/gatekeeper/gatekeeper-rhel9(Red Hat:gatekeeper:3) | All versions | No fix listed |
| redhat/rhmtc/openshift-migration-ui-rhel8(Red Hat:rhmt:1) | All versions | No fix listed |
| redhat/rh-podman-desktop.git(Red Hat:podman_desktop:1) | All versions | No fix listed |
| redhat/redhat-datagrid-maven-repository.zip(Red Hat:jboss_data_grid:8) | All versions | No fix listed |
| redhat/grafana(Red Hat:enterprise_linux:10) | All versions | No fix listed |
| redhat/grafana(Red Hat:enterprise_linux:8) | All versions | No fix listed |
| redhat/grafana-pcp(Red Hat:enterprise_linux:8) | All versions | No fix listed |
| redhat/pcs(Red Hat:enterprise_linux:8) | All versions | No fix listed |
| redhat/grafana(Red Hat:enterprise_linux:9) | All versions | No fix listed |
| redhat/joi(Red Hat:jboss_fuse:7) | All versions | No fix listed |
| redhat/rhoai/odh-dashboard-rhel9(Red Hat:openshift_ai) | All versions | No fix listed |
| redhat/rhoai/odh-mod-arch-automl-rhel9(Red Hat:openshift_ai) | All versions | No fix listed |
| redhat/rhoai/odh-mod-arch-autorag-rhel9(Red Hat:openshift_ai) | All versions | No fix listed |
| redhat/rhoai/odh-mod-arch-eval-hub-rhel9(Red Hat:openshift_ai) | All versions | No fix listed |
| redhat/rhoai/odh-mod-arch-gen-ai-rhel9(Red Hat:openshift_ai) | All versions | No fix listed |
| redhat/rhoai/odh-mod-arch-maas-rhel9(Red Hat:openshift_ai) | All versions | No fix listed |
| redhat/rhoai/odh-mod-arch-mlflow-rhel9(Red Hat:openshift_ai) | All versions | No fix listed |
| redhat/rhoai/odh-mod-arch-model-registry-rhel9(Red Hat:openshift_ai) | All versions | No fix listed |
| redhat/openshift4/ose-agent-installer-ui-rhel9(Red Hat:openshift:4) | All versions | No fix listed |
| redhat/openshift5/ose-agent-installer-ui-rhel9(Red Hat:openshift:5) | All versions | No fix listed |
| redhat/devspaces/dashboard-rhel9(Red Hat:openshift_devspaces:3) | All versions | No fix listed |
| npm joi(npm) | >= 17.2.0, < 17.13.6 | 17.13.6 |
Show 2 more
| Product | Affected versions | Fixed in |
|---|---|---|
| hapi joi(npm) | >= 16.0.0, <= 17.1.1 | No fix listed |
| npm joi(npm) | >= 18.0.0, < 18.2.5 | 18.2.5 |
References
- https://github.com/hapijs/joi/security/advisories/GHSA-6w3j-5fw6-r9vr vendor-advisory
- https://github.com/hapijs/joi/pull/3138 patch
- https://github.com/hapijs/joi/pull/3139 patch
- https://github.com/hapijs/joi/commit/8d0b808f3e874d28f9078f61b7742290989afb36 patch
- https://github.com/hapijs/joi/commit/90d07571923c90e3432a328fc041d1cda03d30fa patch
- Red Hat CVE page mitigation vendor-advisory
- Red Hat Bugzilla 2527368 issue-tracking
- www.cve.org
- nvd.nist.gov third-party-advisory vendor-advisory
- github.com
- github.com product
- ENISA EUVD EUVD-2026-69649 third-party-advisory