Berildocs GitHub

Memory cards

Prototype pollution needs a merge sink and a gadget

confidence: highupdated: 2026-11-24status: activewebjavascriptprototype

Claim#

A recursive merge writes _proto_ or constructor.prototype, and a later lookup reads an inherited property.

Test#

Send _proto_ and constructor.prototype objects to JSON merge endpoints. Look for a gadget in config or auth.

Proof#

An inherited property changes behavior, such as a role or a header.

Failure modes#

A polluted Object.prototype without a gadget has no impact. JSON.parse alone does not pollute.