Cloudanix VulnDB

CVE-2018-16490

High · 7.5

CVSS

7.5

EPSS

1.1%

Published

Feb 1, 2019

CISA due date

—

Cloudanix analysis

Next patch cycle SSVC: Track

A software library used by some applications has a flaw that lets attackers change core data-handling behavior, which can break features or let them tamper with information.

Exploit Available Chainable
Exploitation
Remote Unauthenticated
Attacker needs
None
Complexity
Low
Impact
Data Tampering
Component
Library
Class
Improper Input Validation
Remediation
Upgrade
Effort
Low
Patch risk
Low

What it actually does

Prototype pollution in mpath <0.5.1 allows injection of arbitrary properties onto Object.prototype via specially crafted input containing __proto__ or constructor.prototype keys.

Why it matters to the business

Applications relying on this library may experience altered object behavior, data corruption, or bypass of security controls, increasing operational risk and potential downtime.

How an attack unfolds

An attacker supplies malicious input to any code path using vulnerable mpath functions; the library merges the input without sanitization, polluting the global Object prototype and enabling subsequent attacks such as property injection or denial of service on affected objects.

How to fix it

Upgrade mpath to version 0.5.1 or newer in all package manifests and rebuild affected applications; audit transitive dependencies for older copies.

How to confirm the fix worked

Inspect package.json and node_modules/mpath/package.json for version >=0.5.1; run unit tests with prototype-pollution payloads to confirm the merge behavior no longer affects Object.prototype.

Typical attack path

  1. Locate an application endpoint or function that passes attacker-controlled data to mpath
  2. Craft a payload containing __proto__ or constructor.prototype keys with malicious values
  3. Submit the payload via API, form, or file upload
  4. Trigger prototype pollution and chain to further impact such as unexpected method overrides or data leakage

How to detect it

Search application and web-server logs for request parameters containing __proto__, constructor.prototype, or similar prototype keys; inspect runtime object dumps or error logs for unexpected inherited properties after processing untrusted input.

  • __proto__
  • constructor.prototype
  • mpath.*merge

What your security team should do

  • Immediately update mpath across all projects and CI pipelines
  • Add dependency scanning to block future vulnerable versions
  • Review application code for direct or indirect use of mpath merge or set operations
  • Monitor EPSS trend and exploit availability for prioritization

The record

A prototype pollution vulnerability was found in module mpath <0.5.1 that allows an attacker to inject arbitrary properties onto Object.prototype.

Affected packages

Ecosystem Package Introduced Fixed
npm mpath 0 0.5.1

Related vulnerabilities