Thank You, AutoMapper: Why We Forked 13.x as EFMapper
AutoMapper has been part of our .NET work for years. It removed a whole category of dull code: the hand-written assignments between entities, DTOs, and view models that used to fill repository after repository. You configure the conventions once, and the mapping stops being something you maintain by hand. We owe Jimmy Bogard and everyone who kept the project alive a real thank-you. The package has more than a billion downloads on NuGet, and it earned them.
This post explains why TATEEDA now maintains a fork called EFMapper, why it stays on the AutoMapper 13.x API, and who should consider it. In short, AutoMapper’s license changed and the MIT line is no longer maintained. We still needed an MIT license, and fixes for three recursion vulnerabilities.
Table of Contents
The license change, stated plainly
Releases through AutoMapper 14.0.0 shipped under the MIT license. Starting with 15.0.0, the project is licensed under the Reciprocal Public License 1.5 (RPL 1.5), with a paid commercial license as the alternative. That is a legitimate choice. A library this widely used takes years of maintenance, and asking the companies that depend on it to pay is fair. The 15.0.0 license file says it directly: use RPL 1.5, or buy the commercial license if you do not want to release your source.
The difficulty is what RPL 1.5 asks for. It is a reciprocal license, and its definition of Deploy includes internal use inside a business, not only shipping software to customers. Section 6.1 then requires the source of your extensions to be made available under the RPL. Lucky Penny’s own notice summarizes the intent: if you do not wish to release the source of software you build with it, use the commercial license instead. For an agency building closed-source systems for clients, and for regulated products where source release is a contract question, that is a hard stop. The license is legitimate. It does not fit our work, and we are not the only team in that position.
What the MIT line left behind
AutoMapper 13.x is the API most of our applications use. The 13.x line has had no release since February 2024, and NuGet flags 13.0.1 with a high-severity vulnerability. The project now has three advisories for uncontrolled recursion (CWE-674):
- CVE-2026-32933: no default depth limit for self-referential maps.
- CVE-2026-128081:
MaxDepthbypassed by derived maps,objectand interface members, dictionary and dynamic sources, and recursive type converters. - CVE-2026-128082: depth counted after the destination was constructed, so constructor parameters and positional records recursed without bound.
A deeply nested object graph could exhaust the thread stack and throw StackOverflowException. .NET does not let you catch that exception. The process dies. In a service that maps request payloads, that is a denial of service with a small input.
The 13.x line also targets older frameworks. Our applications moved to .NET 10.
What we changed in the fork
We forked the AutoMapper 13.x source, kept the MIT license and Jimmy Bogard’s copyright notice, and renamed the assembly and namespace to EFMapper. Then we fixed the recursion problems instead of documenting them.
- A depth limit by default. When EFMapper detects a self-referential map, it enables
PreserveReferencesand appliesMaxDepth(64). That is the same defaultSystem.Text.Jsonand Newtonsoft.Json use. An explicitMaxDepth(n)still wins, andPreserveReferences()opts out of the limit. - Derived maps inherit the limit. A map created through
IncludeorIncludeBasecannot drop the depth setting. - Depth is counted before the destination exists. Constructor parameters and positional records hit the limit instead of recursing through object construction.
- A runtime stack guard. Sources that the type graph cannot bound, such as dictionaries,
dynamic,objector interface members, and recursive type converters, callRuntimeHelpers.EnsureSufficientExecutionStack()on each map. They fail withInsufficientExecutionStackException, which you can catch and log. The process stays up.
Depth limits are defense in depth. Keep validating payload size and nesting at your application boundary as well.
Migrating from AutoMapper
EFMapper keeps the public API from 13.x: IMapper, MapperConfiguration, Profile, ProjectTo, and the configuration expressions. Migration is a package swap and a namespace change:
dotnet remove package AutoMapper
dotnet add package EFMapper
-using AutoMapper;
+using EFMapper;
The package targets net10.0 and depends on Microsoft.Extensions.Options. We picked the name ourselves. EFMapper is a general-purpose mapper and does not depend on Entity Framework Core.
One behavior change to know about: a recursive graph deeper than 64 levels is now truncated unless you raise MaxDepth or call PreserveReferences. If your data legitimately goes deeper, set the limit explicitly:
cfg.CreateMap<Node, NodeDto>().MaxDepth(128);
What EFMapper is not
EFMapper is not affiliated with Jimmy Bogard, Lucky Penny Software, or the AutoMapper project, and none of them endorse it. It is a fork of the 13.x code, not a copy of AutoMapper 17. If you are on 15.0.0 or later and the commercial license works for your company, stay there. You get the current feature set and paid support. EFMapper exists for teams that need the 13.x API, an MIT license, and the security fixes.
We intend to keep the fork small and compatible. Bug reports and pull requests are welcome at github.com/odesuk/ef-mapper. The package is at nuget.org/packages/EFMapper.
Thank you
None of this diminishes what AutoMapper did for .NET. It made object mapping a solved problem for a generation of applications, ours included. Thank you, Jimmy, and thank you to everyone who filed an issue, sent a pull request, or answered a question on Stack Overflow. EFMapper is our way of keeping the MIT version of that work available, with the security debt paid down.
If you are maintaining a .NET system and weighing a license change against a rewrite or a fork, we can talk through it. Get a project-fit assessment.
FAQ
For code written against the 13.x API, yes. Replace the package reference, change using AutoMapper; to using EFMapper;, and the public types keep their names and signatures. EFMapper is not a replacement for features added in AutoMapper 15 and later.
Yes. EFMapper is MIT-licensed. Keep the copyright and permission notice in copies of the software, as the license requires. There is no license key and no per-seat fee.
EFMapper applies a default depth limit to self-referential maps, counts depth before destination construction, and adds a runtime stack guard for sources the type graph cannot bound. That covers CVE-2026-32933, CVE-2026-128081, and CVE-2026-128082. Treat it as defense in depth and still bound untrusted input at your boundary.
No. EFMapper is maintained by TATEEDA and is not endorsed by Jimmy Bogard, Lucky Penny Software, or the AutoMapper project.
Disclosure: TATEEDA maintains EFMapper, the fork described here. It is free, MIT-licensed, and earns us no revenue. AutoMapper is the name of the original project; this post and the fork are independent of it.