Skip to content

CVE-2026-84367 joi: object().rename() with a template target can set the validated object's prototype

LowCVSS 3.7 EPSS 0.39%
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

ProductAffected versionsFixed 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