CVE-2017-9785: Deserialization of Untrusted Data in NancyFX Nancy

Nancy Updated 02 Oct 2025

Summary

17/05/2022
Yes i
Critical
9.8

CVE-2017-9785: Deserialization of Untrusted Data in NancyFX Nancy. Affects Nancy across 2 version ranges.

< 1.4.4 >= 2.0.0-alpha, < 2.0.0

Fixed in 1.4.4 or 2.0.0, depending on the release line you run. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

Background

NancyFX Nancy is an open-source web framework for building web applications in .NET. It provides a lightweight and modular approach to web development, allowing developers to create RESTful APIs and web services. NancyFX Nancy is widely used in the .NET ecosystem and is available as a NuGet package. However, versions before 1.4.4 and 2.x before 2.0-dangermouse are vulnerable to a critical remote code execution vulnerability.

Vulnerability Detail

The vulnerability, identified as CVE-2017-9785, is a result of deserialization of untrusted data in NancyFX Nancy. Specifically, the Csrf.cs file in NancyFX Nancy allows for remote code execution through the deserialization of JSON data in a CSRF Cookie. This means that an attacker can craft a malicious CSRF Cookie that, when deserialized, executes arbitrary code on the server. The impact of this vulnerability is severe, as it allows an attacker to take control of the affected server and potentially compromise sensitive data or perform unauthorized actions.

How To Fix

Fixed versions by release line

The minimum fixed version depends on the release line you run.

  • < 1.4.4 1.4.4
  • >= 2.0.0-alpha, < 2.0.0 2.0.0

Tip — Not sure which release line you're on? Vulert can find the fix for the version you are using. Scan free →

Workaround

There is no known workaround for this vulnerability. It is crucial to update to the fixed versions mentioned above to address the issue.

Conclusion

In conclusion, the CVE-2017-9785 vulnerability in NancyFX Nancy exposes servers to remote code execution through the deserialization of untrusted data. It is crucial to update to the fixed versions mentioned above to mitigate this vulnerability. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for Nancy →

Share this vulnerability

FAQ

NancyFX Nancy is an open-source web framework for building web applications in .NET. It provides a lightweight and modular approach to web development.

The vulnerability allows for remote code execution, enabling an attacker to take control of the affected server and potentially compromise sensitive data or perform unauthorized actions.

To fix this vulnerability, update NancyFX Nancy to version 1.4.4 or later for versions before 2.x, and to version 2.0.0 or later for versions 2.x.

There is no known workaround for this vulnerability. Updating to the fixed versions is the recommended solution.

How To Fix

Fixed versions by release line

The minimum fixed version depends on the release line you run.

  • < 1.4.4 1.4.4
  • >= 2.0.0-alpha, < 2.0.0 2.0.0

Tip — Not sure which release line you're on? Vulert can find the fix for the version you are using. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback