<Vulnerability name="CVE-2026-122131">
    <DocumentDistribution xml:lang="en">Copyright © 2012 Red Hat, Inc. All rights reserved.</DocumentDistribution>
    <ThreatSeverity>Low</ThreatSeverity>
    <PublicDate>2026-11-04T20:36:51</PublicDate>
    <Bugzilla id="2567736" url="https://bugzilla.redhat.com/show_bug.cgi?id=2567736" xml:lang="en:us">
joi: joi: Prototype pollution via untrusted message configuration
    </Bugzilla>
    <CVSS3 status="draft">
        <CVSS3BaseScore>3.7</CVSS3BaseScore>
        <CVSS3ScoringVector>CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N</CVSS3ScoringVector>
    </CVSS3>
    <CWE>CWE-915</CWE>
    <Details xml:lang="en:us" source="Mitre">
Joi 17.13.6 before 17.13.9 and 18.2.5 before 18.3.1 contains a prototype pollution vulnerability in lib/messages.js compile() and merge() that fails to reject a __proto__ language key. Attackers supplying untrusted message configuration via any().messages(), prefs, validate options or Joi.extend can replace the compiled messages prototype, altering or breaking validation error rendering and dependent logic.
    </Details>
    <Details xml:lang="en:us" source="Red Hat">
A flaw was found in joi. Applications that pass untrusted input into custom message configuration functions allow an attacker to cause prototype pollution, where shared base object properties in the runtime environment are improperly altered. By supplying a specially crafted message configuration containing reserved object keys, an attacker can modify prototype properties, potentially disrupting application behavior and corrupting validation logic.
    </Details>
    <Statement xml:lang="en:us">
This vulnerability is rated as Low severity because exploitation requires an application to pass untrusted user input directly into internal schema configuration options rather than the validated payload itself. In typical Red Hat deployments and standard development practices, validation rules and message templates are statically defined by developers. As a result, the flaw is not reachable through standard validation flows, significantly limiting the practical attack surface.
    </Statement>
    <Mitigation xml:lang="en:us">
Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base, or stability.
    </Mitigation>
    <PackageState cpe="cpe:/a:redhat:hummingbird:1">
        <ProductName>Red Hat Hardened Images</ProductName>
        <FixState>Not affected</FixState>
        <PackageName>grafana12.4</PackageName>
    </PackageState>
    <PackageState cpe="cpe:/a:redhat:hummingbird:1">
        <ProductName>Red Hat Hardened Images</ProductName>
        <FixState>Not affected</FixState>
        <PackageName>grafana13.1</PackageName>
    </PackageState>
    <PackageState cpe="cpe:/a:redhat:hummingbird:1">
        <ProductName>Red Hat Hardened Images</ProductName>
        <FixState>Not affected</FixState>
        <PackageName>grafana13.2</PackageName>
    </PackageState>
    <References xml:lang="en:us">
https://www.cve.org/CVERecord?id=CVE-2026-122131
https://nvd.nist.gov/vuln/detail/CVE-2026-122131
https://github.com/hapijs/joi
https://github.com/hapijs/joi/blob/v18.3.0/lib/messages.js#L64-L67
https://github.com/hapijs/joi/commit/76f5771e1afe527cfda24be0e1a920ffa54888d6
https://github.com/hapijs/joi/commit/dae9467cec27e787bfdea8b276595177d52d28ec
https://github.com/hapijs/joi/pull/3164
https://github.com/hapijs/joi/security/advisories/GHSA-6w3j-5fw6-r9vr
https://www.vulncheck.com/advisories/joi-17.13.6-before-17.13.9-and-18.2.5-before-18.3.1-prototype-replacement-via-proto-language-key
    </References>
</Vulnerability>