-
Security
Protect my app from prototype pollution
Finds every place untrusted JSON gets merged into objects and blocks __proto__ and constructor keys from poisoning the prototype chain.
Free Prompt
What This Does / How This Helps
Finds every spot where request data flows into a generic object merge and cuts off the keys that let an attacker rewrite Object.prototype. Prototype pollution is the JavaScript bug most scanners miss. An attacker sends a JSON body with a __proto__ key nested inside it, your merge helper dutifully copies it, and now every object in the process has new properties. Depending on what your code checks for, that can mean bypassed authorization checks, injected options, or a crashed server. Vibe-coded apps are full of deep-merge helpers because AI assistants reach for them constantly. The prompt finds each one, applies the smallest fix that keeps your API contract intact, and hands you attack payloads to prove the hole is closed.
Want to skip doing this by hand?
Fortivibe audits your app for all of the areas these prompts cover (and more).