# Prototype Pollution
> An attacker-controlled key such as `__proto__` or `constructor.prototype` reaches a property write on a plain object, so the value lands on `Object.prototype` and is inherited by every object in the JavaScript runtime (CWE-1321).
## What it is
Every JS object resolves missing properties by walking its `[[Prototype]]` chain to `Object.prototype`. If user input controls a key path in a recursive merge, clone, path-setter or parser, a write to `obj["__proto__"][k] = v` becomes `Object.prototype[k] = v`, and `({}).k === v` from then on ([[raw/infosecwriteups.com/javascript-prototype-pollution-deep-dive-reconnaissance-exploitation-b-8657|InfoSec Write-ups deep dive]], [[raw/jfrog.com/where-severity-scores-go-wrong-just-add-prototype-pollution-10035|JFrog]]).
The broken trust boundary is between data keys and the object model. The parser treats `"__proto__"` as an ordinary string key (`JSON.parse` does not special-case it), but the assignment target does special-case it. The bug is in the sink that copies the key, not in the parser.
Pollution is a **primer, not an impact**. It only matters when a **gadget** later reads an unset property, gets the inherited value, and passes it to something dangerous. The gadget can be the app's own code, a library, or the runtime ([[raw/infosecwriteups.com/javascript-prototype-pollution-deep-dive-reconnaissance-exploitation-b-8657|InfoSec Write-ups]], [[raw/jfrog.com/where-severity-scores-go-wrong-just-add-prototype-pollution-10035|JFrog]]). Tib3rius's interview canon gives the split: client side usually leads to DOM XSS, and server side (Node.js) leads to access-control bypass or RCE ([[raw/tib3rius.com/web-appsec-interview-questions-5906|Tib3rius]]).
## Why it matters
Impact ladder, from weakest to strongest:
| Level | What the gadget does | Example from the notes |
|---|---|---|
| DoS | Inherited keys break iteration or validation everywhere | n8n: TypeORM `buildWhere` picks up the polluted key through `for...in` and throws on every query. The instance stays down until restart ([[raw/simonkoeck.com/cve-2026-33696-from-a-schema-name-to-rce-in-n8n-11422|Koeck]]) |
| Logic / authz bypass | `isAdmin`, `role` and similar checks read an inherited `true` | `{"__proto__":{"isAdmin":true}}` via `Object.assign`/`_.merge` ([[raw/infosecwriteups.com/javascript-prototype-pollution-deep-dive-reconnaissance-exploitation-b-8657|InfoSec Write-ups]]) |
| DOM XSS | A library reads an unset config key into an HTML/script sink | Client-side URL-fragment or query sources ([[raw/portswigger.net/dom-invader-2577|DOM Invader]]) |
| SSRF / MitM | The HTTP client inherits `proxy` or headers | Axios `proxy` gadget (CVE-2026-44494) and the Axios header-CRLF gadget that reaches IMDSv2 ([[raw/jfrog.com/where-severity-scores-go-wrong-just-add-prototype-pollution-10035|JFrog]], [[raw/github.com/axios-unrestricted-cloud-metadata-exfiltration-via-header-injection-ch-4787|GHSA-fvcv-3m26-pcqx]]) |
| RCE | Inherited keys reach `spawn` env/options, a template compiler, or `Function()` codegen | n8n `GIT_SSH_COMMAND`, Handlebars/Pug AST injection, protobuf.js CVE-2026-44291 |
What drives severity is whether **both** halves exist in the same process. JFrog reassessed the ten 2026 Axios "gadget" CVEs, which GitHub/NVD rated from low to critical. Each one is exploitable only if pollution already exists elsewhere in the runtime, so JFrog rates most of them low or medium. The same reasoning applied to DOMPurify CVE-2024-48910, React Router CVE-2026-42211 and Piscina CVE-2026-55388 ([[raw/jfrog.com/where-severity-scores-go-wrong-just-add-prototype-pollution-10035|JFrog]]). Prototype pollution is no longer limited to the web: Adobe Acrobat Reader CVE-2026-34621 (CVSS 8.6) was a prototype pollution bug in Reader's embedded JS engine and was exploited in the wild through phishing PDFs ([[raw/mishcon.com/adobe-acrobat-reader-prototype-pollution-vulnerability-enables-remote-5627|Mishcon]], [[raw/thehackernews.com/adobe-patches-actively-exploited-acrobat-reader-flaw-cve-2026-34621-5717|THN]], [[raw/hkcert.org/adobe-acrobat-remote-code-execution-vulnerability-5686|HKCERT]]). At ecosystem scale, Unit 42's AI-driven zero-day sweep found that JS/TS findings concentrate in code injection, **prototype pollution** and SSRF ([[raw/unit42.paloaltonetworks.com/the-frontier-ai-vulnerability-burst-industrializing-autonomous-zero-da-11068|Unit 42]]).
## How it works
Three ingredients:
1. **Source.** Attacker-shaped keys: a JSON body, query string (`a[__proto__][x]=1`, `__proto__.x=1`), URL fragment, `postMessage`, `localStorage`, WebSocket frames, GraphQL variables, XML, cookies or upload metadata ([[raw/infosecwriteups.com/javascript-prototype-pollution-deep-dive-reconnaissance-exploitation-b-8657|InfoSec Write-ups]]).
2. **Pollution sink.** Code that writes nested keys without own-property and name checks: `_.merge`/`defaultsDeep`, `$.extend`, `Object.assign` into a shared object, `flat`/`unflatten`, `qs`-style bracket parsers, path setters, `obj[userKey] ??= {}`.
3. **Gadget.** A read of an unset property whose inherited value reaches a sink. See [[Prototype Pollution Gadgets]].
```js
// pollution sink (n8n GSuiteAdmin, CVE-2026-33696, simplified)
customSchemas[schemaName] ??= {}; // schemaName = "__proto__" -> Object.prototype
customSchemas[schemaName][fieldName] = v; // Object.prototype[fieldName] = v
```
([[raw/simonkoeck.com/cve-2026-33696-from-a-schema-name-to-rce-in-n8n-11422|Koeck]])
Variants:
- **[[Client-Side Prototype Pollution]].** URL and `postMessage` sources in the browser. Gadgets live in front-end libraries and lead to DOM XSS or sanitizer bypass.
- **[[Server-Side Prototype Pollution]].** Node.js body, query and parser sources. The process is long-lived, so one request poisons every later request. Gadgets lead to authz bypass, DoS, SSRF or RCE.
- **Parser and deserializer pollution.** Formats whose decoders resolve attacker-named properties up the chain: React Flight (React2Shell, CVE-2025-55182), xml2js, GraphQL incremental-delivery merge, protobuf.js. These are covered on the server-side page and in [[Insecure Deserialization]].
- **Prototype traversal in sandboxes.** The same chain-walking breaks JS sandboxes: vm2's 2026 escapes (CVE-2026-43999 "escape the sandbox and enable prototype pollution"), and Cohere Terrarium CVE-2026-5752 (Pyodide → host Node.js prototype traversal, root in the container) ([[raw/thehackernews.com/vm2-node-js-library-vulnerabilities-enable-sandbox-escape-and-arbitrar-7789|THN vm2]], [[raw/thehackernews.com/cohere-ai-terrarium-sandbox-flaw-enables-root-code-execution-container-5625|THN Terrarium]]).
- **Prototype overwrite inside expression sandboxes.** AngularJS sandbox escapes overwrite `String.prototype.charAt` to break the expression lexer. This is a close cousin rather than input-key pollution, so see [[Client-Side Prototype Pollution]].
## Where to find it
- **Stack signals.** Node/Express is the place to look for prototype pollution and SSRF ([[raw/bug-bounties.as93.net/recon-methodology-for-bug-bounties-finding-attack-surface-others-miss-14252|as93 recon]]). Fingerprint jQuery, lodash, Handlebars and similar libraries and their versions in JS bundles ([[raw/infosecwriteups.com/javascript-prototype-pollution-deep-dive-reconnaissance-exploitation-b-8657|InfoSec Write-ups]]).
- **Features that merge user objects into existing ones.** Settings and profile `PATCH` endpoints, config import, "update preferences" endpoints, which overlap with [[Mass Assignment]].
- **Generic key-to-object code.** Any place a user string becomes a property name: schema names, field names, workflow node parameters (n8n), XML tag names (xml2js), GraphQL `path` segments (graphql-tools).
- **Non-HTTP transports.** WebSocket messages and GraphQL variables ([[raw/infosecwriteups.com/javascript-prototype-pollution-deep-dive-reconnaissance-exploitation-b-8657|InfoSec Write-ups]]), and upstream GraphQL `@defer`/`@stream` responses consumed by a gateway ([[raw/advisories.gitlab.com/graphql-tools-prototype-pollution-advisory-13387|GitLab advisory]]).
- **Schema and codegen pipelines.** protobuf.js treats schemas and descriptors as trusted ([[raw/thehackernews.com/six-proto6-vulnerabilities-in-protobuf-js-expose-node-js-apps-to-rce-a-8856|THN Proto6]]).
- **Template contexts.** `{{this.__proto__}}` rendering `[object Object]` in an email or profile template points to a Node engine and prototype access ([[raw/hackerone.com/hackerone-report-423541-h1514-server-side-template-injection-4592|H1 #423541]], [[raw/medium.com/server-side-template-injection-bug-bounty-2k25-4728|SSTI 2k25]]).
## How to test
1. **Fingerprint.** Is the runtime Node or a heavy front-end, and which merge, parse or template libraries are in use, at what versions?
2. **Map sources.** Spider the app and pull endpoints from JS. Include JSON, query, cookie, WebSocket, GraphQL and XML inputs ([[raw/infosecwriteups.com/javascript-prototype-pollution-deep-dive-reconnaissance-exploitation-b-8657|InfoSec Write-ups]]).
3. **Try the payload-shape matrix** on every object-accepting input:
```
{"__proto__":{"polluted":"yes"}}
{"constructor":{"prototype":{"polluted":"yes"}}}
{"a":{"__proto__":{"polluted":"yes"}}}
{"__proto__":{"__proto__":{"polluted":"yes"}}}
?__proto__[polluted]=yes ?__proto__.polluted=yes #__proto__[polluted]=yes
```
Also try nesting deeper than the top level. xml2js blocked a top-level `<__proto__>` (CVE-2023-0842), but a nested one still worked ([[raw/dexpose.io/n8n-from-parsing-bug-to-remote-code-execution-aka-cve-2026-42231-7582|dexpose]]). Try non-string key types too, such as an array segment `["__proto__"]` against `===` blocklists ([[raw/advisories.gitlab.com/graphql-tools-prototype-pollution-advisory-13387|GitLab advisory]]).
4. **Confirm pollution without breaking things.**
- Client side: check `({}).polluted` in the console, or let DOM Invader find the source.
- Server side: look for an inherited key reflected in later JSON responses, or a status flip (403 → 200) ([[raw/infosecwriteups.com/javascript-prototype-pollution-deep-dive-reconnaissance-exploitation-b-8657|InfoSec Write-ups]]). Prefer non-destructive property names, because server pollution persists for the life of the process and can DoS the target (n8n/TypeORM).
5. **Hunt a gadget.** Look for library-specific canaries. For example, an `Object.prototype.pendingContent` string appearing in Handlebars output fingerprints the engine black-box ([[raw/po6ix.github.io/ast-injection-prototype-pollution-to-rce-in-handlebars-4131|po6ix]]). Then trace which unset properties reach sinks. See [[Prototype Pollution Gadgets]].
6. **Report the chain.** A gadget without a source gets discounted, so pair the source with the sink in the same process ([[raw/jfrog.com/where-severity-scores-go-wrong-just-add-prototype-pollution-10035|JFrog]]; see [[Vulnerability Chaining]]).
**Checklist**
- [ ] Every JSON/query/XML/GraphQL/WebSocket object input tried with `__proto__`, `constructor.prototype`, nested and bracket/dot forms
- [ ] Array and other non-primitive key segments tried against name blocklists
- [ ] Client-side: URL query and hash, `postMessage`, storage sources checked (DOM Invader / pphack)
- [ ] Server-side: a reflected inherited property or a status/behavior change confirmed with a benign key
- [ ] Gadget identified in the same runtime (template engine, HTTP client, `child_process`, codegen, sanitizer)
- [ ] Persistence and DoS risk considered before polluting shared server keys
- [ ] Clean-up planned (re-set the key to `undefined` where the app allows it)
## Exploitation and escalation
- **To DOM XSS or sanitizer bypass.** Inherited config keys flow into `innerHTML` or script `src` in front-end libraries. See [[Client-Side Prototype Pollution]] and [[DOM-Based XSS]].
- **To authz bypass.** Inherited `isAdmin`/role flags. This overlaps with [[Mass Assignment]].
- **To RCE through `child_process`.** Polluted env keys pass through objects the app allocates as `{}`. n8n's Git node (simple-git `.env()` → `spawn`) inherits `GIT_SSH_COMMAND`, which git runs as a shell command on SSH-style URLs ([[raw/simonkoeck.com/cve-2026-33696-from-a-schema-name-to-rce-in-n8n-11422|Koeck]], [[raw/dexpose.io/n8n-from-parsing-bug-to-remote-code-execution-aka-cve-2026-42231-7582|dexpose]]). Node's own `spawn` no longer honors polluted `options` directly, so the gadget has to be app code that builds a plain options or env object ([[raw/dexpose.io/n8n-from-parsing-bug-to-remote-code-execution-aka-cve-2026-42231-7582|dexpose]]).
- **To RCE through template compilers (AST injection).** Pollution inserts nodes into the Handlebars or Pug AST, and the compiler emits them into a generated function ([[raw/po6ix.github.io/ast-injection-prototype-pollution-to-rce-in-handlebars-4131|po6ix]]). See [[JavaScript Template Engine SSTI]].
- **To RCE through codegen.** protobuf.js resolves type names by plain property lookup, so a polluted prototype makes an attacker string look like a primitive type. The string is then compiled with `Function()` (CVE-2026-44291) ([[raw/thehackernews.com/six-proto6-vulnerabilities-in-protobuf-js-expose-node-js-apps-to-rce-a-8856|THN Proto6]]).
- **To SSRF, cloud compromise or MitM.** Axios inherits `proxy` (traffic interception) or CRLF-bearing header values, which smuggle an IMDSv2 token `PUT` ([[raw/jfrog.com/where-severity-scores-go-wrong-just-add-prototype-pollution-10035|JFrog]], [[raw/github.com/axios-unrestricted-cloud-metadata-exfiltration-via-header-injection-ch-4787|GHSA-fvcv-3m26-pcqx]]). See [[Cloud Metadata Service Exploitation]].
- **Deserializer-native chains.** React2Shell reaches `constructor:constructor` (the Function constructor) through prototype-chain references in Flight payloads ([[raw/offsec.com/cve-2025-55182-react-server-components-rce-via-flight-payload-deserial-3546|OffSec]]). See [[Remote Code Execution]].
## Bypassing defenses
- **Top-level-only checks.** xml2js rejected a top-level `__proto__` tag after CVE-2023-0842, but a nested `<test><__proto__/></test>` still handed back a reference to `Object.prototype` ([[raw/dexpose.io/n8n-from-parsing-bug-to-remote-code-execution-aka-cve-2026-42231-7582|dexpose]]).
- **`in` versus own-property.** xml2js's CoffeeScript `key not of obj` compiles to `!(key in obj)`. The `in` check walks the chain, so inherited names (`__proto__`, `constructor`) are treated as existing keys ([[raw/dexpose.io/n8n-from-parsing-bug-to-remote-code-execution-aka-cve-2026-42231-7582|dexpose]]).
- **Type confusion against string blocklists.** graphql-tools compared segments with `=== '__proto__'`, but an array segment `["__proto__"]` passes the check and is then coerced to the key `"__proto__"` by `ToPropertyKey` (CVE-2026-114604, fixed in 12.0.2). The earlier `dset`-based code (≤10.10.0) was not exploitable ([[raw/advisories.gitlab.com/graphql-tools-prototype-pollution-advisory-13387|GitLab advisory]], [[raw/miggo.io/cve-2026-114604-graphql-tools-prototype-pollution-15486|Miggo]]).
- **`constructor.prototype` instead of `__proto__`.** Filters that block only `__proto__` miss it ([[raw/infosecwriteups.com/javascript-prototype-pollution-deep-dive-reconnaissance-exploitation-b-8657|InfoSec Write-ups]]).
- **Guards that exist but aren't used.** n8n already had a `deepMerge` with pollution guards, but the GSuiteAdmin node didn't call it ([[raw/simonkoeck.com/cve-2026-33696-from-a-schema-name-to-rce-in-n8n-11422|Koeck]]).
- **Constrained primitives still chain.** xml2js only gave array-wrapped values, but a post-parse "Edit Fields" step could write arbitrary keys through the leaked reference ([[raw/dexpose.io/n8n-from-parsing-bug-to-remote-code-execution-aka-cve-2026-42231-7582|dexpose]]).
## Real-world cases
- **n8n CVE-2026-33696 (CVSS 9.4).** GSuiteAdmin `schemaName="__proto__"` → `GIT_SSH_COMMAND` → RCE through the Git node, plus a TypeORM DoS ([[raw/simonkoeck.com/cve-2026-33696-from-a-schema-name-to-rce-in-n8n-11422|Koeck]], [[raw/thehackernews.com/threatsday-gogs-10-0-rce-n8n-workflow-to-rce-10m-reward-glm-5-3-ai-exp-11592|THN ThreatsDay]]).
- **n8n CVE-2026-42231.** xml2js nested `__proto__` in a webhook body → unauthenticated RCE through a spawn-style gadget in `@n8n/node-cli` ([[raw/dexpose.io/n8n-from-parsing-bug-to-remote-code-execution-aka-cve-2026-42231-7582|dexpose]]).
- **React2Shell CVE-2025-55182.** React 19.0.0–19.2.0 and Next.js 16.0.0–16.0.6. The Flight decoder resolves attacker property names without own-property checks, leading to unauthenticated RCE. Exploited from 5 Dec 2025, mostly to deploy coin miners ([[raw/seqrite.com/react2shell-cve-2025-55182-rsc-flight-decoder-remote-code-execution-4839|Seqrite]], [[raw/microsoft.com/defending-against-react2shell-in-react-server-components-3551|Microsoft]], [[raw/resecurity.com/react2shell-explained-from-vulnerability-discovery-to-exploitation-3458|Resecurity]]).
- **graphql-tools CVE-2026-114604 (8.4).** `mergeIncrementalResult` array-segment bypass. A malicious upstream pollutes the gateway ([[raw/cvebrief.com/graphql-tools-prototype-pollution-in-mergeincrementalresult-cve-2026-1-13386|CVE Brief]], [[raw/secopssignal.com/graphql-tools-utils-prototype-pollution-in-incremental-result-merge-cv-14353|SecOps Signal]], [[raw/openadvisories.org/graphql-tools-prototype-pollution-in-mergeincrementalresult-cve-2026-1-13727|OpenAdvisories]]).
- **protobuf.js "Proto6".** CVE-2026-44291 (8.1) is a codegen gadget after pollution, and CVE-2026-44292 is prototype injection in generated constructors. Fixed in 7.5.6 and 8.0.2 ([[raw/thehackernews.com/six-proto6-vulnerabilities-in-protobuf-js-expose-node-js-apps-to-rce-a-8856|THN]], [[raw/entryzero.ai/top-5-hacker-relevant-vulnerabilities-week-44-2026-13263|EntryZero]]).
- **Axios 2026 gadget wave.** Ten CVEs that all need pre-existing pollution. JFrog chained lodash CVE-2019-10744 (`defaultsDeep`, 4.17.11) with CVE-2026-44494 to get MitM ([[raw/jfrog.com/where-severity-scores-go-wrong-just-add-prototype-pollution-10035|JFrog]]).
- **Adobe Acrobat Reader CVE-2026-34621.** Prototype pollution in Reader's JS engine through PDF form actions. Exploited in the wild ([[raw/mishcon.com/adobe-acrobat-reader-prototype-pollution-vulnerability-enables-remote-5627|Mishcon]]).
- **Handlebars GHSA-2cf5-4w76-r9qv (2021).** Prototype pollution through crafted templates ([[raw/xygeni.io/handlebars-js-safe-usage-to-avoid-injection-flaws-4129|Xygeni]]). The Shopify Return Magic Handlebars RCE abused `Object.prototype.toString` overriding ([[raw/mahmoudsec.blogspot.com/handlebars-template-injection-and-rce-in-shopify-app-4132|mahmoudsec]]).
- **vm2 2026 escapes and Cohere Terrarium CVE-2026-5752.** Prototype traversal used as a sandbox escape ([[raw/thehackernews.com/vm2-node-js-library-vulnerabilities-enable-sandbox-escape-and-arbitrar-7789|THN]], [[raw/thehackernews.com/cohere-ai-terrarium-sandbox-flaw-enables-root-code-execution-container-5625|THN]]).
## Prevention
- **Block dangerous keys at every write.** Reject `__proto__`, `constructor` and `prototype`, and only after validating that the key is a primitive string or number ([[raw/simonkoeck.com/cve-2026-33696-from-a-schema-name-to-rce-in-n8n-11422|Koeck]], [[raw/advisories.gitlab.com/graphql-tools-prototype-pollution-advisory-13387|GitLab advisory]]).
- **Use prototype-less containers for user-keyed maps.** `Object.create(null)` (or `Map`) for anything keyed by user input ([[raw/simonkoeck.com/cve-2026-33696-from-a-schema-name-to-rce-in-n8n-11422|Koeck]]).
- **Use own-property checks, not `in` or a bare `obj[key]`, when resolving attacker-named properties.** This was the root cause in both React Flight and xml2js ([[raw/seqrite.com/react2shell-cve-2025-55182-rsc-flight-decoder-remote-code-execution-4839|Seqrite]], [[raw/dexpose.io/n8n-from-parsing-bug-to-remote-code-execution-aka-cve-2026-42231-7582|dexpose]]).
- **Use one vetted deep-merge.** Route every merge through a single guarded helper, and lint for ad-hoc `obj[a][b] = v` ([[raw/simonkoeck.com/cve-2026-33696-from-a-schema-name-to-rce-in-n8n-11422|Koeck]]).
- **Freeze prototypes where the architecture allows it.** Mozilla's frozen-prototypes design repeatedly stopped an AI model's prototype-pollution sandbox-escape attempts in Firefox ([[raw/tldrsec.com/tl-dr-sec-328-shai-hulud-s-source-code-leaked-break-into-buildings-for-8600|tl;dr sec #328]]).
- **Harden gadgets.** Validate header values for CRLF (Axios), stop treating schemas and metadata as trusted code (protobuf.js), and keep Handlebars patched against its own pollution advisory ([[raw/github.com/axios-unrestricted-cloud-metadata-exfiltration-via-header-injection-ch-4787|GHSA-fvcv-3m26-pcqx]], [[raw/thehackernews.com/six-proto6-vulnerabilities-in-protobuf-js-expose-node-js-apps-to-rce-a-8856|THN Proto6]], [[raw/xygeni.io/handlebars-js-safe-usage-to-avoid-injection-flaws-4129|Xygeni]]).
- **Patch the source libraries.** No seven-year-old lodash (4.17.11 / CVE-2019-10744), graphql-tools ≥12.0.2, protobufjs 7.5.6/8.0.2, React/Next.js past the React2Shell fix. Score gadget CVEs in context rather than at face value ([[raw/jfrog.com/where-severity-scores-go-wrong-just-add-prototype-pollution-10035|JFrog]]).
## Tools
| Tool | Use |
|---|---|
| DOM Invader (Burp browser) | Finds client-side pollution sources and scans for gadgets that reach sinks ([[raw/portswigger.net/dom-invader-2577|PortSwigger]]) |
| Server-Side Prototype Pollution Scanner (hackvertor, Burp ≥2021.9) | Non-destructive server-side detection ([[raw/github.com/snoopysecurity-awesome-burp-extensions-a-curated-list-of-amazingly-awe-892|awesome-burp-extensions]], [[raw/github.com/awesome-burp-extensions-2025-4819|2025 list]]) |
| Prototype Pollution Gadgets Finder (BApp) | Server-side gadget analysis ([[raw/portswigger.net/bapp-store-portswigger-2862|BApp Store]]) |
| BChecks "Server Side Prototype Pollution" | Scanner check for Burp Pro ([[raw/github.com/portswigger-bchecks-bchecks-collection-for-burp-suite-professional-5576|BChecks]]) |
| pphack | Client-side prototype pollution scanner ([[raw/github.com/ars0n-framework-v2-bug-bounty-hunting-framework-4866|ars0n-framework]]) |
| `page-fetch` one-liner | Mass client-side check: append `?__proto__[testparam]=exploit` and evaluate `window.testparam` ([[raw/github.com/0xpugazh-one-liners-1013|0xPugazh]], [[raw/github.com/dwisiswant0-awesome-oneliner-bugbounty-5921|dwisiswant0]]) |
| SAST / LLM review | Prototype pollution is among the classes LLM reviewers find reliably (Snyk VulnBench JS), but SAST hits inside vendored libraries are mostly false positives without context ([[raw/snyk.io/snyk-vulnbench-js-1-0-can-llms-find-the-same-bugs-twice-9972|Snyk]], [[raw/lambdasec.github.io/frame-grounding-llm-vulnerability-detection-with-a-sound-separation-lo-12077|Frame]]) |
## Sub-pages
- [[Client-Side Prototype Pollution]]: browser sources (URL, `postMessage`), front-end gadgets, DOM XSS, and `Event.prototype`-style tricks.
- [[Server-Side Prototype Pollution]]: Node.js merge and parser sinks, safe detection, the n8n, React2Shell and graphql-tools cases.
- [[Prototype Pollution Gadgets]]: what turns pollution into impact, including template AST injection, `child_process` env, Axios, protobuf.js codegen, and severity scoring.
**Related:** [[Remote Code Execution]] · [[DOM-Based XSS]] · [[Cross-Site Scripting]] · [[JavaScript Template Engine SSTI]] · [[Server-Side Template Injection]] · [[Mass Assignment]] · [[Insecure Deserialization]] · [[Gadget Chains]] · [[Server-Side Parameter Pollution]] · [[Vulnerability Chaining]] · [[GraphQL Security]] · [[Cloud Metadata Service Exploitation]]
## Sources
- [[raw/infosecwriteups.com/javascript-prototype-pollution-deep-dive-reconnaissance-exploitation-b-8657|JavaScript Prototype Pollution Deep Dive: Reconnaissance, Exploitation & Bug Bounty Guideline]]
- [[raw/jfrog.com/where-severity-scores-go-wrong-just-add-prototype-pollution-10035|Where Severity Scores Go Wrong: "Just Add Prototype Pollution"]]
- [[raw/github.com/axios-unrestricted-cloud-metadata-exfiltration-via-header-injection-ch-4787|Unrestricted Cloud Metadata Exfiltration via Header Injection Chain]]
- [[raw/simonkoeck.com/cve-2026-33696-from-a-schema-name-to-rce-in-n8n-11422|CVE-2026-33696: From a Schema Name to RCE in n8n]]
- [[raw/dexpose.io/n8n-from-parsing-bug-to-remote-code-execution-aka-cve-2026-42231-7582|n8n: From Parsing Bug to Remote Code Execution aka CVE-2026-42231]]
- [[raw/thehackernews.com/threatsday-gogs-10-0-rce-n8n-workflow-to-rce-10m-reward-glm-5-3-ai-exp-11592|ThreatsDay: Gogs 10.0 RCE, n8n Workflow-to-RCE, and More]]
- [[raw/po6ix.github.io/ast-injection-prototype-pollution-to-rce-in-handlebars-4131|AST Injection: Prototype Pollution to RCE in Handlebars]]
- [[raw/xygeni.io/handlebars-js-safe-usage-to-avoid-injection-flaws-4129|Handlebars.js: Safe Usage to Avoid Injection Flaws]]
- [[raw/mahmoudsec.blogspot.com/handlebars-template-injection-and-rce-in-shopify-app-4132|Handlebars template injection and RCE in Shopify app]]
- [[raw/hackerone.com/hackerone-report-423541-h1514-server-side-template-injection-4592|HackerOne Report #423541: H1514 Server Side Template Injection]]
- [[raw/medium.com/server-side-template-injection-bug-bounty-2k25-4728|Server-Side Template Injection — Bug Bounty 2k25]]
- [[raw/thehackernews.com/six-proto6-vulnerabilities-in-protobuf-js-expose-node-js-apps-to-rce-a-8856|Six Proto6 Vulnerabilities in protobuf.js Expose Node.js Apps to RCE and DoS]]
- [[raw/entryzero.ai/top-5-hacker-relevant-vulnerabilities-week-44-2026-13263|Top 5 hacker-relevant vulnerabilities (week 44 2026)]]
- [[raw/advisories.gitlab.com/graphql-tools-prototype-pollution-advisory-13387|GraphQL Tools prototype pollution advisory]]
- [[raw/cvebrief.com/graphql-tools-prototype-pollution-in-mergeincrementalresult-cve-2026-1-13386|graphql-tools prototype pollution in mergeIncrementalResult (CVE-2026-114604)]]
- [[raw/secopssignal.com/graphql-tools-utils-prototype-pollution-in-incremental-result-merge-cv-14353|GraphQL Tools utils prototype pollution in incremental result merge (CVE-2026-114604)]]
- [[raw/openadvisories.org/graphql-tools-prototype-pollution-in-mergeincrementalresult-cve-2026-1-13727|GraphQL Tools prototype pollution in mergeIncrementalResult (CVE-2026-114604)]]
- [[raw/miggo.io/cve-2026-114604-graphql-tools-prototype-pollution-15486|CVE-2026-114604: GraphQL Tools prototype pollution]]
- [[raw/offsec.com/cve-2025-55182-react-server-components-rce-via-flight-payload-deserial-3546|CVE-2025-55182: React Server Components RCE via Flight Payload Deserialization]]
- [[raw/seqrite.com/react2shell-cve-2025-55182-rsc-flight-decoder-remote-code-execution-4839|React2Shell (CVE-2025-55182): RSC Flight Decoder Remote Code Execution]]
- [[raw/microsoft.com/defending-against-react2shell-in-react-server-components-3551|Defending Against React2Shell in React Server Components]]
- [[raw/resecurity.com/react2shell-explained-from-vulnerability-discovery-to-exploitation-3458|React2Shell Explained: From Vulnerability Discovery to Exploitation]]
- [[raw/mishcon.com/adobe-acrobat-reader-prototype-pollution-vulnerability-enables-remote-5627|Adobe Acrobat Reader: Prototype pollution vulnerability enables remote code execution]]
- [[raw/thehackernews.com/adobe-patches-actively-exploited-acrobat-reader-flaw-cve-2026-34621-5717|Adobe Patches Actively Exploited Acrobat Reader Flaw CVE-2026-34621]]
- [[raw/hkcert.org/adobe-acrobat-remote-code-execution-vulnerability-5686|Adobe Acrobat Remote Code Execution Vulnerability]]
- [[raw/thehackernews.com/vm2-node-js-library-vulnerabilities-enable-sandbox-escape-and-arbitrar-7789|vm2 Node.js Library Vulnerabilities Enable Sandbox Escape and Arbitrary Code Execution]]
- [[raw/thehackernews.com/cohere-ai-terrarium-sandbox-flaw-enables-root-code-execution-container-5625|Cohere AI Terrarium Sandbox Flaw Enables Root Code Execution Container Escape]]
- [[raw/tldrsec.com/tl-dr-sec-328-shai-hulud-s-source-code-leaked-break-into-buildings-for-8600|tl;dr sec #328]]
- [[raw/unit42.paloaltonetworks.com/the-frontier-ai-vulnerability-burst-industrializing-autonomous-zero-da-11068|The Frontier AI Vulnerability Burst]]
- [[raw/tib3rius.com/web-appsec-interview-questions-5906|Web AppSec Interview Questions]]
- [[raw/bug-bounties.as93.net/recon-methodology-for-bug-bounties-finding-attack-surface-others-miss-14252|Recon methodology for bug bounties: finding attack surface others miss]]
- [[raw/portswigger.net/dom-invader-2577|DOM Invader]]
- [[raw/github.com/snoopysecurity-awesome-burp-extensions-a-curated-list-of-amazingly-awe-892|snoopysecurity/awesome-burp-extensions]]
- [[raw/github.com/awesome-burp-extensions-2025-4819|Awesome Burp Extensions 2025]]
- [[raw/portswigger.net/bapp-store-portswigger-2862|BApp Store - PortSwigger]]
- [[raw/github.com/portswigger-bchecks-bchecks-collection-for-burp-suite-professional-5576|PortSwigger/BChecks]]
- [[raw/github.com/ars0n-framework-v2-bug-bounty-hunting-framework-4866|ars0n-framework-v2: Bug Bounty Hunting Framework]]
- [[raw/github.com/0xpugazh-one-liners-1013|0xPugazh/One-Liners]]
- [[raw/github.com/dwisiswant0-awesome-oneliner-bugbounty-5921|dwisiswant0/awesome-oneliner-bugbounty]]
- [[raw/snyk.io/snyk-vulnbench-js-1-0-can-llms-find-the-same-bugs-twice-9972|Snyk VulnBench JS 1.0: Can LLMs Find the Same Bugs Twice?]]
- [[raw/lambdasec.github.io/frame-grounding-llm-vulnerability-detection-with-a-sound-separation-lo-12077|Frame: Grounding LLM Vulnerability Detection with a Sound Separation-Logic Core]]