Elevated
AutoMapper recursion bypasses MaxDepth, letting deep input terminate the process
CVE-2026-128081
Deeply nested data can crash programs that use this mapping library.
- CVE
- CVE-2026-128081 (opens in a new tab)
- Score
- CVSS 7.5
- First seen
7.5
Products
Mitigation
Update to 16.3.0 or 15.1.4 or later. Until then, set MaxDepth explicitly on affected maps, and limit input depth before mapping for dictionary, dynamic and recursive converter sources.
Update to at least the version for your product:
- AutoMapper >= 16.0.0, < 16.3.0 16.3.0 or later
- AutoMapper < 15.1.4 15.1.4 or later
Summary
The AutoMapper .NET library recurses without an effective depth limit on certain mapping paths. Attacker-supplied deeply nested data can terminate the process. Versions 16.0.0 up to 16.3.0 and versions before 15.1.4 are affected.
Affected when
- Polymorphic maps using Include or IncludeBase
- Runtime-typed object or interface members
- Nested Dictionary<string, object> or ExpandoObject sources
- Recursive ConvertUsing type converters
1 other Incident of this product in the last 30 days
Incidents by product: AutoMapper
Other recent Incidents of AutoMapper
Read the advisory · github.com (opens in a new tab)
- Advisory: github.com (opens in a new tab)
- CVE record: cve.org (opens in a new tab)