3.7 LOW
- CVSS version (CVSS): 3.1
- Attack Vector (AV): Network (N)
- Attack Complexity (AC): High (H)
- Privileges Required (PR): None (N)
- User Interaction (UI): None (N)
- Scope (S): Unchanged (U)
- Confidentiality (C): None (N)
- Integrity (I): Low (L)
- Availability (A): None (N)
- Modified Attack Vector (MAV): Network (N)
- Modified Attack Complexity (MAC): High (H)
- Modified Privileges Required (MPR): None (N)
- Modified User Interaction (MUI): None (N)
- Modified Confidentiality (MC): None (N)
- Modified Scope (MS): Unchanged (U)
- Modified Integrity (MI): Low (L)
- Modified Availability (MA): None (N)
Activity log
- Created suggestion
joi: object().rename() with a template target can set the validated object's prototype
joi is a schema description language and data validator for JavaScript. From 16.0.0 until 17.13.5 and 18.2.4, joi's lib/types/keys.js internals.rename() implementation used by object().rename() permits a schema that renames keys with a regular-expression source and a Joi.expression() or Joi.x() target that interpolates the pattern's own match data, combined with { multiple: true }, to derive a target from an attacker-controlled input key. An attacker can send x-__proto__ with an object value, causing the target to render as __proto__ and set the prototype of the object returned by validate() instead of creating an own key. The global Object.prototype is not modified, so the effect is confined to the object returned by that validation call. Static-string targets and schemas using the default { multiple: false } are not affected. This issue is fixed in versions 17.13.5 and 18.2.4.
References
-
https://github.com/hapijs/joi/security/advisories/GHSA-gg4h-3hg2-grpc x_refsource_CONFIRM
-
https://github.com/hapijs/joi/pull/3134 x_refsource_MISC
-
https://github.com/hapijs/joi/pull/3135 x_refsource_MISC
Affected products
- ==>= 16.0.0, < 17.13.5
- ==>= 18.0.0, < 18.2.4
Matching in nixpkgs
pkgs.joincap
Merge multiple pcap files together, gracefully
pkgs.python313Packages.pyadjoint-ad
High-level automatic differentiation library
pkgs.python314Packages.pyadjoint-ad
High-level automatic differentiation library
pkgs.akkuPackages.robin-disjoint-set
A disjoint-set data structure
pkgs.haskellPackages.disjoint-sets-st
Imperative ST/IO based disjoint set data structure
pkgs.python313Packages.python-join-api
Python API for interacting with Join by joaoapps
pkgs.python314Packages.python-join-api
Python API for interacting with Join by joaoapps
pkgs.haskellPackages.disjoint-containers
Disjoint containers
pkgs.chickenPackages_5.chickenEggs.disjoint-set
Disjoint set implementation based on Scheme vectors and their indexes
pkgs.chickenPackages_6.chickenEggs.disjoint-set
Disjoint set implementation based on Scheme vectors and their indexes
-
nixos-unstable -
- nixos-unstable-small 0.1.0
Package maintainers
-
@fabaff Fabian Affolter <mail@fabian-affolter.ch>
-
@qbisi qbisicwate <qbisicwate@gmail.com>
-
@JamieMagee Jamie Magee <jamie.magee@gmail.com>