CVE-2026-128081: AutoMapper Denial of Service Vulnerability

HIGH
Advisory Identifier: GHSA-gpwp-5797-mjff
CVSS 7.5
CWE-674
Published
Advisory Summary

CVE-2026-128081 is a HIGH (CVSS 7.5) denial of service vulnerability (CWE-674: Uncontrolled Recursion) affecting AutoMapper libraries in the NuGet ecosystem. The issue involves denial of service via uncontrolled recursion that bypasses maxdepth. Remediation is available by upgrading affected packages to version 16.3.0, 15.1.4.

CVE-2026-128081 at a Glance

CVE Identifier CVE-2026-128081
GHSA Identifier GHSA-gpwp-5797-mjff
Severity HIGH
CVSS v3.1 Base Score 7.5
CWE Classification CWE-674: Uncontrolled Recursion
Affected Product AutoMapper
Package Ecosystem NuGet
Published Date
Last Updated

Security Impact

CVSS: 7.5

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality None (C:N)
Integrity None (I:N)
Availability High (A:H)

How to Fix CVE-2026-128081

To remediate this vulnerability, upgrade all affected AutoMapper dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

AutoMapper fixed: 16.3.0
Upgrade AutoMapper to 16.3.0
AutoMapper fixed: 15.1.4
Upgrade AutoMapper to 15.1.4
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for AutoMapper

How to Check if You Are Affected

To determine whether your application is affected by CVE-2026-128081, inspect your project dependencies for AutoMapper:

inspect dependencies for AutoMapper

Analyze the terminal output to locate any version of AutoMapper in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 16.3.0), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-674: Uncontrolled Recursion, where the product does not properly control the amount of recursion that takes place, consuming excessive resources, such as allocated memory or the program stack. In AutoMapper, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

### 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's `MaxDepth`, 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 with `MaxDepth` set on the base map. - **Runtime-typed members:** members typed as `object` or 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>` or `ExpandoObject` (for example, deserialized JSON) onto typed destinations recurses with no depth tracking. `MaxDepth` has no effect. - **Recursive type converters:** `ConvertUsing` that calls `context.Mapper.Map` ignores `MaxDepth`. ### 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 `InsufficientExecutionStackException` instead 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: `MaxDepth` not enforced through constructor parameters and positional records, fixed in the same releases.

CVE-2026-128081 Affected AutoMapper Versions

2 component(s)
Fixed Versions:
16.3.015.1.4
Product / Package Ecosystem Affected Versions Fixed Version
AutoMapper
NuGet
≥ 16.0.0
< 16.3.0
16.3.0
AutoMapper
NuGet
< 15.1.4
15.1.4

References

Frequently Asked Questions

What is CVE-2026-128081?
CVE-2026-128081 is a security vulnerability in AutoMapper involving Denial of Service via uncontrolled recursion that bypasses MaxDepth under CWE-674: Uncontrolled Recursion.
Which AutoMapper versions are affected?
Affected versions include releases prior to 16.3.0, 15.1.4 across affected packages: AutoMapper.
What version fixes CVE-2026-128081?
Upgrading to 16.3.0, 15.1.4 (or the latest patched release for your respective branch) resolves the vulnerability.
Is AutoMapper affected?
Yes, AutoMapper is affected in releases prior to 16.3.0, 15.1.4. Upgrade your dependency to 16.3.0, 15.1.4 or later.
What is the CVSS score of CVE-2026-128081?
CVE-2026-128081 has a CVSS v3.1 base score of 7.5 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H.
What CWE is associated with CVE-2026-128081?
CVE-2026-128081 is classified under CWE-674: Uncontrolled Recursion (The product does not properly control the amount of recursion that takes place, consuming excessive resources, such as allocated memory or the program stack.).
How can I check NuGet dependencies for CVE-2026-128081?
Run the dependency tree command: 'inspect dependencies for AutoMapper'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-gpwp-5797-mjff",
  "modified" : "2026-11-13T18:47:17Z",
  "published" : "2026-11-13T18:47:17Z",
  "aliases" : [ "CVE-2026-128081" ],
  "summary" : "AutoMapper: Denial of Service via uncontrolled recursion that bypasses MaxDepth",
  "details" : "### Summary\nThe 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.\n\n### Affected paths\n- **Polymorphic maps:** derived type maps (`Include` / `IncludeBase`) didn't inherit the base map's `MaxDepth`, 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 with `MaxDepth` set on the base map.\n- **Runtime-typed members:** members typed as `object` or an interface aren't seen by self-reference detection, so the default limit isn't applied.\n- **Dictionary and dynamic sources:** mapping a nested `Dictionary<string, object>` or `ExpandoObject` (for example, deserialized JSON) onto typed destinations recurses with no depth tracking. `MaxDepth` has no effect.\n- **Recursive type converters:** `ConvertUsing` that calls `context.Mapper.Map` ignores `MaxDepth`.\n\n### Impact\nAn 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.\n\n### Fix\n- Derived type maps inherit `MaxDepth`, and the default limit is applied to them.\n- Every runtime map call checks for sufficient stack, and fails with a catchable `InsufficientExecutionStackException` instead of overflowing.\n\n### Workarounds\nSet `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.\n\n### Related\n- CVE-2026-32933 (GHSA-rvv3-g6hj-g44x)\n- GHSA-6vhm-j9h7-f9gh: `MaxDepth` not enforced through constructor parameters and positional records, fixed in the same releases.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "NuGet",
      "name" : "AutoMapper"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "16.0.0"
      }, {
        "fixed" : "16.3.0"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "NuGet",
      "name" : "AutoMapper"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "15.1.4"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/LuckyPennySoftware/AutoMapper/security/advisories/GHSA-gpwp-5797-mjff"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/LuckyPennySoftware/AutoMapper/commit/aee81b50574c3c7005283cca2b2396e295bd8ed9"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/LuckyPennySoftware/AutoMapper"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/LuckyPennySoftware/AutoMapper/releases/tag/v15.1.4"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/LuckyPennySoftware/AutoMapper/releases/tag/v16.3.0"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-674" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-11-13T18:47:17Z",
    "nvd_published_at" : null
  }
}