Intel

AIKIDO-2026-10361

unhead is vulnerable to Prototype Pollution

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

67

Medium Risk

This Affects:

JSunhead
0.0.1 - 2.1.11
Fixed in 2.1.12
Are you affected? Scan for Free

TL;DR

Affected versions of this package are affected by a prototype pollution vulnerability in unhead. Insufficient validation when merging user-controlled objects into internal configuration structures allows specially crafted property names such as __proto__ to modify the prototype of JavaScript objects. This could allow an attacker to inject arbitrary properties into the global object prototype, potentially influencing application behavior and enabling further attacks depending on how polluted properties are later used. The issue is addressed by adding safeguards to prevent prototype keys from being merged into internal objects.

Who does this affect?

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

Background info

unhead is vulnerable to Prototype Pollution in versions 0.0.1 - 2.1.11.

How to fix this

Upgrade the unhead library to the patch version.