DedSec Security Research ·
Here is a hypothetical. A dynamic scan of a Node.js API returns three results about prototype pollution.
The first is "Server-side prototype pollution", rated high, on POST /api/prefs. The scanner sent {"theme": "dark", "__proto__": {"pp1a2b3c": "cv9f8e7d"}} and the 200 response echoed the whole object back, __proto__ key and canary included. The second is a low, "Prototype pollution (blocked)", on POST /api/settings, an endpoint that takes dotted paths such as notifications.email. The scanner sent the path __proto__.pp1a2b3c and got a 400 saying "forbidden key", and the team reads that as a defence working. The third is not a finding. The scanner sent the same __proto__ body to POST /api/profile, got {"ok": true, "prefs": {"theme": "dark"}} with no trace of its payload, and recorded the endpoint as clean.
The high gets escalated, the low gets closed, and the clean result goes in the report. As elsewhere in this series, each call rests on the title and on what the first response looked like, not on what that response can prove. In our lab, built to reproduce this scenario, the echo on the first endpoint came from code that never touched Object.prototype. The "forbidden key" endpoint blocked __proto__ and let constructor.prototype through, which polluted the process every time. The clean-looking endpoint was the vulnerable one: its response was identical, field for field, to the response from a merge that is not vulnerable.
This post is for whoever is holding a prototype pollution finding against a Node.js service from a dynamic scan, or a clean result they are about to rely on. It covers:
Object.prototype: the own __proto__ key, naive merges, set-by-path helpers and constructor.prototypechild_process did and did not do with an inherited shell or envObject.create(null), cloning, --disable-proto, Object.freeze(Object.prototype) and schema validation actually stopped, and what they costIt belongs to our series on confirming DAST findings. The series guide sets out the evidence classes the series uses, and lists this post as number 24. The closest neighbour is the NoSQL injection post, which is also about a JSON body that the server turns into something other than data. The insecure deserialization post covers the other way an object graph from a request becomes code.
How we tested. Everything ran on 18 November 2026 on a virtual machine with two vCPUs, Ubuntu 24.04.4 and kernel 6.8.0, using Node.js 22.22.2. The origin is a deliberately vulnerable application we wrote using only node:http, plus deepmerge 4.3.1 for one variant. It has a preferences endpoint that merges a JSON body into a per-user object, a settings endpoint that applies dotted-path writes, and four gadgets, described where they come up. Every response carries a per-process boot identifier and a serial number, a counter that increases on each response, so every observation can be attributed to one process and placed in order. A profile setting selects the merge or set-by-path implementation, and Node flags were applied per profile. Everything listened on 127.0.0.1 and ran as an unprivileged user.
The client was a Node harness on node:http, opening a new connection for every request. Each cell, one implementation against one payload shape, ran 20 trials, and every trial started a fresh server process, because pollution is process-global and one trial would otherwise contaminate the next. In each trial, a clean client (user "bob") made four requests, the probing client (user "alice") sent one payload, and bob repeated his four requests. There were 66 cells, 1,320 trials and 11,880 requests, plus a persistence run of 6,220 requests and a set of runtime micro-tests. One JSON line per request is archived with the lab.
This lab models our own toy code. It is not Express, body-parser, qs, lodash or any other library apart from deepmerge 4.3.1, and nothing here measures how those behave. Published research is described in our own words, not quoted. No number here measures any scanner, ours included.
In JavaScript, almost every object inherits from Object.prototype. Reading a property that an object does not have walks up that chain, so a property added to Object.prototype appears on every ordinary object in the process that does not define its own. That is prototype pollution, catalogued as CWE-1321. Olivier Arteau's 2018 NorthSec research on prototype pollution in Node.js applications is the usual starting point for the server-side form.
The route from a request to Object.prototype has three steps, and the first one surprises people.
JSON.parse creates an own property called __proto__. In an object literal in source code, {"__proto__": {...}} sets the new object's prototype. JSON.parse does not do that. It defines every key as an ordinary own data property, including one named __proto__. In our micro-tests on Node 22.22.2, JSON.parse('{"__proto__":{"x":1}}') produced an object whose own keys were ["__proto__"], whose prototype was still Object.prototype, and which left ({}).x undefined. The same text as an object literal produced an object with no own keys whose prototype had x. Parsing is harmless. The parsed object is carrying a key that means something special to the next piece of code that assigns through it.
A naive recursive merge reads target["__proto__"]. The usual shape walks the source's keys, and when the value is an object, it recurses into target[key], creating it if it is missing. On an ordinary target, target["__proto__"] is not missing. It is the inherited __proto__ accessor on Object.prototype, which returns Object.prototype itself. So the merge recurses into Object.prototype and copies the attacker's keys onto it. In our naive merge, {"__proto__": {...}} polluted the process in 20 of 20 trials, and so did the same object nested one level down, {"notifications": {"__proto__": {...}}}.
A set-by-path helper does the same thing one segment at a time. Helpers that turn a.b.c = value into nested writes walk each segment, creating objects as they go. A path of __proto__.isAdmin walks into Object.prototype at the first step. A path of constructor.prototype.isAdmin gets there without the word __proto__: an ordinary object's constructor is the Object function, and Object.prototype is that function's prototype property. In our naive set-by-path helper, both paths polluted the process in 20 of 20 trials.
constructor.prototype did not work against our naive merge, 0 of 20. That merge only recursed into values whose type was "object", and target.constructor is a function, so the merge replaced it with a new own property instead of walking into it. Whether a given merge is open to constructor.prototype depends on exactly that kind of detail, which is why the payload has to be tried rather than reasoned about.
Query strings can build the same objects. Bracket-syntax parsers turn a[b][c]=1 into nested objects, so __proto__[isAdmin]=true in a URL or a form body can produce the same shape as the JSON payload, if the parser allows that key. Whether it does depends on the parser and its options, and we did not test any. The NoSQL injection post measured how bracket syntax builds objects in one framework's parsers.
Client-side prototype pollution happens in a browser. Usually a URL fragment or query is parsed by page script into an object, and a gadget in the page's own code turns a polluted property into script execution. Each exploitation affects the browser that loads the crafted URL, and testing it affects only the tester's browser.
Server-side pollution happens in the process that answers everybody. A polluted Object.prototype in a Node.js server is shared by every request that process handles, for every user, until the process exits. That changes three things for a DAST finding. The tester usually cannot see the polluted object, because it never appears in a response. The effect may only be visible on other endpoints, or to other users. And the probe itself is a change to shared state, which is the test-safety issue covered below.
Here is what the probing client got back from our toy, against several implementations, for the same {"theme": "dark", "__proto__": {...}} payload. "Polluted" means the clean client's later requests changed, as described in the next section.
| Implementation | First response to the prober | Response contained the text __proto__ | Polluted the process |
|---|---|---|---|
| Naive recursive merge | 200, {"ok":true,"prefs":{"theme":"dark"}} | 0 of 20 | 20 of 20 |
| deepmerge 4.3.1 | 200, {"ok":true,"prefs":{"theme":"dark"}} | 0 of 20 | 0 of 20 |
Naive merge with Object.prototype frozen | 200, {"ok":true,"prefs":{"theme":"dark"}} | 0 of 20 | 0 of 20 |
Shallow spread, {...prefs, ...body} | 200, body includes "__proto__":{...} with the canary | 20 of 20 | 0 of 20 |
Naive merge into an Object.create(null) target | 200, body includes "__proto__":{...} with the canary | 20 of 20 | 0 of 20 |
Naive merge under --disable-proto=delete | 200, body includes "__proto__":{...} with the canary | 20 of 20 | 0 of 20 |
Naive merge under --disable-proto=throw | 500, an error message naming __proto__ | 20 of 20 | 0 of 20 |
| Schema check rejecting unknown keys | 400, unknown key "__proto__" | 20 of 20 | 0 of 20 |
Two results in that table decide how to read a scanner's first response.
An echoed __proto__ was a sign the prototype was not touched. When a merge or copy assigns through the __proto__ accessor, the attacker's keys go onto the prototype and the target gets nothing, so JSON.stringify of the target, which only serialises own properties, shows nothing. When the key is copied as an own data property, as spread does, as a null-prototype target does because it has no accessor to assign through, and as --disable-proto=delete does because it removes the accessor, JSON.stringify faithfully writes "__proto__" back out. In our lab, every echo came from an implementation that did not pollute, and no implementation that polluted echoed. That is a property of our toy's serialisation, not a law. A server could echo the request body verbatim and be vulnerable too. But it means an echo is not evidence of pollution in either direction.
The vulnerable response and the safe response were the same JSON. Parsed, the naive merge's response and deepmerge's response were identical in all 20 trials each: {"ok":true,"prefs":{"theme":"dark"}}. The set-by-path cells did the same, {"ok":true,"prefs":{}} from the polluting helper and from the safe one. The only byte-level difference in our runs was whitespace, and that came from one of our gadgets, not from the merge. A scanner comparing the first response with a baseline would see the same thing in both cases.
The 500 and the 400 are worth reading as well. Under --disable-proto=throw, any code that touches the __proto__ accessor throws. Our handler turned that into a 500 whose message, Accessing Object.prototype.__proto__ has been disallowed with --disable-proto=throw, says exactly which defence fired. A 500 in response to a __proto__ payload is easy to read as "the payload broke something, so it reached something". Here it was the defence. And a 400 that names the key tells you the key was rejected. It does not tell you whether constructor.prototype would be.
Since the polluted object never comes back, confirmation means looking for its effects somewhere else. Our toy has four places where an inherited property changes behaviour, and the clean client checked all four before and after each probe.
| Gadget in the toy | What reads the property | What the clean client sees when polluted |
|---|---|---|
| Reflection | /api/config copies a defaults object with for...in, which includes inherited enumerable properties | The probe's random property name and canary value in an unrelated response |
| JSON spaces | Every response is serialised with JSON.stringify(obj, null, settings.jsonSpaces) and settings is {} | Every response comes back indented |
| Status code | A malformed-JSON error takes its status from the error object's statusCode, then status, then defaults to 400 | A deliberately malformed request gets 510 instead of 400 |
| Authorisation default | /api/admin allows a user if user.isAdmin is truthy, and no user object sets it | A non-admin user gets 200 instead of 403 |
Before every probe, the clean client saw 403, 400, no canary and no indentation in all 1,320 trials. In every one of the 66 cells, the four gadgets agreed with each other: either all four changed for the clean client in all 20 trials, or none did in any. Every trial's serials ran in order inside one boot identifier: bob's four requests, alice's probe, then bob's four again. So each clean-client observation came from the same process, after the probe.
Three things about these evidence classes are worth carrying to a real application.
Reflection depends on how the code enumerates. /api/config reflected the canary whenever the process was polluted. /api/me, which serialised a plain object with JSON.stringify, did not reflect it once, in any of the 1,320 trials, because JSON.stringify, Object.keys and spread only see own properties. An endpoint that does not reflect the canary has not shown that the process is clean. It may simply not enumerate inherited properties.
Behaviour-change gadgets are what make black-box detection possible. Gareth Heyes's PortSwigger Research article "Server-side prototype pollution: Black-box detection without the DoS" set out this approach, which we paraphrase here. Instead of polluting something that crashes the server, you pollute a property that a common framework or library reads, where the only effect is a visible but harmless change. His examples included an Express setting that controls JSON response indentation, a status-code property that an error-handling path reads when it rejects a malformed body, and a charset override that changes how later request bodies are decoded. Our JSON-spaces and status-code gadgets are toy versions written into our own code. We did not test Express, and our results say nothing about which properties any real framework reads. With our toy's JSON-spaces gadget, the probing client's own response came back indented in every cell that polluted. That is the one case where the first response does carry the signal, and it only exists because something in the application reads the polluted property while building that response.
A second client on a new connection is what makes it a finding. "The probe changed a later response" can have boring explanations: per-session state, per-connection caching, or the prober's own preferences being reflected back. A client with a different identity, on a new connection, sending only requests that would have been harmless before, rules those out. In our lab, that client was bob, and he never sent anything containing __proto__ or constructor.
We ran 20 more trials against the naive merge, in parallel, each on its own server process. Alice polluted Object.prototype once with a random canary and isAdmin. Then:
| After | Bob saw the canary and got 200 on /api/admin |
|---|---|
| Immediately | 20 of 20 |
| 300 unrelated requests from a third user | 20 of 20 |
| A further 30 seconds idle (at least 57 seconds after the probe in every trial) | 20 of 20 |
| A process restart | 0 of 20 |
The boot identifier stayed the same until the restart and changed after it in all 20 trials. In this toy, nothing undoes pollution except a new process. By mechanism, that holds in any Node.js process: there is no request boundary around Object.prototype. Two practical consequences follow.
Intermittent results may be a process count, not flakiness. A service running several worker processes, under a cluster module, a process manager or several containers behind a load balancer, has one Object.prototype per process. A probe pollutes the process that handled it. A clean client's later requests land on whichever process the balancer chooses, so the effect can appear on some requests and not others. We ran one process per trial and did not measure this. It is a consequence of the mechanism, and a reason to confirm with repeated requests rather than one.
The test changes production for everyone. A probe that pollutes isAdmin, statusCode or anything an authorisation check, error handler or serialiser reads changes that behaviour for every user of that process until it restarts. Our isAdmin gadget is the extreme case: one request from one user made every user of the process an administrator (we measured it for the second lab user). General practice for testing this class:
pp plus hex, with a random value. If it shows up in another response, you have reflection with no behavioural side effect.shell, env or anything that reaches a template engine or a child process on a shared system.A scanner that sends prototype pollution payloads is making the same change, and needs the same scoping as a person doing it.
Pollution on its own changes defaults. Impact depends on what in the process reads a property it never set. These are general gadget classes, described from public research and our toy, not measured against any framework.
if (user.isAdmin), if (options.allowUnsafe), if (!config.requireAuth). Any check that treats "not set" as "false" turns into "true" for everyone. That is our /api/admin gadget. It is the same authorisation question the BOLA post covers, reached from a different direction.child_process, where an inherited shell or env option changed how a command ran. We paraphrase. It is a widely cited route from pollution to command execution.We tested that last class on Node 22.22.2, in isolated child processes, with Object.prototype.shell = true and with Object.prototype.env set to an environment containing NODE_OPTIONS=--require <a marker script>:
| Call | Inherited shell used | Inherited env / NODE_OPTIONS used |
|---|---|---|
spawnSync(cmd, args), options omitted | No: $((6*7)) printed literally | No: marker not written |
spawnSync(cmd, args, {cwd: "/tmp"}) | No | No |
Positive control: {shell: true} passed explicitly | Yes: printed 42 | n/a |
Positive control: env with NODE_OPTIONS passed explicitly | n/a | Yes: marker written |
Application wrapper that copies options with for...in before calling spawnSync | Yes: printed 42 | not tested |
In our measurements, Node 22.22.2's spawnSync did not act on an inherited shell or env, while the positive controls showed the test could detect both. We did not trace which release changed this, and we did not test exec, execFile, fork or the asynchronous spawn. The last row is the one to remember. The caller's options object did inherit shell: true. Node did not read it, but an application helper that "merges defaults" with for...in turned the inherited property into an own one, and the shell ran. The gadget moved out of the runtime and into application code. So "our Node version is patched" does not close a child-process gadget. The question is what the application does with option objects before they reach Node. The OS command injection post covers how to confirm command execution once you suspect it.
{"__proto__": {...}}, as the same object nested one level down, and as {"constructor": {"prototype": {...}}}. For path-based endpoints, send __proto__.name and constructor.prototype.name.What to record: the sink and the payload shape that worked, the clean identity's before and after responses with timestamps, which gadget changed, whether more than one process was involved, and when the process was restarted.
Each row is one implementation in our toy, with 20 trials per payload shape. "Echoed" means the first response contained the payload's __proto__ key. A status code means every trial got that status and nothing was polluted.
| Implementation | __proto__ | Nested __proto__ | constructor.prototype | Unicode-escaped __proto__ |
|---|---|---|---|---|
| Naive merge, no fix (for reference) | polluted, 20 of 20 | polluted, 20 of 20 | not polluted (see note) | polluted, 20 of 20 |
Merge skips __proto__ | not polluted | not polluted | not polluted (see note) | not polluted |
Merge skips __proto__, constructor, prototype | not polluted | not polluted | not polluted | not polluted |
| Regex on the raw request body rejecting any of the three words | 400 | 400 | 400 | polluted, 20 of 20 |
| deepmerge 4.3.1 | not polluted | not polluted | not polluted | not polluted |
Object.create(null) target, nested objects created as {} | not polluted, echoed | polluted, 20 of 20 | not polluted | not polluted, echoed |
structuredClone of the body, then the naive merge | polluted, 20 of 20 | polluted, 20 of 20 | not polluted (see note) | polluted, 20 of 20 |
JSON.parse(JSON.stringify(body)), then the naive merge | polluted, 20 of 20 | polluted, 20 of 20 | not polluted (see note) | polluted, 20 of 20 |
--disable-proto=delete | not polluted, echoed | not polluted, echoed | not polluted (see note) | not polluted, echoed |
--disable-proto=throw | 500 | 500 | not polluted (see note) | 500 |
Object.freeze(Object.prototype) | not polluted | not polluted | not polluted | not polluted |
| Schema validation rejecting unknown keys | 400 | 400 | 400 | 400 |
Note on the rows marked "see note": this is not because of the fix. Our merge never walks into a function, so constructor was replaced rather than followed, as described earlier. A merge that does walk into functions would need the fix to hold here as well.
And for the set-by-path helper:
| Implementation | __proto__.x | constructor.prototype.x |
|---|---|---|
| None | polluted, 20 of 20 | polluted, 20 of 20 |
Reject any segment equal to __proto__ | 400 | polluted, 20 of 20 |
Reject __proto__, constructor and prototype | 400 | 400 |
Only walk into own properties (Object.hasOwn), create otherwise | not polluted | not polluted |
--disable-proto=delete | not polluted | polluted, 20 of 20 |
--disable-proto=throw | 500 | polluted, 20 of 20 |
Object.freeze(Object.prototype) | not polluted | not polluted |
What each fix does, and what it costs:
Key denylists work only if they are complete and applied after parsing. Blocking __proto__ alone left the constructor.prototype path open on the set-by-path helper, which is the hypothetical's "blocked" low. Blocking all three keys held everywhere we tried it. A regex over the raw request text is a different thing. JSON allows any character to be written as a \u escape, so "\u005f\u005fproto\u005f\u005f" contains none of the blocked words until JSON.parse decodes it to __proto__. That payload went straight past the regex and polluted the process in 20 of 20 trials. The same applies to a WAF rule matching body text. Check keys on the parsed object, at every level.
deepmerge 4.3.1 held against every shape we sent. Its source skips a key when the key exists on the target but is not the target's own enumerable property, which is exactly the inherited __proto__ and constructor case. That result is for this version, and it does not cover other merge libraries, which we did not test.
Object.create(null) protects only the objects that are created that way. A null-prototype target has no __proto__ accessor, so the top-level payload became an ordinary own key and was echoed back. But the merge created nested objects as {}, which have the normal prototype, and the nested payload polluted the process in 20 of 20 trials. A Map gives the same protection more reliably for dictionary-shaped data, since its entries are not properties at all, but it changes every read and write site and does not serialise with JSON.stringify without conversion.
Cloning is not sanitising. structuredClone and a JSON round trip both preserved the own __proto__ key. Our micro-test showed structuredClone keeping it, and both variants polluted exactly as the naive merge did. A copy of a dangerous object is a dangerous object.
--disable-proto removes one route. With delete, the accessor is gone, so __proto__ became an ordinary key everywhere, and ({}).__proto__ returned undefined. Object.getPrototypeOf still worked, and so did the __proto__ key in object-literal syntax, which is syntax and not the accessor. With throw, any code that touched the accessor got an exception, including legitimate code, which surfaced as a 500. Neither flag did anything about constructor.prototype, which polluted the set-by-path helper in 20 of 20 trials under both. The flag also applies to every dependency in the process, so any library that reads or writes obj.__proto__ breaks with it. Run your test suite under it before shipping it.
Object.freeze(Object.prototype) held against everything, and breaks a common pattern. Once Object.prototype is frozen, its properties are non-writable, and JavaScript then refuses to create an own property of the same name on an ordinary object by assignment. This is the so-called override mistake. In our micro-tests, o.toString = ... on a plain object was silently ignored in sloppy mode and threw a TypeError in strict mode, and in strict mode, assigning hasOwnProperty on a constructor's prototype threw too. Object.defineProperty still worked. Freezing has to happen before the process handles any untrusted input. Doing it before dependencies load also exposes any dependency that assigns over a built-in method name, and those need testing. Our toy server ran in sloppy mode, so pollution attempts against the frozen prototype failed silently with a 200. In strict mode, the same writes threw.
Walking only own properties held, and reshaped the user's own object. The Object.hasOwn variant treated __proto__ as missing, so it assigned a new {} to it. That assignment went through the accessor and replaced the target object's own prototype, so the write landed on a fresh object instead of Object.prototype. The process was not polluted. In our micro-test, the user's object then inherited the attacker's property, while JSON.stringify of it still showed {}. Pair this check with a key denylist, or create properties with Object.defineProperty.
Schema validation with unknown keys rejected is the narrowest fix. It answered 400 to every shape we sent, because none of them was in the allowed shape. It costs a schema for every endpoint that accepts nested input, which is also what stops mass assignment. It is the only fix in our tables that rejects the input before any merge code runs.
Code that reads options should not trust inheritance. Independent of the merge, read configuration with Object.hasOwn(options, "x") or from a null-prototype object, and give every flag an own value when the object is created (const settings = { jsonSpaces: 0 }, isAdmin: false on every user record). A fallback such as settings.jsonSpaces ?? 0 or a check such as user.isAdmin === true does not help, because an inherited value is neither nullish nor of the wrong type. Reading only own properties removes the gadget even if pollution happens somewhere else.
Code review can find both halves. On the sink side, look for recursive merge, extend, clone-into and defaults helpers, especially home-grown ones; set-by-path and "patch" helpers; any target[key] = ... or target[key][subkey] where key comes from a request; and query or form parsers configured to build nested objects. On the gadget side, look for for...in copies of option objects, authorisation checks that read a flag that is not always set, and option bags passed to template engines and child_process. A finding is the pair: a sink that reaches Object.prototype, and a gadget that reads what it wrote. Static analysis for this class is a taint question, with a request body as source and a computed-key assignment as sink. Whether a given tool models it is something to check, and the SAST false-positives post covers how taint results go wrong.
| Question | If the answer is no or unknown |
|---|---|
Is the finding based on an echo of __proto__ in the first response? | That echo came only from implementations that did not pollute in our lab |
| Is the finding based on a 200, 400 or 500 alone? | Status codes from the probe do not show what happened to the prototype |
| Did a second identity, on a new connection, see a change it did not cause? | Pollution is not confirmed |
| Was the change a reflected canary or a gadget, and from which endpoint? | Severity and mechanism are not established |
Were constructor.prototype, nested and unicode-escaped payloads tried? | A blocked __proto__ says nothing about the other routes |
| Does the service run more than one process? | Expect partial results, and do not read them as noise |
| Was the probe property one that nothing reads, and was a restart planned? | The test itself may have changed production behaviour |
| Is there a gadget that reaches authorisation, templates or child processes? | Impact is not established |
Does the fix check keys after parsing, at every level, including constructor and prototype? | Raw-text filters and __proto__-only lists were bypassed in our lab |
| Was the fix retested with all payload shapes and a second identity, after a restart? | A retest that resends one payload can pass a partial fix, as the scan-passed post describes |
Does an echoed __proto__ key in the response mean the server is vulnerable to prototype pollution? No. In our lab, the __proto__ key came back only from implementations that stored it as an ordinary own property: shallow spread, a null-prototype target, and a process run with --disable-proto=delete. None of them polluted the prototype. The vulnerable merge returned no trace of the payload.
Is a 200 response to a __proto__ payload evidence of prototype pollution? No. The vulnerable and safe merges returned the same status and the same JSON. Confirmation needs a different client, on a new connection, to see a change: a reflected property, or a gadget behaving differently.
How long does server-side prototype pollution last? Until the process exits. In our lab it survived 300 unrelated requests and at least 57 seconds in 20 of 20 trials, and a restart cleared it in 20 of 20.
Does blocking __proto__ fix prototype pollution? Not on its own. constructor.prototype reached Object.prototype through a set-by-path helper that blocked __proto__, in 20 of 20 trials. A raw-text filter was bypassed by a unicode-escaped key.
Does node --disable-proto fix prototype pollution? It removes the __proto__ accessor route only. constructor.prototype still polluted the process under both delete and throw in our lab.
Does Object.freeze(Object.prototype) break anything? Yes. Assigning a property such as toString on an ordinary object is silently ignored in sloppy mode and throws in strict mode, so code and dependencies that do this need changing or testing.
How do I test for server-side prototype pollution without breaking production? Use a random property name that nothing reads, check for it from a second identity, use only harmless behaviour gadgets, and plan a process restart before you start. Prefer a test instance.
We measured our own toy server on Node.js 22.22.2, with one process per trial. We did not test Express, body-parser, qs or any query-string parser, lodash or any merge library except deepmerge 4.3.1, any template engine, Bun or Deno, browsers or client-side pollution, clustered or multi-process deployments, asynchronous spawn, exec, execFile or fork, or any scanner's prototype pollution check. The gadgets are code we wrote to have those behaviours. They model patterns that real frameworks and libraries have been reported to have, and they are not a measurement of any of them. None of the numbers measures AppSecD or any other product.
/api/prefs. An echoed __proto__ with the canary is what our spread, null-prototype and --disable-proto=delete variants produced, and none of them polluted. Before rating it, re-run a clean identity's baseline. If nothing changes for that identity across repeated requests and the nested and constructor shapes, record it as "input echoed, pollution not observed"./api/settings. A 400 for __proto__.x is what our __proto__-only denylist returned. The same helper accepted constructor.prototype.x and polluted the process in 20 of 20 trials. This one is reopened and tested with the other path, on a test instance./api/profile. A 200 with no trace of the payload is exactly what the vulnerable naive merge returned. The accurate record is "not tested", because the scan never checked for an effect from a second client. Test it with the procedure above.AppSecD's dynamic and API testing runs Nuclei, Dalfox, SQLMap, Commix, Katana, Arjun, FFuf and Interactsh for out-of-band detection, plus 150+ native checks and API discovery across 50+ web frameworks. Its policy-driven gating blocks a pull request or commit when it introduces a violation. Findings are deduplicated across scans, move through new, reopened and fixed states, and can require maker-checker approval before they are closed.
That is the whole claim. data/products.ts is the single source of truth for what these products do, and it does not mention prototype pollution, JavaScript object prototypes or Node.js-specific dynamic checks. So this post makes no claim that AppSecD detects server-side prototype pollution. Nor does it claim anything about:
constructor.prototype or escaped keysThe mechanisms, measurements, confirmation procedure, fixes and checklist above are general practice that applies to any scanner's output, ours included. The scenario in this post is hypothetical and does not describe any deployment, user or finding.