GHSA-wr44-6hxh-3jwq

    Dashboard / Vulnerabilities / GHSA-wr44-6hxh-3jwq

    GHSA-wr44-6hxh-3jwq

    Published: 13 Sept 2026Last Modified: 5 Oct 2026

    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.

    Affected packages

    Package

    Name: joi

    Purl: pkg:npm/joi

    Affected ranges

    Type: SEMVER

    Events:

    Introduced- 0
    Fixed -17.13.8

    Affected versions

    Common Vulnerability Scoring System

    Attack Vector
    Network
    Adjacent
    Local
    Physical
    Privileges Required
    None
    Low
    High
    User Interaction
    None
    Required
    Scope
    Unchanged
    Changed
    Confidentiality
    None
    Low
    High
    Integrity
    None
    Low
    High
    Availability
    None
    Low
    High
    GHSA-wr44-6hxh-3jwq | CVE-DB