Official nomination
AST Injection, Prototype Pollution to RCE
Prototype pollution in a Node.js application can insert nodes into the abstract syntax tree that a template engine passes from parser to compiler. Handlebars and Pug then compile attacker-supplied AST fragments without revalidating them, so the polluted properties become arbitrary code in the generated template function and give remote code execution.
Preserved copies · posix · Original publication ↗
Record
- Researcher
- posix
- Published by
- POSIX
- Date
- Topic
- Injection
In the archive
- Nominated for the 2020 Top 10 Web Hacking Techniques · Open this archive record
Announcement provenance and preserved copies
PortSwigger Research · Source identity checked 2026-11-18; live availability may change. Historical material does not establish that nominations or voting are open.
Official results · Preserved results (PDF)
Official nomination material
Tags
This page is the archive's own catalogue record. The research is the work of posix, first published at the original source. Preserved copies are kept so the citation survives its host.