Skip to main content
Live Webinar with SANS (June 25)— Agentic CTI Automation for Fun & ProfitRegister Free
Mallory
High

.NET System.Security.Cryptography.Cose spoofing / security feature bypass

IdentifiersCVE-2026-21218CWE-345

CVE-2026-21218 is a spoofing vulnerability in .NET, including .NET and Visual Studio-related distributions, caused by improper handling of a missing special element during processing of COSE-related data in applications using the System.Security.Cryptography.Cose package. The available advisory context indicates that affected applications on .NET 8.0, 9.0, and 10.0 may incorrectly accept a message that should be rejected because critical-header validation can be bypassed when the expected special element is absent. Microsoft classifies the issue as a spoofing vulnerability; the flaw is also described in advisory material as a security feature bypass affecting applications that rely on this package for message validation.

Share:
For your environment

Are you exposed to this one?

Mallory correlates every CVE against your assets, your vendors, and active adversary campaigns. Know which vulnerabilities matter for you, not just which ones are loud.

ANALYST BRIEF

Impact, mitigation & remediation

What it means. What to do now. Patch path, mitigations, and the assume-compromise checklist.

Impact

What an attacker gets, and what they’ve been doing with it.

Successful exploitation allows an unauthorized network attacker to spoof trusted data by bypassing critical-header validation in affected .NET applications. As a result, a service may accept a crafted COSE message it should have rejected, which can undermine message authenticity and integrity checks and may enable unauthorized access decisions or downstream data manipulation depending on how the application uses the validated content.

Mitigation

If you can’t patch tonight, do this now.

Identify applications that reference System.Security.Cryptography.Cose and prioritize patching those deployments. If immediate patching is not possible, reduce exposure by avoiding or disabling use of affected package versions where feasible, and apply compensating controls at trust boundaries so untrusted COSE messages are not accepted without additional validation. Applications that do not use System.Security.Cryptography.Cose are not affected.

Remediation

Patch, then assume compromise.

Update the affected System.Security.Cryptography.Cose package to a fixed version and redeploy the application. The provided advisory context identifies fixed versions as 8.0.2 for .NET 8, 9.0.13 for .NET 9, and 10.0.3 for .NET 10. Microsoft also recommends updating the corresponding .NET runtimes and/or SDKs, although the advisory states that package update is sufficient to remediate the vulnerability. Recompilation and redeployment of applications using the package are required after updating.
PUBLIC EXPLOITS

Exploits

No public exploits tracked yet. Mallory keeps watching.

VALID 0 / 0 TOTALView more in app

No public exploit code observed for this vulnerability.

EXPOSURE SURFACE

Affected products & vendors

Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.

VendorProductType
Microsoft CorporationNetapplication

Vendor-confirmed product mapping. Mallory continuously reconciles this list against your asset inventory.

What this page doesn’t show

The version that knows your environment.

This page is what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which adversaries are exploiting it right now, which detections to deploy, and what to do tonight.
Exposure mapping

Query your assets running an affected version, and investigate the blast radius.

Threat actor evidence

Every observed campaign linking this CVE to a named adversary.

Associated malware

Malware families riding this exploit, with evidence and IOCs.

Detection signatures

YARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.

Vendor-by-vendor mapping

Cross-references every affected SKU, including bundled OEM variants.

Social activity6

Community discussion across Reddit, Mastodon, and other social sources.