Advisory

GHSA-wr44-6hxh-3jwq

Also known as: CVE-2026-90771

Summary

joi messages compilation allows prototype replacement through __proto__ error codes

Details

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.

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2026-09-13 12:31 UTC
Modified
2026-10-05 23:45 UTC

Affected packages and fixes

joi

npm · All systems

Affected

  • introduced 0, fixed 17.13.8 (semver)

Fixed versions

17.13.8

Fix

joi

npm · All systems

Affected

  • introduced 18.0.0, fixed 18.2.9 (semver)

Fixed versions

18.2.9

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences