Advisory

GHSA-p92x-r36w-9395

Also known as: CVE-2021-23438

Summary

Type confusion in mpath

Details

This affects the package mpath before 0.8.4. A type confusion vulnerability can lead to a bypass of CVE-2018-16490. In particular, the condition ignoreProperties.indexOf(parts[i]) !== -1 returns -1 if parts[i] is ['__proto__']. This is because the method that has been called if the input is an array is Array.prototype.indexOf() and not String.prototype.indexOf(). They behave differently depending on the type of the input.

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2021-09-02 22:02 UTC
Modified
2025-01-14 09:12 UTC

Affected packages and fixes

mpath

npm · All systems

Affected

  • introduced 0, fixed 0.8.4 (semver)

Fixed versions

0.8.4

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences