Explain it in 60 seconds
Prototype pollution
Frontend Engineering · JavaScript Core · Experienced
What is prototype pollution, and how do you prevent it?
What a strong answer covers
Your AI report card counts how many of these ideas you cover.
- Attacker sets __proto__/constructor.prototype properties.
- Affects all objects.
- Via unsafe deep merge, query parsing.
- Validate keys, use Object.create(null), Map.
- Freeze prototypes; patched libraries.
Practise this topic
Start without signing up. Sign in free to get an AI report card on your answer.