CVE-2026-84368

Source
https://cve.org/CVERecord?id=CVE-2026-84368
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-84368.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-84368
Aliases
  • GHSA-6w3j-5fw6-r9vr
Published
2026-09-01T20:36:51.859Z
Modified
2026-09-04T03:30:51.107118892Z
Severity
  • 3.7 (Low) CVSS_V3 - CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N CVSS Calculator
Summary
joi: Prototype pollution via a `__proto__` language key in custom messages
Details

joi is a schema description language and data validator for JavaScript. From 16.0.0 until 17.13.6 and 18.2.5, the @hapi/joi package through 17.1.1 and the successor joi package contain prototype pollution in lib/messages.js, where exports.compile() and exports.merge() reuse inherited objects for attacker-controlled language keys supplied through messages(), message(), prefs({ messages }), Joi.extend({ messages }), or rule({ message }). A language key named proto writes properties onto Object.prototype, and constructor writes to the Object function's static properties. A consuming application that gates on the presence of an inherited property can take the wrong branch for every inspected object. The flaw is not reachable from data that joi validates and requires an application to feed untrusted input directly into schema-construction configuration. This issue is fixed in joi versions 17.13.6 and 18.2.5; no fixed @hapi/joi version is available.

Database specific
{
    "cwe_ids": [
        "CWE-1321"
    ],
    "cna_assigner": "GitHub_M",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/84xxx/CVE-2026-84368.json"
}
References

Affected packages

Git / github.com/hapijs/joi

Affected ranges

Type
GIT
Repo
https://github.com/hapijs/joi
Events
Database specific
Show details
{
    "source": "AFFECTED_FIELD",
    "extracted_events": [
        {
            "introduced": "16.0.0"
        },
        {
            "last_affected": "17.1.1"
        },
        {
            "introduced": "17.2.0"
        },
        {
            "fixed": "17.13.6"
        },
        {
            "introduced": "18.0.0"
        },
        {
            "fixed": "18.2.5"
        }
    ]
}

Affected versions

v16.*
v16.0.0
v16.0.1
v16.1.0
v16.1.1
v16.1.2
v16.1.3
v16.1.4
v16.1.5
v16.1.6
v16.1.7
v16.1.8
v17.*
v17.0.0
v17.0.1
v17.0.2
v17.1.0
v17.1.1
v17.10.0
v17.10.1
v17.10.2
v17.11.0
v17.11.1
v17.12.0
v17.12.1
v17.12.2
v17.12.3
v17.13.0
v17.13.1
v17.13.2
v17.13.3
v17.13.4
v17.13.5
v17.2.0
v17.2.1
v17.3.0
v17.4.0
v17.4.1
v17.4.2
v17.4.3
v17.5.0
v17.6.0
v17.6.1
v17.6.2
v17.6.3
v17.6.4
v17.7.0
v17.7.1
v17.8.0
v17.8.1
v17.8.2
v17.8.3
v17.8.4
v17.9.0
v17.9.1
v17.9.2
v18.*
v18.0.0
v18.0.1
v18.0.2
v18.1.0
v18.1.1
v18.1.2
v18.2.0
v18.2.1
v18.2.2
v18.2.3
v18.2.4

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-84368.json"