CVE-2026-84367 joi: object().rename() with a template target can set the validated object's prototype
- Published
- Updated
- Exploit status
- No public exploit known
Description
joi is a schema description language and data validator for JavaScript. From 16.0.0 until 17.13.5 and 18.2.4, joi's lib/types/keys.js internals.rename() implementation used by object().rename() permits a schema that renames keys with a regular-expression source and a Joi.expression() or Joi.x() target that interpolates the pattern's own match data, combined with { multiple: true }, to derive a target from an attacker-controlled input key. An attacker can send x-proto with an object value, causing the target to render as proto and set the prototype of the object returned by validate() instead of creating an own key. The global Object.prototype is not modified, so the effect is confined to the object returned by that validation call. Static-string targets and schemas using the default { multiple: false } are not affected. This issue is fixed in versions 17.13.5 and 18.2.4.
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| hapijs joi | = >= 16.0.0, < 17.13.5 | No fix listed |
| hapijs joi | = >= 18.0.0, < 18.2.4 | 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/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) | >= 16.0.0, < 17.13.5 | 17.13.5 |
| npm joi(npm) | >= 18.0.0, < 18.2.4 | 18.2.4 |
References
- https://github.com/hapijs/joi/security/advisories/GHSA-gg4h-3hg2-grpc vendor-advisory
- https://github.com/hapijs/joi/pull/3134 patch
- https://github.com/hapijs/joi/pull/3135 patch
- https://github.com/hapijs/joi/commit/162f367aa178d2e1ebec8dc1164e5fe16536ddf6 patch
- https://github.com/hapijs/joi/commit/172ececa192feda532b743d77bc9d3e523d19b01 patch
- Red Hat CVE page vendor-advisory
- Red Hat Bugzilla 2542793 issue-tracking
- www.cve.org
- nvd.nist.gov third-party-advisory
- github.com
- github.com
- github.com