PT-2026-147129
CVE-2026-128082
·
Published
2026-11-13
·
Updated
2026-11-13
Description by
CVSS 3.1
7.5
HighMetricsAV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Name of the Vulnerable Software and Affected Versions
AutoMapper versions prior to 15.1.4
AutoMapper versions 16.0.0 through 16.3.0
Description
AutoMapper fails to properly enforce
MaxDepth limits when recursive mapping occurs through constructor parameters, such as those used in positional records or ConstructUsing mappings that call context.Mapper. Because the type depth is incremented only after the destination object is created, the depth check is bypassed during the construction phase. An attacker can provide deeply nested input to trigger an uncatchable StackOverflowException, which leads to the termination of the process.Recommendations
Update AutoMapper to version 15.1.4 or 16.3.0.
As a temporary workaround for destination types with a parameterless constructor and settable properties, use
cfg.DisableConstructorMapping() to force mapping through properties where MaxDepth is enforced.
For positional records, limit the input depth before mapping until the software is updated. Found an issue in the description? Have something to add? Feel free to write us 👾