CVE-2026-21218: Discrepancy between advisory and available NuGet versions for System.Security.Cryptography.Cose
There appears to be a discrepancy between the fix information provided in the GitHub Advisory and the actual versions available on NuGet.
According to the GitHub Security Advisory GHSA-qvhc-9v3j-5rfw, CVE-2026-21218 was fixed in version 8.0.24 of System.Security.Cryptography.Cose. However:
- Version
8.0.24does not exist on NuGet - The latest available version for .NET 8.0 is
8.0.2 - Version
8.0.2is still flagged as vulnerable to this CVE on NuGet
Questions:
- Is there a plan to release a patched version of
System.Security.Cryptography.Cosefor .NET 8.0? - Is the version number in the advisory (
8.0.24) incorrect? - Should users on .NET 8.0 upgrade to a different framework version to remediate this vulnerability?
Environment:
- Package:
System.Security.Cryptography.Cose - Current version:
8.0.2 - Target framework: .NET 8.0
- CVE:
CVE-2026-21218 - Related issue: https://github.com/dotnet/runtime/issues/124235
Tagging subscribers to this area: @bartonjs, @vcsjones, @dotnet/area-system-security See info in area-owners.md if you want to be subscribed.
@bribrothers
@linuxchata apologies, 8.0.2 is marked as vulnerable just because the security advisory says fixed in 24, instead of fixed in 2.
The SDK is on patch version 24, but our NuGet packages from .NET 8 don't bump version numbers unless we intentionally publish a new version of that package, so for this package it ended up being 8.0.2. I will edit the advisory to make this more clear. Thank you!
@bribrothers correct me if I'm wrong, but there is still something wrong about versions range. For .NET 9 and .NET 10, the affected versions are:
>= 10.0.0, < 10.0.2(patched in 10.0.3)>= 9.0.0, < 9.0.12(patched in 9.0.13)
Notice the exclusive bound. So what about versions 10.0.2 and 9.0.12? On Nuget they are not marked as vulnerable.
@KeterSCP wow, must have screwed up copy paste there (again...). I've updated 9.0 and 10.0, I'll leave this open until this reflect on https://www.nuget.org/packages/System.Security.Cryptography.Cose
There's still a problem with this package. Build
Warning As Error: Package 'System.Security.Cryptography.Cose' 8.0.2 has a known low severity vulnerability, https://github.com/advisories/GHSA-qvhc-9v3j-5rfw
It has been fix for 8.0.2 version
The 9.0.12 and 10.0.2 NuGet versions are now correctly marked as vulnerable. The issue can be closed. Thanks for the quick action!