AutoMapper recursion depth limit bypass crashes process
CVE-2026-128082
A .NET data conversion library, so deeply nested data can freeze programs.
- CVE
- CVE-2026-128082 (opens in a new tab)
- Score
- CVSS 7.5
- First seen
Mitigation
Update to 16.3.0 or 15.1.4 or later. If the destination type has a parameterless constructor and settable properties, cfg.DisableConstructorMapping() can be used. Positional records have no workaround other than limiting input depth or upgrading.
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
Can't update yet?
Add this line to the config file:
cfg.DisableConstructorMapping()
A wrong setting can stop the service or lock you out. Check the source links below first.
Summary
AutoMapper does not enforce its depth limit for recursion through constructor parameters, so attacker-influenced deeply nested input can terminate the process. Versions >= 16.0.0, < 16.3.0 and < 15.1.4 are affected.
Exploit code is public
Affected when
- Mapping to a destination type built through constructor parameters (such as positional records) with a recursive member
- Recursive ConstructUsing mapping that calls context.Mapper
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)