Intel

AIKIDO-2025-10177

copy-anything is vulnerable to Prototype Pollution

Prototype Pollution Pre-CVE
Found by Aikido Intel before public disclosure or CVE publication.
Published Mar 25, 2025

45

Medium Risk

This Affects:

JScopy-anything
1.0.0 - 4.0.3
Fixed in 4.0.4
Are you affected? Scan for Free

TL;DR

Affected versions of this package are vulnerable to prototype pollution, allowing an attacker to inject properties such as isAdmin into an object's prototype when copying an object containing a __proto__ property using the copy function of the copy-anything library. This can lead to unauthorized access, privilege escalation, and unpredictable application behavior due to bypassed permission checks.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range.

Background info

copy-anything is vulnerable to Prototype Pollution in versions 1.0.0 - 4.0.3.

How to fix this

Upgrade the copy-anything library to the patch version.

Are You Affected?

Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.

Free. No credit card required.

Aikido Platform