ASP.NET CSRF vulnerability puts legacy library under active
The ASP.NET CSRF vulnerability in the legacy Idunno.AntiCsrf library is being exploited in the wild, according to Google-owned Mandiant. The flaw, tracked as CVE-2026-131914, has a CVSS score of 9.3 out of 10.0 and can let an unauthenticated remote attacker run arbitrary code on an affected web application server.
Idunno.AntiCsrf, distributed as Idunno.AntiCsrf.dll, is a third-party ASP.NET IHttpModule. An HTTP module is software that processes web requests inside an application. This library was designed to provide double-submit cookie Cross-Site Request Forgery (CSRF) protection for ASP.NET WebForms applications. CSRF is an attack that tricks a logged-in user’s browser into sending an unwanted request to a website.
The open-source project is defunct and has not been updated since December 2008. The vulnerability affects versions 0.9.1.0 and 0.9.1 Beta. It is an insecure deserialization flaw, meaning the software rebuilds data received from a user without safely verifying that the data is trustworthy, inside the Idunno.AntiCsrf.AntiCsrfModule HTTP module.
The specific problem occurs when the module processes incoming HTTP POST requests to ASP.NET WebForms System.Web.UI.Page endpoints. It uses the .NET System.Web.UI.ObjectStateFormatter to deserialize untrusted CSRF form-token data, but does so without a cryptographic MAC or signature check. A MAC is a cryptographic code used to confirm that data has not been altered and comes from an approved source.
That design allows a remote attacker to achieve arbitrary remote code execution, or RCE, which means running commands of the attacker’s choice on the target system. Mandiant rated the flaw as having high exploitability. Its assessment says exploitation requires only one HTTP POST request, with no prior authentication and no valid CSRF token.
According to a Mandiant alert issued last week, an attacker can place any non-empty value in the configured CSRF cookie and put a Base64-encoded .NET ObjectStateFormatter gadget chain in the configured CSRF form field. Base64 is a way of representing data as text, while a gadget chain is a sequence of existing software components arranged to trigger an unintended action. Successful exploitation runs code in the context of the IIS worker process, w3wp.exe, and can result in complete compromise of the web application server.
Google Cloud and Mandiant Incident Response researchers were credited with finding the flaw earlier this month. Mandiant stated that active exploitation in the wild had been observed, but Google’s threat intelligence team did not disclose further details about the activity. There is no official patch for the library, so organisations still using it have been advised to stop using it and replace it with an actively supported alternative.
The alternatives listed by Google include System.Web.Helpers.AntiForgery, ASP.NET WebForms Page.ViewStateUserKey combined with MAC-verified and encrypted ViewState on postback forms, and ASP.NET Core Anti-Request Forgery through IAntiforgery. The appropriate replacement depends on the application’s framework and design, but continuing to rely on the unmaintained Idunno.AntiCsrf library leaves the vulnerable code in place.
Administrators should audit ASP.NET Web.config files and bin directories for references to Idunno.AntiCsrf or AntiCsrfModule. IIS logs should also be reviewed for unusual POST requests to .aspx endpoints that return HTTP 302 or HTTP 500 responses and show elevated cs-bytes, where that field is logged. These signs do not by themselves prove compromise, but they can help identify activity requiring investigation.
Where exploitation is suspected or confirmed, Google advises rotating all secrets stored in Web.config and applicationHost.config. This includes machineKey keys, encryption keys and database credentials. Teams should also inspect webroots, the directories containing the website’s files, for unauthorised files. For organisations reviewing this exposure, AEU-I provides security-first IT, infrastructure and consulting.
Because exploitation does not require a login or a valid CSRF token, organisations should treat any use of the affected library as urgent. Removing the library, moving to an actively supported protection mechanism and investigating logs and website files are the key defensive measures identified in the available guidance.