SIGN IN SIGN UP

fix(agents): use null-prototype accumulator to prevent __proto__ pollution

Addresses cubic-dev-ai P1 review: Object.hasOwn() alone doesn't prevent
a crafted '__proto__' agent name from mutating the result object's
prototype chain. Using Object.create(null) eliminates inherited properties
entirely, making both the hasOwn checks and property assignments safe.
B
Brandon Webb committed
4c77045c473d3e8d28702a1d52e8bb3c63b8787b
Parent: cf4b231
Committed by YeonGyu-Kim <code.yeon.gyu@gmail.com> on 4/15/2026, 1:57:54 AM