SpinTheMic
Pro

Interview practice question

A prototype pollution vulnerability is reported in your code

Frontend Engineering · JavaScript Core · Experienced

A security scan reports prototype pollution in your app's deep merge utility used with user input. How do you fix and assess it?

What a strong answer covers

Your AI report card counts how many of these ideas you cover.

  • Block __proto__, constructor, prototype keys.
  • Use safe merge libraries.
  • Null-prototype objects or Map for user data.
  • Assess impact (security checks relying on props).
  • Add tests and schema validation.
Practise this topic

Start without signing up. Sign in free to get an AI report card on your answer.

See all topics