CVE-2026-128081: AutoMapper Denial of Service Vulnerability
HIGHCVE-2026-128081 is a HIGH (CVSS 7.5) denial of service vulnerability (CWE-674: Uncontrolled Recursion) affecting AutoMapper libraries in the NuGet ecosystem. The issue involves denial of service via uncontrolled recursion that bypasses maxdepth. Remediation is available by upgrading affected packages to version 16.3.0, 15.1.4.
CVE-2026-128081 at a Glance
Security Impact
CVSS: 7.5
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H).
How to Fix CVE-2026-128081
To remediate this vulnerability, upgrade all affected AutoMapper dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade AutoMapper to 16.3.0
Upgrade AutoMapper to 15.1.4
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for AutoMapper
How to Check if You Are Affected
To determine whether your application is affected by CVE-2026-128081, inspect your project dependencies for AutoMapper:
inspect dependencies for AutoMapper
Analyze the terminal output to locate any version of AutoMapper in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 16.3.0), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-674: Uncontrolled Recursion, where the product does not properly control the amount of recursion that takes place, consuming excessive resources, such as allocated memory or the program stack. In AutoMapper, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2026-128081 Affected AutoMapper Versions
2 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
AutoMapper
|
NuGet |
≥ 16.0.0
< 16.3.0
|
16.3.0
|
|
AutoMapper
|
NuGet |
< 15.1.4
|
15.1.4
|
References
Frequently Asked Questions
What is CVE-2026-128081?
Which AutoMapper versions are affected?
What version fixes CVE-2026-128081?
Is AutoMapper affected?
What is the CVSS score of CVE-2026-128081?
What CWE is associated with CVE-2026-128081?
How can I check NuGet dependencies for CVE-2026-128081?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-gpwp-5797-mjff",
"modified" : "2026-11-13T18:47:17Z",
"published" : "2026-11-13T18:47:17Z",
"aliases" : [ "CVE-2026-128081" ],
"summary" : "AutoMapper: Denial of Service via uncontrolled recursion that bypasses MaxDepth",
"details" : "### Summary\nThe 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.\n\n### Affected paths\n- **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.\n- **Runtime-typed members:** members typed as `object` or an interface aren't seen by self-reference detection, so the default limit isn't applied.\n- **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.\n- **Recursive type converters:** `ConvertUsing` that calls `context.Mapper.Map` ignores `MaxDepth`.\n\n### Impact\nAn 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.\n\n### Fix\n- Derived type maps inherit `MaxDepth`, and the default limit is applied to them.\n- Every runtime map call checks for sufficient stack, and fails with a catchable `InsufficientExecutionStackException` instead of overflowing.\n\n### Workarounds\nSet `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.\n\n### Related\n- CVE-2026-32933 (GHSA-rvv3-g6hj-g44x)\n- GHSA-6vhm-j9h7-f9gh: `MaxDepth` not enforced through constructor parameters and positional records, fixed in the same releases.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "NuGet",
"name" : "AutoMapper"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "16.0.0"
}, {
"fixed" : "16.3.0"
} ]
} ]
}, {
"package" : {
"ecosystem" : "NuGet",
"name" : "AutoMapper"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "15.1.4"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/LuckyPennySoftware/AutoMapper/security/advisories/GHSA-gpwp-5797-mjff"
}, {
"type" : "WEB",
"url" : "https://github.com/LuckyPennySoftware/AutoMapper/commit/aee81b50574c3c7005283cca2b2396e295bd8ed9"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/LuckyPennySoftware/AutoMapper"
}, {
"type" : "WEB",
"url" : "https://github.com/LuckyPennySoftware/AutoMapper/releases/tag/v15.1.4"
}, {
"type" : "WEB",
"url" : "https://github.com/LuckyPennySoftware/AutoMapper/releases/tag/v16.3.0"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-674" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2026-11-13T18:47:17Z",
"nvd_published_at" : null
}
}