Intel

AIKIDO-2026-922647

yargs is vulnerable to Prototype Pollution

Prototype Pollution Pre-CVE
Found by Aikido Intel before public disclosure or CVE publication.
Published 4 days ago

24

Low Risk

This Affects:

JSyargs
0.0.1 - 18.0.0
Fixed in 18.1.0
Are you affected? Scan for Free

TL;DR

mergeDeep in apply-extends recursively merges configuration objects without skipping __proto__ keys. Attacker-influenced config that includes __proto__ can therefore pollute the merged object's prototype and alter later property lookups. The fix skips __proto__ during the deep merge.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and applyExtends / config extends merges attacker-influenced objects.

Background info

yargs is vulnerable to Prototype Pollution in versions 0.0.1 - 18.0.0.

How to fix this

Upgrade the yargs library to the patch version.