I have issues building the C++ projects for security errors.

For some reason, my project started to drop errors on build in Visual Studio. Here are the main issues from logs:

43>C:\Program Files\Epic Games\UE_5.6\Engine\Source\Programs\AutomationTool\Gauntlet\Gauntlet.Automation.csproj : error NU1902: Warning As Error: Package 'Magick.NET-Q16-HDRI-AnyCPU' 14.7.0 has a known moderate severity vulnerability, https://github.com/advisories/GHSA-6hgw-6x87-578x
43>C:\Program Files\Epic Games\UE_5.6\Engine\Source\Programs\AutomationTool\Gauntlet\Gauntlet.Automation.csproj : error NU1903: Warning As Error: Package 'Magick.NET-Q16-HDRI-AnyCPU' 14.7.0 has a known high severity vulnerability, https://github.com/advisories/GHSA-9ccg-6pjw-x645
43>C:\Program Files\Epic Games\UE_5.6\Engine\Source\Programs\AutomationTool\Gauntlet\Gauntlet.Automation.csproj : error NU1903: Warning As Error: Package 'Magick.NET-Q16-HDRI-AnyCPU' 14.7.0 has a known high severity vulnerability, https://github.com/advisories/GHSA-cjc8-g9w8-chfw
43>C:\Program Files\Epic Games\UE_5.6\Engine\Source\Programs\AutomationTool\Gauntlet\Gauntlet.Automation.csproj : error NU1901: Warning As Error: Package 'Magick.NET-Q16-HDRI-AnyCPU' 14.7.0 has a known low severity vulnerability, https://github.com/advisories/GHSA-fh55-q5pj-pxgw
43>C:\Program Files\Epic Games\UE_5.6\Engine\Source\Programs\AutomationTool\Gauntlet\Gauntlet.Automation.csproj : error NU1903: Warning As Error: Package 'Magick.NET-Q16-HDRI-AnyCPU' 14.7.0 has a known high severity vulnerability, https://github.com/advisories/GHSA-mxvv-97wh-cfmm
43>C:\Program Files\Epic Games\UE_5.6\Engine\Source\Programs\AutomationTool\Gauntlet\Gauntlet.Automation.csproj : error NU1903: Warning As Error: Package 'Magick.NET-Q16-HDRI-AnyCPU' 14.7.0 has a known high severity vulnerability, https://github.com/advisories/GHSA-qp29-wxp5-wh82
43>Done building project "Gauntlet.Automation.csproj" -- FAILED.

I was trying to figure it out, but this repeats even for blank projects started from scratch.

I updated the Visual Studio to the latest version not that long ago; that may be the only difference that I can think of that might have caused it, but I rolled back the version, and the build error persists.

Any ideas?

There seems to be an outdated dependency in there.

As a workaround, edit the the .csproj file (C:\Program Files\Epic Games\UE_5.6\Engine\Source\Programs\AutomationTool\Gauntlet\Gauntlet.Automation.csproj) and change <WarningsNotAsErrors>612,618</WarningsNotAsErrors>, to <WarningsNotAsErrors>612,618,1901,1902,1903</WarningsNotAsErrors>

or

<TreatWarningsAsErrors>true</TreatWarningsAsErrors>

to

<TreatWarningsAsErrors>false</TreatWarningsAsErrors>

Yeah, I was thinking about this, but why this appeared, and is there a way to fix the thing that causes warnings, maybe?

this is a known issue, there’s a couple of posts in the forum addressing this.

this is addressed by epic on 5.6.1. you can see it on the github.

if you have a source copy of the engine, you would want to pull the changes.

i would have thought that obtaining 5.6.1 from the installer would fix it.

I am currently on 5.6.1; maybe it will be fixed in the next release, I will check that.