CVE-2017-9785 — Deserialization of Untrusted Data in Nancy
Deserialization of Untrusted Data in NancyFX Nancy
What Should I Do?
Address in Next Maintenance Window
Low exploitation probability (3.01%). Schedule for your next planned update.
Does your project use an affected Nancy version?
Paste your packages.lock.json to check it for CVE-2017-9785 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.
Summary
Csrf.cs in NancyFX Nancy before 1.4.4 and 2.x before 2.0-dangermouse has Remote Code Execution via Deserialization of JSON data in a CSRF Cookie.
Advisory Timeline
- First published May 17, 2022 (1654 days ago).
- Last revised November 8, 2023 — 540 days after initial publication.
Remediation
Upgrade to the fixed version using your package manager.
dotnet add package Nancy --version 2.0.0
dotnet add package Nancy --version 1.4.4
After upgrading, scan your dependencies again to confirm the vulnerability is resolved.
Affected Packages (2)
Affects 1 ecosystem: NuGet (1).
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
- CWE-502Deserialization of Untrusted DataMITRE
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 9.8 score means for each attack dimension.
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
References
Frequently Asked Questions
- What is CVE-2017-9785?
- Deserialization of Untrusted Data in NancyFX Nancy. This vulnerability has been assigned a severity rating of CRITICAL (CVSS score: 9.8/10).
- How do I check if my project is affected by CVE-2017-9785?
- CVE-2017-9785 affects Nancy. It has a 3.0% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2017-9785 and 200,000+ other known vulnerabilities.
Severity & Exploitability
Maximum impact if exploited, often with little effort or access required.
This places it in the top quartile of EPSS-scored vulnerabilities — 88.1% of tracked vulnerabilities score at or below it, so it is more likely to be exploited than most of the tracked corpus.
Also Known As
Related CVEs
- CVE-2026-63346CRITICAL
Refitter allows code execution through unescaped OpenAPI header parameter names
- CVE-2026-63344CRITICAL
Refitter allows arbitrary code execution through unescaped OpenAPI content-type values