From e6abc653834e2ce0ec413a1b45ba3e84e9242f0f Mon Sep 17 00:00:00 2001 From: KissT Date: Thu, 23 Jul 2026 10:06:42 +0200 Subject: [PATCH 1/2] Drop Microsoft.AspNetCore 2.2.0 meta-package, use net7 shared framework (clears 4 Snyk CVEs incl. 1 critical) --- TodoApi.csproj | 35 +++++++++++++++++------------------ 1 file changed, 17 insertions(+), 18 deletions(-) diff --git a/TodoApi.csproj b/TodoApi.csproj index 9dc75cb..e864e32 100644 --- a/TodoApi.csproj +++ b/TodoApi.csproj @@ -1,18 +1,17 @@ - - - - Exe - net7.0 - enable - disable - - - - - - - - - - - + + + + Exe + net7.0 + enable + disable + + + + + + + + + + From 93a4e94f7da8658f2efb834e3670ba43ef3bb8d7 Mon Sep 17 00:00:00 2001 From: KissT Date: Thu, 23 Jul 2026 10:07:23 +0200 Subject: [PATCH 2/2] =?UTF-8?q?Bump=20AutoMapper=2012.0.1=20=E2=86=92=2015?= =?UTF-8?q?.1.3=20(clears=20high-severity=20uncontrolled-recursion=20CVE)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Startup.cs | 2 +- TodoApi.csproj | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/Startup.cs b/Startup.cs index ac49f9d..6a90832 100644 --- a/Startup.cs +++ b/Startup.cs @@ -16,7 +16,7 @@ public Startup(IConfiguration configuration) // This method gets called by the runtime. Use this method to add services to the container. public void ConfigureServices(IServiceCollection services) { - services.AddAutoMapper(typeof(Startup)); + services.AddAutoMapper(cfg => cfg.AddProfile()); AmazonDynamoDBConfig clientConfig = new AmazonDynamoDBConfig(); clientConfig.RegionEndpoint = RegionEndpoint.USEast1; diff --git a/TodoApi.csproj b/TodoApi.csproj index e864e32..0607603 100644 --- a/TodoApi.csproj +++ b/TodoApi.csproj @@ -8,8 +8,7 @@ - - +