AutoMapper: Denial of Service via uncontrolled recursion that bypasses MaxDepth
CVE-2026-128081 · GHSA-gpwp-5797-mjff · published 13 Nov 2026
How serious is it
- Severity: high, CVSS score 7.5 out of 10.
- Exploit prediction (EPSS): 0.5% chance of exploitation in the next 30 days, higher than 46% of all vulnerabilities.
- Not on the CISA list of exploited vulnerabilities.
- No public exploit in Exploit-DB.
Is your app affected by CVE-2026-128081?
Paste this prompt into Claude Code, Cursor or any AI coding tool: it runs a free Shippable scan of your project and fixes what it finds. Built with Lovable, Bolt or v0? Scan your live app. Or upload your package file.
Who is affected
AutoMapper(NuGet) >= 16.0.0, < 16.3.0AutoMapper(NuGet) < 15.1.4
How to check
- Look for
AutoMapperin your lockfile and compare its version with the range above. - Or paste your lockfile into the checker: it lists every package with a known vulnerability, this one included.
How to fix
Copies a prompt for Claude Code, Cursor or Codex: it checks your lockfiles for this and upgrades it.
- On >= 16.0.0, < 16.3.0: Upgrade
AutoMapperto 16.3.0 or later, commit the lockfile and redeploy. - On < 15.1.4: Upgrade
AutoMapperto 15.1.4 or later, commit the lockfile and redeploy. - If a vulnerable version was live, check your logs and rotate the secrets that server could read.
The advisory
### Summary
The default and explicit `MaxDepth` limits added for CVE-2026-32933 don't apply to several mapping paths. Mapping a deeply nested source through any of them recurses without bound and throws a `StackOverflowException`, which can't be caught and terminates the process.
### Affected paths
- **Polymorphic maps:** derived type maps (`Include` / `IncludeBase`) didn't inherit the base map's `MaxDepth`, and the default limit for self-referential maps was only applied to the base map. A chain of derived objects was mapped without a limit, even with `MaxDepth` set on the base map.
- **Runtime-typed members:** members typed as `object` or an interface aren't seen by self-reference detection, so the default limit isn't applied.
- **Dictionary and dynamic sources:** mapping a nested `Dictionary<string, object>` or `ExpandoObject` (for example, deserialized JSON) onto typed destinations recurses with no depth tracking. `MaxDepth` has no effect.
- **Recursive type converters:** `ConvertUsing` that calls `context.Mapper.Map` ignores `MaxDepth`.
### Impact
An application that maps attacker-influenced, deeply nested data through one of these paths can be crashed. On a 1 MB stack (the Windows default), a few thousand levels of nesting are enough.
### Fix
- Derived type maps inherit `MaxDepth`, and the default limit is applied to them.
- Every runtime map call checks for sufficient stack, and fails with a catchable `InsufficientExecutionStackException` instead of overflowing.
### Workarounds
Set `MaxDepth` explicitly on derived maps and on maps reached through `object` or interface members. There is no configuration workaround for dictionary or dynamic sources, or for recursive type converters, other than limiting input depth before mapping.
### Related
- CVE-2026-32933 (GHSA-rvv3-g6hj-g44x)
- GHSA-6vhm-j9h7-f9gh: `MaxDepth` not enforced through constructor parameters and positional records, fixed in the same releases.
Check your whole app
Dependencies are only half of it. Free and read-only: before you push, run npx shippable-dev scan localhost:3000 in your project folder, no account needed. For your live app, you prove it's yours with a one-line tag first.
References
- github.com/LuckyPennySoftware/AutoMapper/security/advisories/GHSA-gpwp-5797-mjff
- github.com/LuckyPennySoftware/AutoMapper/commit/aee81b50574c3c7005283cca2b2396e295bd8ed9
- github.com/LuckyPennySoftware/AutoMapper/releases/tag/v15.1.4
- github.com/LuckyPennySoftware/AutoMapper/releases/tag/v16.3.0
- github.com/advisories/GHSA-gpwp-5797-mjff
- github.com/LuckyPennySoftware/AutoMapper
Merged from GitHub Advisory Database, OSV, FIRST EPSS. Last updated 15 Nov 2026. All vulnerabilities · RSS · JSON