@hapi/joi@16.0.0-preview

Object schema validation

  • latest version

    17.1.1

  • first published

    7 years ago

  • latest version published

    6 years ago

  • deprecated

    Package is deprecated

  • licenses detected

  • Direct Vulnerabilities

    Known vulnerabilities in the @hapi/joi package. This does not include vulnerabilities belonging to this package’s dependencies.

    Fix vulnerabilities automatically

    Snyk's AI Trust Platform automatically finds the best upgrade path and integrates with your development workflows. Secure your code at zero cost.

    Fix for free
    VulnerabilityVulnerable Version
    • M
    Prototype Pollution

    Affected versions of this package are vulnerable to Prototype Pollution via the compile and merge functions in lib/messages.js, where a language key named __proto__ or constructor in a user-supplied messages object causes writes to flow onto Object.prototype rather than the intended target object. An attacker who can control the messages configuration passed to joi can pollute the prototype chain of all objects in the process, potentially altering application behaviour.

    How to fix Prototype Pollution?

    A fix was pushed into the master branch but not yet published.

    *