Security mailing lists by PureSourceCode

CVE-2026-122131

MEDIUM 6.3CVSS 4.0

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

Joi 17.13.6 before 17.13.9 and 18.2.5 before 18.3.1 contains a prototype pollution vulnerability in lib/messages.js compile() and merge() that fails to reject a proto language key. Attackers supplying untrusted message configuration via any().messages(), prefs, validate options or Joi.extend can replace the compiled messages prototype, altering or breaking validation error rendering and dependent logic.

Published
4 Nov 2026
Last modified
12 Nov 2026
Assigned by
disclosure@vulncheck.com
NVD status
Awaiting Analysis
Weakness
CWE-1321
Also known as
CVE-2026-84368GHSA-6w3j-5fw6-r9vr
Sources
NVDJSONOSV GHSA-6w3j-5fw6-r9vrJSON

Scores

SourceScored byVersionScoreVector / decision
NVD disclosure@vulncheck.com (Secondary) CVSS 4.0 MEDIUM 6.3 CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
NVD disclosure@vulncheck.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:23 UTC · NVD: first stored (published 4 Nov 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.