Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. joi
  4. ›
  5. CVE-2026-90771

CVE-2026-90771: joi messages compilation allows prototype replacement through __proto__ error codes

September 13, 2026 (updated October 5, 2026)

joi before versions 17.13.8 and 18.2.9 contains a prototype pollution vulnerability in the messages compilation function that accepts proto as an error code. Attackers can supply proto keys in custom messages to replace the returned object’s prototype, breaking downstream code relying on Object.prototype methods.

References

  • github.com/advisories/GHSA-wr44-6hxh-3jwq
  • github.com/hapijs/joi
  • github.com/hapijs/joi/blob/v18.2.8/lib/messages.js
  • github.com/hapijs/joi/commit/1d2001cad9971327a62c9fd8eb1afec20cd784d2
  • github.com/hapijs/joi/commit/5b8333c9177e08b4ef4ed02903c2d657084e7afb
  • github.com/hapijs/joi/issues/3150
  • github.com/hapijs/joi/pull/3151
  • github.com/hapijs/joi/pull/3153
  • github.com/hapijs/joi/releases/tag/v17.13.8
  • github.com/hapijs/joi/releases/tag/v18.2.9
  • nvd.nist.gov/vuln/detail/CVE-2026-90771
  • www.vulncheck.com/advisories/joi-before-17.13.8-and-18.2.9-prototype-pollution-via-messages

Code Behaviors & Features

Detect and mitigate CVE-2026-90771 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions before 17.13.8, all versions starting from 18.0.0 before 18.2.9

Fixed versions

  • 17.13.8
  • 18.2.9

Solution

Upgrade to versions 17.13.8, 18.2.9 or above.

Impact 3.7 LOW

CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N

Learn more about CVSS

Weakness

  • CWE-1321: Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution')

Source file

npm/joi/CVE-2026-90771.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:15:52 +0000.