{"api_version":"1","generated_at":"2026-09-03T21:44:09+00:00","cve":"CVE-2026-84367","urls":{"html":"https://cve.report/CVE-2026-84367","api":"https://cve.report/api/cve/CVE-2026-84367.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-84367","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-84367"},"summary":{"title":"joi: object().rename() with a template target can set the validated object's prototype","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.","state":"PUBLISHED","assigner":"GitHub_M","published_at":"2026-09-01 21:18:47","updated_at":"2026-09-01 21:18:47"},"problem_types":["CWE-1321","CWE-1321 CWE-1321: Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution')"],"metrics":[{"version":"3.1","source":"security-advisories@github.com","type":"Secondary","score":"3.7","severity":"LOW","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N","data":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N","baseScore":3.7,"baseSeverity":"LOW","attackVector":"NETWORK","attackComplexity":"HIGH","privilegesRequired":"NONE","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"NONE","integrityImpact":"LOW","availabilityImpact":"NONE"}},{"version":"3.1","source":"CNA","type":"DECLARED","score":"3.7","severity":"LOW","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N","data":{"attackComplexity":"HIGH","attackVector":"NETWORK","availabilityImpact":"NONE","baseScore":3.7,"baseSeverity":"LOW","confidentialityImpact":"NONE","integrityImpact":"LOW","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N","version":"3.1"}}],"references":[{"url":"https://github.com/hapijs/joi/pull/3134","name":"https://github.com/hapijs/joi/pull/3134","refsource":"security-advisories@github.com","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://github.com/hapijs/joi/commit/172ececa192feda532b743d77bc9d3e523d19b01","name":"https://github.com/hapijs/joi/commit/172ececa192feda532b743d77bc9d3e523d19b01","refsource":"security-advisories@github.com","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://github.com/hapijs/joi/security/advisories/GHSA-gg4h-3hg2-grpc","name":"https://github.com/hapijs/joi/security/advisories/GHSA-gg4h-3hg2-grpc","refsource":"security-advisories@github.com","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://github.com/hapijs/joi/commit/162f367aa178d2e1ebec8dc1164e5fe16536ddf6","name":"https://github.com/hapijs/joi/commit/162f367aa178d2e1ebec8dc1164e5fe16536ddf6","refsource":"security-advisories@github.com","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://github.com/hapijs/joi/pull/3135","name":"https://github.com/hapijs/joi/pull/3135","refsource":"security-advisories@github.com","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-84367","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-84367","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"hapijs","product":"joi","version":"affected >= 16.0.0, < 17.13.5","platforms":[]},{"source":"CNA","vendor":"hapijs","product":"joi","version":"affected >= 18.0.0, < 18.2.4","platforms":[]}],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[],"vendor_comments":[],"enrichments":{"kev":null,"epss":{"cve_year":"2026","cve_id":"84367","cve":"CVE-2026-84367","epss":"0.002700000","percentile":"0.188150000","score_date":"2026-09-02","updated_at":"2026-09-03 00:14:36"},"legacy_qids":[]},"source_records":{"cve_program":{"containers":{"cna":{"affected":[{"product":"joi","vendor":"hapijs","versions":[{"status":"affected","version":">= 16.0.0, < 17.13.5"},{"status":"affected","version":">= 18.0.0, < 18.2.4"}]}],"descriptions":[{"lang":"en","value":"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."}],"metrics":[{"cvssV3_1":{"attackComplexity":"HIGH","attackVector":"NETWORK","availabilityImpact":"NONE","baseScore":3.7,"baseSeverity":"LOW","confidentialityImpact":"NONE","integrityImpact":"LOW","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N","version":"3.1"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-1321","description":"CWE-1321: Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution')","lang":"en","type":"CWE"}]}],"providerMetadata":{"dateUpdated":"2026-09-01T20:33:29.295Z","orgId":"a0819718-46f1-4df5-94e2-005712e83aaa","shortName":"GitHub_M"},"references":[{"name":"https://github.com/hapijs/joi/security/advisories/GHSA-gg4h-3hg2-grpc","tags":["x_refsource_CONFIRM"],"url":"https://github.com/hapijs/joi/security/advisories/GHSA-gg4h-3hg2-grpc"},{"name":"https://github.com/hapijs/joi/pull/3134","tags":["x_refsource_MISC"],"url":"https://github.com/hapijs/joi/pull/3134"},{"name":"https://github.com/hapijs/joi/pull/3135","tags":["x_refsource_MISC"],"url":"https://github.com/hapijs/joi/pull/3135"},{"name":"https://github.com/hapijs/joi/commit/162f367aa178d2e1ebec8dc1164e5fe16536ddf6","tags":["x_refsource_MISC"],"url":"https://github.com/hapijs/joi/commit/162f367aa178d2e1ebec8dc1164e5fe16536ddf6"},{"name":"https://github.com/hapijs/joi/commit/172ececa192feda532b743d77bc9d3e523d19b01","tags":["x_refsource_MISC"],"url":"https://github.com/hapijs/joi/commit/172ececa192feda532b743d77bc9d3e523d19b01"}],"source":{"advisory":"GHSA-gg4h-3hg2-grpc","discovery":"UNKNOWN"},"title":"joi: object().rename() with a template target can set the validated object's prototype"}},"cveMetadata":{"assignerOrgId":"a0819718-46f1-4df5-94e2-005712e83aaa","assignerShortName":"GitHub_M","cveId":"CVE-2026-84367","datePublished":"2026-09-01T20:33:29.295Z","dateReserved":"2026-09-01T16:27:58.129Z","dateUpdated":"2026-09-01T20:33:29.295Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"},"nvd":{"publishedDate":"2026-09-01 21:18:47","lastModifiedDate":"2026-09-01 21:18:47","problem_types":["CWE-1321","CWE-1321 CWE-1321: Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution')"],"metrics":{"cvssMetricV31":[{"source":"security-advisories@github.com","type":"Secondary","cvssData":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N","baseScore":3.7,"baseSeverity":"LOW","attackVector":"NETWORK","attackComplexity":"HIGH","privilegesRequired":"NONE","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"NONE","integrityImpact":"LOW","availabilityImpact":"NONE"},"exploitabilityScore":2.2,"impactScore":1.4}]},"configurations":[]},"legacy_mitre":{"record":{"CveYear":"2026","CveId":"84367","Ordinal":"1","Title":"joi: object().rename() with a template target can set the valida","CVE":"CVE-2026-84367","Year":"2026"},"notes":[{"CveYear":"2026","CveId":"84367","Ordinal":"1","NoteData":"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.","Type":"Description","Title":"joi: object().rename() with a template target can set the valida"}]}}}