CVE-2017-0256
Moderate severity vulnerability that affects Microsoft.AspNetCore.Mvc
Also known as GHSA-j8f4-2w4p-mhjc
Mitigation
- Upgrade Microsoft.AspNetCore.Mvc to one of 1.0.4, 1.1.3 (or later in the same release line).
- Upgrade Microsoft.AspNetCore.Mvc.Core to one of 1.0.4, 1.1.3 (or later in the same release line).
- Upgrade System.Net.Http to one of 4.1.2, 4.3.2 (or later in the same release line).
- Upgrade System.Text.Encodings.Web to one of 4.0.1, 4.3.1 (or later in the same release line).
- Upgrade System.Net.Http.WinHttpHandler to one of 4.0.1, 4.3.1 (or later in the same release line).
- Upgrade System.Net.Security to one of 4.0.1, 4.3.1 (or later in the same release line).
- Upgrade System.Net.WebSockets.Client to one of 4.0.1, 4.3.1 (or later in the same release line).
- Upgrade Microsoft.AspNetCore.Mvc.Abstractions to one of 1.0.4, 1.1.3 (or later in the same release line).
Who should check
- Projects that depend on NuGet package Microsoft.AspNetCore.Mvc (>= 1.0.0, < 1.0.4)
- Projects that depend on NuGet package Microsoft.AspNetCore.Mvc.Core (>= 1.0.0, < 1.0.4)
- Projects that depend on NuGet package System.Net.Http (>= 4.1.1, < 4.1.2)
- Projects that depend on NuGet package System.Text.Encodings.Web (>= 4.0.0, < 4.0.1)
- Projects that depend on NuGet package System.Net.Http.WinHttpHandler (>= 4.0.0, < 4.0.1)
- Projects that depend on NuGet package System.Net.Security (>= 4.0.0, < 4.0.1)
- Projects that depend on NuGet package System.Net.WebSockets.Client (>= 4.0.0, < 4.0.1)
- Projects that depend on NuGet package Microsoft.AspNetCore.Mvc.Abstractions (>= 1.0.0, < 1.0.4)
Vulnerability facts
- Affected
- Microsoft.AspNetCore.Mvc >= 1.0.0, < 1.0.4; Microsoft.AspNetCore.Mvc.Core >= 1.0.0, < 1.0.4; System.Net.Http >= 4.1.1, < 4.1.2; System.Text.Encodings.Web >= 4.0.0, < 4.0.1; System.Net.Http.WinHttpHandler >= 4.0.0, < 4.0.1; System.Net.Security >= 4.0.0, < 4.0.1; System.Net.WebSockets.Client >= 4.0.0, < 4.0.1; Microsoft.AspNetCore.Mvc.Abstractions >= 1.0.0, < 1.0.4; Microsoft.AspNetCore.Mvc.ApiExplorer >= 1.0.0, < 1.0.4; Microsoft.AspNetCore.Mvc.Cors >= 1.0.0, < 1.0.4; Microsoft.AspNetCore.Mvc.DataAnnotations >= 1.0.0, < 1.0.4; Microsoft.AspNetCore.Mvc.Formatters.Json >= 1.0.0, < 1.0.4; Microsoft.AspNetCore.Mvc.Formatters.Xml >= 1.0.0, < 1.0.4; Microsoft.AspNetCore.Mvc.Localization >= 1.0.0, < 1.0.4; Microsoft.AspNetCore.Mvc.Razor.Host >= 1.0.0, < 1.0.4; Microsoft.AspNetCore.Mvc.Razor >= 1.0.0, < 1.0.4; Microsoft.AspNetCore.Mvc.TagHelpers >= 1.0.0, < 1.0.4; Microsoft.AspNetCore.Mvc.ViewFeatures >= 1.0.0, < 1.0.4; Microsoft.AspNetCore.Mvc.WebApiCompatShim >= 1.0.0, < 1.0.4
- Fixed in
- 1.0.4, 1.1.3, 4.1.2, 4.3.2, 4.0.1, 4.3.1
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Remote, no login needed
- CVSS
- 5.3 (v3.0, NVD)CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:NOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Network
- Attack complexity: Low
- Privileges required: None
- User interaction: None
- Scope: Unchanged
- Confidentiality impact: None
- Integrity impact: Low
- Availability impact: None
- EPSS
- 3.54% chance of exploitation in 30 days (percentile 90, 2026-11-26)
- CWE
- CWE-20
- Modified
Description
A spoofing vulnerability exists when the ASP.NET Core fails to properly sanitize web requests.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| NuGet Microsoft.AspNetCore.Mvc | >= 1.0.0, < 1.0.4 | 1.0.4, 1.1.3 | osv |
| NuGet Microsoft.AspNetCore.Mvc.Core | >= 1.0.0, < 1.0.4 | 1.0.4, 1.1.3 | osv |
| NuGet System.Net.Http | >= 4.1.1, < 4.1.2 | 4.1.2, 4.3.2 | osv |
| NuGet System.Text.Encodings.Web | >= 4.0.0, < 4.0.1 | 4.0.1, 4.3.1 | osv |
| NuGet System.Net.Http.WinHttpHandler | >= 4.0.0, < 4.0.1 | 4.0.1, 4.3.1 | osv |
| NuGet System.Net.Security | >= 4.0.0, < 4.0.1 | 4.0.1, 4.3.1 | osv |
| NuGet System.Net.WebSockets.Client | >= 4.0.0, < 4.0.1 | 4.0.1, 4.3.1 | osv |
| NuGet Microsoft.AspNetCore.Mvc.Abstractions | >= 1.0.0, < 1.0.4 | 1.0.4, 1.1.3 | osv |
| NuGet Microsoft.AspNetCore.Mvc.ApiExplorer | >= 1.0.0, < 1.0.4 | 1.0.4, 1.1.3 | osv |
| NuGet Microsoft.AspNetCore.Mvc.Cors | >= 1.0.0, < 1.0.4 | 1.0.4, 1.1.3 | osv |
| NuGet Microsoft.AspNetCore.Mvc.DataAnnotations | >= 1.0.0, < 1.0.4 | 1.0.4, 1.1.3 | osv |
| NuGet Microsoft.AspNetCore.Mvc.Formatters.Json | >= 1.0.0, < 1.0.4 | 1.0.4, 1.1.3 | osv |
| NuGet Microsoft.AspNetCore.Mvc.Formatters.Xml | >= 1.0.0, < 1.0.4 | 1.0.4, 1.1.3 | osv |
| NuGet Microsoft.AspNetCore.Mvc.Localization | >= 1.0.0, < 1.0.4 | 1.0.4, 1.1.3 | osv |
| NuGet Microsoft.AspNetCore.Mvc.Razor.Host | >= 1.0.0, < 1.0.4 | 1.0.4, 1.1.3 | osv |
| NuGet Microsoft.AspNetCore.Mvc.Razor | >= 1.0.0, < 1.0.4 | 1.0.4, 1.1.3 | osv |
| NuGet Microsoft.AspNetCore.Mvc.TagHelpers | >= 1.0.0, < 1.0.4 | 1.0.4, 1.1.3 | osv |
| NuGet Microsoft.AspNetCore.Mvc.ViewFeatures | >= 1.0.0, < 1.0.4 | 1.0.4, 1.1.3 | osv |
| NuGet Microsoft.AspNetCore.Mvc.WebApiCompatShim | >= 1.0.0, < 1.0.4 | 1.0.4, 1.1.3 | osv |
| Microsoft Corporation ASP.NET Core | ASP.NET Core | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2017-0256. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2017-0256.md Affected: Microsoft.AspNetCore.Mvc >= 1.0.0, < 1.0.4; Microsoft.AspNetCore.Mvc.Core >= 1.0.0, < 1.0.4; System.Net.Http >= 4.1.1, < 4.1.2; System.Text.Encodings.Web >= 4.0.0, < 4.0.1; System.Net.Http.WinHttpHandler >= 4.0.0, < 4.0.1; System.Net.Security >= 4.0.0, < 4.0.1; System.Net.WebSockets.Client >= 4.0.0… Fixed in: 1.0.4, 1.1.3, 4.1.2, 4.3.2, 4.0.1, 4.3.1 Steps: 1. Search this machine and project for Microsoft.AspNetCore.Mvc (NuGet), Microsoft.AspNetCore.Mvc.Core (NuGet), System.Net.Http (NuGet), System.Text.Encodings.Web (NuGet), System.Net.Http.WinHttpHandler (NuGet), System.Net.Security (NuGet): dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Vendor advisories
FAQ
Is CVE-2017-0256 being exploited?
There is no confirmed exploitation: CVE-2017-0256 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 3.54% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2017-0256?
Medium: CVSS 5.3 (v3.0, scored by NVD). Remote, no login needed.
Which versions are affected by CVE-2017-0256?
Microsoft.AspNetCore.Mvc >= 1.0.0, < 1.0.4; Microsoft.AspNetCore.Mvc.Core >= 1.0.0, < 1.0.4; System.Net.Http >= 4.1.1, < 4.1.2; System.Text.Encodings.Web >= 4.0.0, < 4.0.1; System.Net.Http.WinHttpHandler >= 4.0.0, < 4.0.1; System.Net.Security >= 4.0.0, < 4.0.1; System.Net.WebSockets.Client >= 4.0.0, < 4.0.1; Microsoft.AspNetCore.Mvc.Abstractions >= 1.0.0, < 1.0.4; Microsoft.AspNetCore.Mvc.ApiExplorer >= 1.0.0, < 1.0.4; Microsoft.AspNetCore.Mvc.Cors >= 1.0.0, < 1.0.4; Microsoft.AspNetCore.Mvc.DataAnnotations >= 1.0.0, < 1.0.4; Microsoft.AspNetCore.Mvc.Formatters.Json >= 1.0.0, < 1.0.4; Microsoft.AspNetCore.Mvc.Formatters.Xml >= 1.0.0, < 1.0.4; Microsoft.AspNetCore.Mvc.Localization >= 1.0.0, < 1.0.4; Microsoft.AspNetCore.Mvc.Razor.Host >= 1.0.0, < 1.0.4; Microsoft.AspNetCore.Mvc.Razor >= 1.0.0, < 1.0.4; Microsoft.AspNetCore.Mvc.TagHelpers >= 1.0.0, < 1.0.4; Microsoft.AspNetCore.Mvc.ViewFeatures >= 1.0.0, < 1.0.4; Microsoft.AspNetCore.Mvc.WebApiCompatShim >= 1.0.0, < 1.0.4.
Is there a fix for CVE-2017-0256?
Yes. Fixed in 1.0.4, 1.1.3, 4.1.2, 4.3.2, 4.0.1, 4.3.1. Upgrade Microsoft.AspNetCore.Mvc to one of 1.0.4, 1.1.3 (or later in the same release line). Upgrade Microsoft.AspNetCore.Mvc.Core to one of 1.0.4, 1.1.3 (or later in the same release line). Upgrade System.Net.Http to one of 4.1.2, 4.3.2 (or later in the same release line). Upgrade System.Text.Encodings.Web to one of 4.0.1, 4.3.1 (or later in the same release line). Upgrade System.Net.Http.WinHttpHandler to one of 4.0.1, 4.3.1 (or later in the same release line). Upgrade System.Net.Security to one of 4.0.1, 4.3.1 (or later in the same release line). Upgrade System.Net.WebSockets.Client to one of 4.0.1, 4.3.1 (or later in the same release line). Upgrade Microsoft.AspNetCore.Mvc.Abstractions to one of 1.0.4, 1.1.3 (or later in the same release line).
How do I check if I'm affected by CVE-2017-0256?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.