Security mailing lists by PureSourceCode

CVE-2026-84368

LOW 3.7CVSS 3.1

joi: Prototype pollution via a `__proto__` language key in custom messages

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.

Published
1 Sep 2026
Last modified
5 Nov 2026
Assigned by
security-advisories@github.com
NVD status
Deferred
Weakness
CWE-1321
Also known as
CVE-2026-122131GHSA-6w3j-5fw6-r9vr
Sources
NVDJSONOSV GHSA-6w3j-5fw6-r9vrJSON

Scores

SourceScored byVersionScoreVector / decision
NVD security-advisories@github.com (Secondary) CVSS 3.1 LOW 3.7 CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N
OSV GitHub CVSS 3.1 LOW 3.7 CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
OSV npm joi >= 17.2.0, < 17.13.6 17.13.6
OSV npm @hapi/joi >= 16.0.0, <= 17.1.1
OSV npm joi >= 18.0.0, < 18.2.5 18.2.5

References

History

  • 25 Nov 2026 21:05 UTC · NVD: first stored (published 1 Sep 2026)
  • 25 Nov 2026 20:10 UTC · OSV: first stored (published 8 Sep 2026)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.