Uncontrolled Recursion Affecting automapper package, versions [,15.1.4)[16.0.0,16.3.0)


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.66% (53rd percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-DOTNET-AUTOMAPPER-22549646
  • published14 Nov 2026
  • disclosed13 Nov 2026
  • creditUnknown

Introduced: 13 Nov 2026

NewCVE-2026-128082  (opens in a new tab)
CWE-674  (opens in a new tab)

How to fix?

Upgrade AutoMapper to version 15.1.4, 16.3.0 or higher.

Overview

Affected versions of this package are vulnerable to Uncontrolled Recursion through the mapping process when handling deeply nested data structures via constructor parameters. An attacker can cause the application to crash by supplying specially crafted, deeply nested input data that triggers uncontrolled recursion and results in a stack overflow. This is only exploitable if the destination type is mapped through constructor parameters, such as positional records, and the mapping involves recursive members.

Workaround

This vulnerability can be mitigated by disabling constructor mapping using cfg.DisableConstructorMapping() if the destination type has a parameterless constructor and settable properties. For positional records, limiting input depth before mapping can reduce risk.

CVSS Base Scores

version 4.0
version 3.1