CVE-2026-128081 — Vulnerability in AutoMapper — CVE Details
AutoMapper: Denial of Service via uncontrolled recursion that bypasses MaxDepth
What Should I Do?
Address in Next Maintenance Window
Low exploitation probability (0.63%). Schedule for your next planned update.
Does your project use an affected AutoMapper version?
Paste your packages.lock.json to check it for CVE-2026-128081 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.
Summary
Summary
The 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.
Affected paths
- Polymorphic maps: derived type maps (
Include/IncludeBase) didn't inherit the base map'sMaxDepth, 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 withMaxDepthset on the base map. - Runtime-typed members: members typed as
objector an interface aren't seen by self-reference detection, so the default limit isn't applied. - Dictionary and dynamic sources: mapping a nested
Dictionary<string, object>orExpandoObject(for example, deserialized JSON) onto typed destinations recurses with no depth tracking.MaxDepthhas no effect. - Recursive type converters:
ConvertUsingthat callscontext.Mapper.MapignoresMaxDepth.
Impact
An 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.
Fix
- Derived type maps inherit
MaxDepth, and the default limit is applied to them. - Every runtime map call checks for sufficient stack, and fails with a catchable
InsufficientExecutionStackExceptioninstead of overflowing.
Workarounds
Set 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.
Related
- CVE-2026-32933 (GHSA-rvv3-g6hj-g44x)
- GHSA-6vhm-j9h7-f9gh:
MaxDepthnot enforced through constructor parameters and positional records, fixed in the same releases.
Advisory Timeline
- First published November 13, 2026 (13 days ago).
- Last revised November 13, 2026 — 0 days after initial publication.
Remediation
Upgrade to the fixed version using your package manager.
dotnet add package AutoMapper --version 16.3.0
dotnet add package AutoMapper --version 15.1.4
After upgrading, scan your dependencies again to confirm the vulnerability is resolved.
Affected Packages (2)
Affects 1 ecosystem: NuGet (1).
| Package | Fixed In |
|---|---|
| AutoMapper NuGet · Affected: 16.0.0, 16.1.0, 16.1.1, 16.2.0 | 16.3.0 |
| AutoMapper NuGet · Affected: 1.1.0.118, 1.1.1, 1.1.2, 10.0.0 (+226 more) | 15.1.4 |
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
- CWE-674
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 7.5 score means for each attack dimension.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
References
- https://github.com/LuckyPennySoftware/AutoMapper/security/advisories/GHSA-gpwp-5797-mjffWEB
- https://github.com/LuckyPennySoftware/AutoMapper/commit/aee81b50574c3c7005283cca2b2396e295bd8ed9WEB
- https://github.com/LuckyPennySoftware/AutoMapperPACKAGE
- https://github.com/LuckyPennySoftware/AutoMapper/releases/tag/v15.1.4WEB
- https://github.com/LuckyPennySoftware/AutoMapper/releases/tag/v16.3.0WEB
Frequently Asked Questions
- What is CVE-2026-128081?
- AutoMapper: Denial of Service via uncontrolled recursion that bypasses MaxDepth. This vulnerability has been assigned a severity rating of HIGH (CVSS score: 7.5/10).
- How do I check if my project is affected by CVE-2026-128081?
- CVE-2026-128081 affects AutoMapper. It has a 0.6% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2026-128081 and 200,000+ other known vulnerabilities.
Severity & Exploitability
Significant impact if exploited, or exploitable with modest effort.
This is a below-median EPSS score — only 44.6% of tracked vulnerabilities score at or below it, so most tracked vulnerabilities are considered more likely to be exploited than this one.
Also Known As
Related CVEs
- CVE-2026-102529HIGH
HtmlSanitizer: CSS Removal DoS
- CVE-2026-128082HIGH
AutoMapper: Uncontrolled Recursion with Constructor Parameters
- CVE-2026-32933HIGH
AutoMapper Vulnerable to Denial of Service (DoS) via Uncontrolled Recursion
- CVE-2026-63184HIGH
Refitter: Unrestricted OpenAPI references permit build-host SSRF and file inclusion