CodeZettaInterview Hub

Node.js · Security · Fresh / Intern · Concept

What is prototype pollution and how does it show up in Node?

Short Interview Answer

Merging untrusted objects into `{}` can alter Object.prototype if __proto__ is honored.

Detailed Explanation

Use safe merge libs, Object.create(null), and freeze critical objects. Validate JSON. Patch outdated deps.

Did you know this answer?