Skip to content
Payload Playground

Prototype Pollution Payload Generator

Web

Build prototype pollution payloads using __proto__ and constructor.

Related Generators

View all Web

Frequently Asked Questions

What is a prototype pollution payload?+

Prototype pollution exploits unsafe object merging or property assignment in JavaScript to inject properties onto Object.prototype using keys like __proto__ or constructor.prototype. Once polluted, the property appears on nearly every object in the app, which can corrupt logic, bypass checks, or escalate to XSS or RCE.

How do I exploit prototype pollution with __proto__?+

Send a payload such as {"__proto__": {"isAdmin": true}} into a vulnerable merge or JSON.parse-then-assign flow, or use the dotted constructor.prototype.x form when __proto__ is filtered. The generator builds both JSON-body and query-string variants like ?__proto__[isAdmin]=true.

How can prototype pollution be escalated to RCE or XSS?+

Find a gadget that reads a polluted property as code or markup, for example polluting a template option, a child_process spawn argument, or an innerHTML default in a sink. Server-side Node gadgets can reach command execution, while client-side gadgets often land DOM XSS through a sanitizer config.

Does the Prototype Pollution generator run locally in my browser?+

Yes. It is free and fully client-side, so the __proto__ and constructor payloads it generates are never sent to any server. Use it only on applications you are authorized to assess.

Related Cheat Sheets

View all cheat sheets

Send feedback

Report an issue or suggest an improvement.

0/2000

Your report includes this page (/generators/prototype-pollution) and your browser. If you’re signed in, we include your account ID and plan so support can prioritize Pro requests. Please leave out secrets and client data.