cvelo
P4 · InfoCVSS 3.7EPSS 0.4%

Joi 17.13.6 before 17.13.9 and 18.2.5 before 18.3.1 Prototype Replacement via __proto__ Language Key

  • CVE-2026-122131
  • GHSA-6w3j-5fw6-r9vr
  • GHSA-gw37-7cc7-xmm6
  • EUVD-2026-117085

Description

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.

Text from the CVE.org record.

Recommendation

  • hapijs joi

    • If you run a version from 18.2.5 to before 18.3.1update to 18.3.1 or laterMinor version change: check the release notes
    • If you run 17.13.xupdate to 17.13.9 or laterPatch update: breaking changes are unlikely
  • joi

Taken from the version ranges the sources state. Check the vendor advisory: nothing is said about versions the ranges do not list. Breaking-change risk is read from the version numbers only.

Affected

  • hapijs joi

    Affected versionsFixed in
    from 18.2.5 to before 18.3.118.3.1
    from 17.13.6 to before 17.13.917.13.9
  • @hapi/joinpm

    Affected versionsFixed in
    from 16.0.0 up to 17.1.1none stated
  • joinpm

    Affected versionsFixed in
    from 18.0.0 to before 18.2.518.2.5
    from 17.2.0 to before 17.13.617.13.6

Product versions from the CVE.org record.

Timeline

  1. Published

Related news

No article from the followed outlets names this vulnerability.