{"schema":"threatline.record/2","record":{"id":"CVE-2026-90771","aliases":["GHSA-wr44-6hxh-3jwq"],"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.","categories":["Libraries & packages"],"product":"joi","vendor":"hapijs","ecosystem":"npm","affected_ranges":[{"source":"GitHub Advisory Database","source_url":"https://github.com/advisories/GHSA-wr44-6hxh-3jwq","source_modified_at":"2026-10-05T23:29:53Z","fetched_at":"2026-10-23T18:42:43.628194Z","package":{"ecosystem":"npm","name":"joi"},"range":"< 17.13.8"},{"source":"GitHub Advisory Database","source_url":"https://github.com/advisories/GHSA-wr44-6hxh-3jwq","source_modified_at":"2026-10-05T23:29:53Z","fetched_at":"2026-10-23T18:42:43.628194Z","package":{"ecosystem":"npm","name":"joi"},"range":">= 18.0.0, < 18.2.9"},{"source":"CVE List","source_url":"https://www.cve.org/CVERecord?id=CVE-2026-90771","source_modified_at":"2026-09-24T14:21:52.339Z","fetched_at":"2026-10-23T18:45:31.882637Z","product":"joi","vendor":"hapijs","versions":[{"version":"16.0.0","lessThan":"17.13.8","status":"affected","versionType":"semver"},{"version":"18.0.0","lessThan":"18.2.9","status":"affected","versionType":"semver"}],"defaultStatus":"unaffected"},{"source":"OSV","source_url":"https://osv.dev/vulnerability/GHSA-wr44-6hxh-3jwq","source_modified_at":"2026-10-05T23:45:08.228760837Z","fetched_at":"2026-10-23T18:42:43.628194Z","package":{"ecosystem":"npm","name":"joi","purl":"pkg:npm/joi"},"ranges":[{"events":[{"introduced":"0"},{"fixed":"17.13.8"}],"type":"SEMVER"}],"versions":[]},{"source":"OSV","source_url":"https://osv.dev/vulnerability/GHSA-wr44-6hxh-3jwq","source_modified_at":"2026-10-05T23:45:08.228760837Z","fetched_at":"2026-10-23T18:42:43.628194Z","package":{"ecosystem":"npm","name":"joi","purl":"pkg:npm/joi"},"ranges":[{"events":[{"introduced":"18.0.0"},{"fixed":"18.2.9"}],"type":"SEMVER"}],"versions":[]}],"fixed_versions":[{"source":"GitHub Advisory Database","source_url":"https://github.com/advisories/GHSA-wr44-6hxh-3jwq","source_modified_at":"2026-10-05T23:29:53Z","fetched_at":"2026-10-23T18:42:43.628194Z","package":{"ecosystem":"npm","name":"joi"},"version":"17.13.8"},{"source":"GitHub Advisory Database","source_url":"https://github.com/advisories/GHSA-wr44-6hxh-3jwq","source_modified_at":"2026-10-05T23:29:53Z","fetched_at":"2026-10-23T18:42:43.628194Z","package":{"ecosystem":"npm","name":"joi"},"version":"18.2.9"},{"source":"CVE List","source_url":"https://www.cve.org/CVERecord?id=CVE-2026-90771","source_modified_at":"2026-09-24T14:21:52.339Z","fetched_at":"2026-10-23T18:45:31.882637Z","package":{"name":"joi","ecosystem":null},"version":"17.13.8","basis":"first unaffected version stated in the CVE record"},{"source":"CVE List","source_url":"https://www.cve.org/CVERecord?id=CVE-2026-90771","source_modified_at":"2026-09-24T14:21:52.339Z","fetched_at":"2026-10-23T18:45:31.882637Z","package":{"name":"joi","ecosystem":null},"version":"18.2.9","basis":"first unaffected version stated in the CVE record"},{"source":"OSV","source_url":"https://osv.dev/vulnerability/GHSA-wr44-6hxh-3jwq","source_modified_at":"2026-10-05T23:45:08.228760837Z","fetched_at":"2026-10-23T18:42:43.628194Z","package":{"ecosystem":"npm","name":"joi","purl":"pkg:npm/joi"},"version":"17.13.8"},{"source":"OSV","source_url":"https://osv.dev/vulnerability/GHSA-wr44-6hxh-3jwq","source_modified_at":"2026-10-05T23:45:08.228760837Z","fetched_at":"2026-10-23T18:42:43.628194Z","package":{"ecosystem":"npm","name":"joi","purl":"pkg:npm/joi"},"version":"18.2.9"}],"cvss":6.3,"severity":"Medium","kev":{"listed":false},"epss":{"probability":0.00389,"percentile":0.31827,"score_date":"2026-10-23"},"published_at":"2026-09-13T10:45:42.498Z","modified_at":"2026-10-05T23:45:08.228760837Z","provenance":[{"source":"GitHub Advisory Database","url":"https://github.com/advisories/GHSA-wr44-6hxh-3jwq","fetched_at":"2026-10-23T18:42:43.628194Z","source_modified_at":"2026-10-05T23:29:53Z"},{"source":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2026-90771","fetched_at":"2026-10-23T18:45:31.882637Z","source_modified_at":"2026-09-24T14:21:52.339Z"},{"source":"OSV","url":"https://osv.dev/vulnerability/GHSA-wr44-6hxh-3jwq","fetched_at":"2026-10-23T18:42:43.628194Z","source_modified_at":"2026-10-05T23:45:08.228760837Z"},{"source":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2026-90771","fetched_at":"2026-10-23T18:42:43.628194Z","source_modified_at":"2026-10-23"}],"sources":["GitHub Advisory Database","CVE List","OSV","EPSS"],"references":[{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-90771","source":"GitHub Advisory Database"},{"source":"CVE List","url":"https://github.com/hapijs/joi/issues/3150","tags":["exploit"]},{"source":"CVE List","url":"https://github.com/hapijs/joi/commit/5b8333c9177e08b4ef4ed02903c2d657084e7afb","tags":["patch"]},{"source":"CVE List","url":"https://github.com/hapijs/joi","tags":["product"]},{"source":"CVE List","url":"https://github.com/hapijs/joi/blob/v18.2.8/lib/messages.js","tags":["technical-description"]},{"source":"CVE List","url":"https://www.vulncheck.com/advisories/joi-before-17.13.8-and-18.2.9-prototype-pollution-via-messages","tags":["third-party-advisory"]},{"url":"https://github.com/hapijs/joi/pull/3151","source":"GitHub Advisory Database"},{"url":"https://github.com/hapijs/joi/pull/3153","source":"GitHub Advisory Database"},{"url":"https://github.com/hapijs/joi/commit/1d2001cad9971327a62c9fd8eb1afec20cd784d2","source":"GitHub Advisory Database"},{"url":"https://github.com/hapijs/joi/releases/tag/v17.13.8","source":"GitHub Advisory Database"},{"url":"https://github.com/hapijs/joi/releases/tag/v18.2.9","source":"GitHub Advisory Database"},{"url":"https://github.com/advisories/GHSA-wr44-6hxh-3jwq","source":"GitHub Advisory Database"}],"locations":[],"motoko_assessment":{"status":"requires_architecture_review","automatic_remediation":false},"cve_state":"PUBLISHED","ssvc":{"exploitation":"poc","automatable":"no","technical_impact":"partial","assessed_at":"2026-09-16T14:02:28.580545Z"},"classification":{"method":"product-first software-layer rules","rules_version":"2.1","matched_on":"ecosystem","confidence":"heuristic","reviewed":false},"change_timestamp":"2026-10-05T23:45:08.228760837Z","content_hash":"01d86943b6f8b66a7949ac4d5263da6aff1496b57bd8a0788291b2321733d7c2"}}
