
Hackers Exploit Critical ASP.NET Anti-CSRF Library Flaw Allowing Unauthenticated RCE
Cybersecurity researchers have discovered a critical vulnerability in the legacy ASP.NET anti-CSRF library Idunno.AntiCsrf that has been actively exploited in the wild, allowing unauthenticated remote code execution.
The vulnerability, tracked as CVE-2026-131914, relates to an insecure deserialization issue in the Idunno.AntiCsrf.AntiCsrfModule HTTP module. This third-party ASP.NET IHttpModule provides double-submit cookie Cross-Site Request Forgery (CSRF) protection but has been defunct since December 2008.
The core issue stems from the module deserializing untrusted CSRF form token data using an unkeyed .NET System.Web.UI.ObjectStateFormatter instance without cryptographic verification when handling HTTP POST requests to ASP.NET WebForms endpoints.
Google's Mandiant division has given the vulnerability a "High" exploitability assessment, noting that exploitation requires only a single HTTP POST request with no prior authentication or valid CSRF token.
Active Exploitation
Google Cloud and Mandiant Incident Response researchers discovered the flaw earlier this month. Active exploitation in the wild has been observed, though Google has not disclosed further details about the activity.
A remote attacker can supply any non-empty value in the configured CSRF cookie alongside a Base64-encoded .NET ObjectStateFormatter gadget chain in the configured CSRF form field to execute arbitrary code in the context of the IIS worker process (w3wp.exe), resulting in complete compromise of the web application server.
Mitigation Steps
With no official patch available, organizations using the library are advised to discontinue its use and replace it with actively supported anti-CSRF alternatives such as System.Web.Helpers.AntiForgery, ASP.NET WebForms Page.ViewStateUserKey with MAC-verified ViewState, or ASP.NET Core Anti-Request Forgery.
Google recommends auditing ASP.NET Web.config files and bin/ directories for references to Idunno.AntiCsrf, reviewing IIS logs for anomalous POST requests to .aspx endpoints, and rotating all secrets in exploited environments.