# CVE-2017-0256: Moderate severity vulnerability that affects Microsoft.AspNetCore.Mvc

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 5.3
- **CVSS:** 5.3 (v3.0, NVD) `CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N`
- **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
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 3.54% (percentile 90, 2026-11-26)
- **CWE:** CWE-20
- **Aliases:** GHSA-j8f4-2w4p-mhjc
- **Published:** 2017-05-12T14:00:00.000Z
- **Modified:** 2026-06-17T00:57:21.070Z

## 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)

## Description

A spoofing vulnerability exists when the ASP.NET Core fails to properly sanitize web requests.

## Affected and fixed versions

- NuGet `Microsoft.AspNetCore.Mvc`: affected \>= 1.0.0, \< 1.0.4; fixed 1.0.4, 1.1.3 (osv)
- NuGet `Microsoft.AspNetCore.Mvc.Core`: affected \>= 1.0.0, \< 1.0.4; fixed 1.0.4, 1.1.3 (osv)
- NuGet `System.Net.Http`: affected \>= 4.1.1, \< 4.1.2; fixed 4.1.2, 4.3.2 (osv)
- NuGet `System.Text.Encodings.Web`: affected \>= 4.0.0, \< 4.0.1; fixed 4.0.1, 4.3.1 (osv)
- NuGet `System.Net.Http.WinHttpHandler`: affected \>= 4.0.0, \< 4.0.1; fixed 4.0.1, 4.3.1 (osv)
- NuGet `System.Net.Security`: affected \>= 4.0.0, \< 4.0.1; fixed 4.0.1, 4.3.1 (osv)
- NuGet `System.Net.WebSockets.Client`: affected \>= 4.0.0, \< 4.0.1; fixed 4.0.1, 4.3.1 (osv)
- NuGet `Microsoft.AspNetCore.Mvc.Abstractions`: affected \>= 1.0.0, \< 1.0.4; fixed 1.0.4, 1.1.3 (osv)
- NuGet `Microsoft.AspNetCore.Mvc.ApiExplorer`: affected \>= 1.0.0, \< 1.0.4; fixed 1.0.4, 1.1.3 (osv)
- NuGet `Microsoft.AspNetCore.Mvc.Cors`: affected \>= 1.0.0, \< 1.0.4; fixed 1.0.4, 1.1.3 (osv)
- NuGet `Microsoft.AspNetCore.Mvc.DataAnnotations`: affected \>= 1.0.0, \< 1.0.4; fixed 1.0.4, 1.1.3 (osv)
- NuGet `Microsoft.AspNetCore.Mvc.Formatters.Json`: affected \>= 1.0.0, \< 1.0.4; fixed 1.0.4, 1.1.3 (osv)
- NuGet `Microsoft.AspNetCore.Mvc.Formatters.Xml`: affected \>= 1.0.0, \< 1.0.4; fixed 1.0.4, 1.1.3 (osv)
- NuGet `Microsoft.AspNetCore.Mvc.Localization`: affected \>= 1.0.0, \< 1.0.4; fixed 1.0.4, 1.1.3 (osv)
- NuGet `Microsoft.AspNetCore.Mvc.Razor.Host`: affected \>= 1.0.0, \< 1.0.4; fixed 1.0.4, 1.1.3 (osv)
- NuGet `Microsoft.AspNetCore.Mvc.Razor`: affected \>= 1.0.0, \< 1.0.4; fixed 1.0.4, 1.1.3 (osv)
- NuGet `Microsoft.AspNetCore.Mvc.TagHelpers`: affected \>= 1.0.0, \< 1.0.4; fixed 1.0.4, 1.1.3 (osv)
- NuGet `Microsoft.AspNetCore.Mvc.ViewFeatures`: affected \>= 1.0.0, \< 1.0.4; fixed 1.0.4, 1.1.3 (osv)
- NuGet `Microsoft.AspNetCore.Mvc.WebApiCompatShim`: affected \>= 1.0.0, \< 1.0.4; fixed 1.0.4, 1.1.3 (osv)
- Microsoft Corporation ASP.NET Core: ASP.NET Core (cvelist)

## 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).

## Check your systems with an agent

Paste this into a coding agent:

```text
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.
```

## 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.

## References

- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2017-0256>
- vendor: <https://github.com/advisories/GHSA-j8f4-2w4p-mhjc>
- other: <https://github.com/aspnet/Announcements/issues/239>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2017-0256>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-j8f4-2w4p-mhjc> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2017-0256> · JSON: <https://flawdb.com/api/v1/entries/CVE-2017-0256>
