Skip to content
Heist/ feed
MediumFix available

joi messages compilation allows prototype replacement through __proto__ error codes

Type: advisorySource: OSV1 source record

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.

Announced Source revision 1
Original source ↗

GHSA-wr44-6hxh-3jwq

Primary source · Revision 1

Imported from structured advisory data. Source references identify upstream records or fields; verify affected versions and your deployed configuration.

Security context

Source reference: osv:GHSA-wr44-6hxh-3jwq

joi

Source reference: /affected/0/package/name

Affected versions
Not stated in this record
Fixed versions
17.13.8

Source reference: /affected/0/ranges

Prerequisites
Not stated in this record

joi

Source reference: /affected/1/package/name

Affected versions
Not stated in this record
Fixed versions
18.2.9

Source reference: /affected/1/ranges

Prerequisites
Not stated in this record

Structured affected-version data

Original package identities and version rules from this source.

[
  {
    "ranges": [
      {
        "type": "SEMVER",
        "events": [
          {
            "introduced": "0"
          },
          {
            "fixed": "17.13.8"
          }
        ]
      }
    ],
    "package": {
      "name": "joi",
      "purl": "pkg:npm/joi",
      "ecosystem": "npm"
    },
    "database_specific": {
      "source": "https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/09/GHSA-wr44-6hxh-3jwq/GHSA-wr44-6hxh-3jwq.json"
    }
  },
  {
    "ranges": [
      {
        "type": "SEMVER",
        "events": [
          {
            "introduced": "18.0.0"
          },
          {
            "fixed": "18.2.9"
          }
        ]
      }
    ],
    "package": {
      "name": "joi",
      "purl": "pkg:npm/joi",
      "ecosystem": "npm"
    },
    "database_specific": {
      "source": "https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/09/GHSA-wr44-6hxh-3jwq/GHSA-wr44-6hxh-3jwq.json"
    }
  }
]
Related CVEs
CVE-2026-90771

Source reference: /aliases

Publisher severity

medium

Source reference: /severity/1/score

Linked CVE context

These ratings describe the referenced vulnerabilities and products. They are not a severity rating for every application using this dependency.

Event
#85946 · Revision 1
Added to Heist Feed
Publisher date
Read the original announcement