Track vulnerabilities like this one.
Sign up free to get alerted when software you use is affected.
7.5
CVE-2026-128082: AutoMapper can cause application crash via deep recursion
CVE-2026-128082 · published 13 days ago
Summary
The AutoMapper library used in .NET applications can be tricked into creating an endless chain of objects when it maps data that references itself. This can bypass the built‑in safety limit and cause the program to run out of stack space, crashing with a StackOverflow error. Update AutoMapper to version 15.1.4 or later (or 16.3.0 or later) to resolve the issue.
What to do
- Update jimmy bogard automapper to version 16.3.0.
- Update jimmy bogard automapper to version 15.1.4.
- Update automapper to version 16.3.0.
- Update automapper to version 15.1.4.
Affected software
| Ecosystem | Vendor | Product | Affected versions |
|---|---|---|---|
| nuget | jimmy bogard | automapper |
>= 16.0.0, < 16.3.0 < 15.1.4 Fix: upgrade to 16.3.0
|
| – | luckypennysoftware | automapper | >= 16.0.0, < 16.3.0 |
| nuget | – | automapper |
>= 16.0.0, < 16.3.0 < 15.1.4 Fix: upgrade to 16.3.0
|
Original advisory text
AutoMapper: Uncontrolled Recursion with Constructor Parameters
AutoMapper is a convention-based object-object mapper in .NET. Prior to 15.1.4 and from 16.0.0 until 16.3.0, AutoMapper increments type depth only after creating the destination, so recursive mapping performed through constructor parameters occurs before MaxDepth is counted. Destinations built through positional records or other constructors, and recursive ConstructUsing mappings that call context.Mapper, can therefore bypass explicit MaxDepth values and the default limit of 64. Deep attacker-influenced input can throw an uncatchable StackOverflowException and terminate the process. This issue is fixed in versions 15.1.4 and 16.3.0.
References
- https://github.com/LuckyPennySoftware/AutoMapper/commit/4d51a4b8125b4d2302f2f1f4... Patch
- https://github.com/LuckyPennySoftware/AutoMapper/commit/639c2748cb9d3d07df8b8687... Patch
- https://github.com/LuckyPennySoftware/AutoMapper/releases/tag/v15.1.4 URL
- https://github.com/LuckyPennySoftware/AutoMapper/security/advisories/GHSA-6vhm-j... Vendor Advisory
- https://github.com/LuckyPennySoftware/AutoMapper/releases/tag/v16.3.0 URL
- https://github.com/advisories/GHSA-6vhm-j9h7-f9gh
- https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/128xxx/CVE-2026-1280... Vendor Advisory
- https://nvd.nist.gov/vuln/detail/CVE-2026-128082 Vendor Advisory
Internet-facing
14 days
Internal
60 days
- Not known to be exploited
- Can be exploited automatically
- Gives an attacker partial control
Type
CWE-674Uncontrolled Recursion
Timeline
Published13 Nov 2026
Updated26 Nov 2026
First seen13 Nov 2026
Sources
CVE-2026-128082 · NVD
CVE-2026-128082 · MITRE
GHSA-6vhm-j9h7-f9gh · GHSA
CVE-2026-128082 · OSV
Track software like this
Free during beta