Read the docs

Uncontrolled recursion in AutoMapper bypasses MaxDepth limits

Priority HIGH 72CWE-674Published · Updated

Key facts

Attack vector
Network
Privileges required
None
User interaction
None
Attack complexity
Low
Impact type
Denial of service
Confidentiality · integrity · availability
None · None · High
Fix status
Fixed

Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub. Impact type from CWE-674.

Summary

AutoMapper before 15.1.4 and from 16.0.0 before 16.3.0 increments type depth only after creating the destination, so recursive mapping through constructor parameters bypasses MaxDepth and the default limit of 64. The flaw is uncontrolled recursion (CWE-674). Deep attacker-influenced input can cause an uncatchable StackOverflowException that terminates the process.

Written with Claude Haiku 5.5 from the sources below · 2026-11-13

Description from the CNA

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.

Why it matters now

Exploitation Proof of concept CISA SSVC · not in CISA KEV
EPSS 0.00663 52nd percentileScored 2026-11-16
Fix Fixed AutoMapper (LuckyPennySoftware): 16.3.0, 15.1.4AutoMapper (NuGet): 16.3.0, 15.1.4

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
Poc
Automatable
Yes
Technical impact
Partial

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

VendorProductAffected versionsFixed inStatusSource
LuckyPennySoftwareAutoMapper16.0.0 to before 16.3.0; before 15.1.416.3.0, 15.1.4Patch availableCNA
—AutoMapper (NuGet)16.0.0 to before 16.3.016.3.0Patch availableGHSA-6vhm-j9h7-f9gh
—AutoMapper (NuGet)before 15.1.415.1.4Patch availableGHSA-6vhm-j9h7-f9gh
  • AutoMapper VendorLuckyPennySoftware Affected 16.0.0 to before 16.3.0; before 15.1.4 Fixed in 16.3.0, 15.1.4 Patch available CNA
  • AutoMapper (NuGet) Vendor— Affected 16.0.0 to before 16.3.0 Fixed in 16.3.0 Patch available GHSA-6vhm-j9h7-f9gh
  • AutoMapper (NuGet) Vendor— Affected before 15.1.4 Fixed in 15.1.4 Patch available GHSA-6vhm-j9h7-f9gh

Remediation

Upgrade AutoMapper to version 15.1.4 for the 15.x line or to version 16.3.0 for the 16.x line.

Written with Claude Haiku 5.5 from the sources below · 2026-11-13

  • Fix · CNA AutoMapper (LuckyPennySoftware) Fixed in 16.3.0, 15.1.4
  • Fix · GHSA-6vhm-j9h7-f9gh AutoMapper (NuGet) Fixed in 16.3.0 Advisory →
  • Fix · GHSA-6vhm-j9h7-f9gh AutoMapper (NuGet) Fixed in 15.1.4 Advisory →

Timeline

  1. 2026-11-13 Threatist record created from CVE-2026-128082
  2. 2026-11-13 Alias added: GHSA-6vhm-j9h7-f9gh
  3. 2026-11-13 Fix available: NuGet/[email protected], NuGet/[email protected] · GHSA-6vhm-j9h7-f9gh
  4. 2026-11-13 CVSS score added · GHSA-6vhm-j9h7-f9gh
  5. 2026-11-13 Weakness changed · GHSA-6vhm-j9h7-f9gh
  6. 2026-11-13 6 new references · GHSA-6vhm-j9h7-f9gh
  7. 2026-11-13 CISA SSVC decision points changed

References

  • TI-2026-25381 AutoMapper Vulnerable to Denial of Service (DoS) via Uncontrolled Recursion CVSS 3.1HIGH 7.5
  • TI-2026-91741 Uncontrolled recursion in AutoMapper causes denial of service CVSS 3.1HIGH 7.5

Sources