CVE-2026-128081: AutoMapper: Denial of Service via uncontrolled recursion that bypasses MaxDepth
Published 2026-11-13 · Updated 2026-11-13 · Also known as GHSA-gpwp-5797-mjff
Summary
AutoMapper contains a vulnerability where specific mapping paths bypass depth limitations, leading to uncontrolled recursion. Developers using affected versions of AutoMapper must upgrade to the specified fixed versions to prevent application crashes.
Who is affected
The vulnerability affects applications that map attacker-influenced, deeply nested data through polymorphic maps, runtime-typed members, dictionary or dynamic sources, and recursive type converters. Exploitation results in an uncatchable StackOverflowException that terminates the process, causing a denial of service.
Exploitability
The vulnerability carries a CVSS score of 7.5 (High) and is remotely exploitable without authentication or user interaction. With an EPSS score of 0.005, the threat is currently moderate, and it is not documented in CISA's Known Exploited Vulnerabilities catalog.
Remediation
- Upgrade NuGet AutoMapper to version 15.1.4 or 16.3.0.
- For paths where upgrading is not immediate, explicitly set MaxDepth on derived maps and maps using interface or object members.
How to check your project
- Inspect the project's .csproj or packages.config file to determine if AutoMapper is being used.
- Verify if the resolved version in the dependency tree falls within the 0 to 15.1.3 range or the 16.0.0 to 16.2.x range.
Automated analysis of the published advisory data, generated 2026-11-18. Not human-reviewed; verify against the official advisory. How this works.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | Upgrade |
|---|---|---|---|---|
| NuGet | AutoMapper |
>= 16.0.0, < 16.3.0 | 16.3.0 | dotnet add package AutoMapper --version 16.3.0 |
| NuGet | AutoMapper |
>= 0, < 15.1.4 | 15.1.4 | dotnet add package AutoMapper --version 15.1.4 |
CVSS 3.1 vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
| Attack vector | Network |
|---|---|
| Attack complexity | Low |
| Privileges required | None |
| User interaction | None |
| Scope | Unchanged |
| Confidentiality | None |
| Integrity | None |
| Availability | High |
FAQ
What is the primary technical cause of this vulnerability?
The vulnerability is caused by several mapping paths within AutoMapper that fail to respect or enforce MaxDepth limits, leading to unbounded recursion when processing deeply nested data.
Can I simply use a try-catch block to handle the crash?
No. The recursion results in a StackOverflowException, which cannot be caught in .NET, causing the entire process to terminate.
Are there any configuration workarounds for dictionary or dynamic sources?
No, there is no configuration workaround for these specific sources; developers must implement input depth limiting before performing the mapping.
Original advisory description
References
- WEB https://github.com/LuckyPennySoftware/AutoMapper/security/advisories/GHSA-gpwp-5797-mjff
- WEB https://github.com/LuckyPennySoftware/AutoMapper/commit/aee81b50574c3c7005283cca2b2396e295bd8ed9
- PACKAGE https://github.com/LuckyPennySoftware/AutoMapper
- WEB https://github.com/LuckyPennySoftware/AutoMapper/releases/tag/v15.1.4
- WEB https://github.com/LuckyPennySoftware/AutoMapper/releases/tag/v16.3.0
Source records: GHSA-gpwp-5797-mjff (OSV.dev) · EPSS by FIRST, 2026-11-26.