CVE-2019-1302: Microsoft.AspNetCore.SpaServices Elevation Of Privilege Vulnerability
MODERATECVE-2019-1302 is a MODERATE elevation of privilege vulnerability (General Security Weakness) affecting Microsoft.AspNetCore.SpaServices libraries in the NuGet ecosystem. The issue involves elevation of privilege in asp.net core. Remediation is available by upgrading affected packages to version 2.2.7, 2.1.13.
CVE-2019-1302 at a Glance
How to Fix CVE-2019-1302
To remediate this vulnerability, upgrade all affected Microsoft.AspNetCore.SpaServices dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade Microsoft.AspNetCore.SpaServices to 2.2.7
Upgrade Microsoft.AspNetCore.SpaServices to 2.1.13
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for Microsoft.AspNetCore.SpaServices
How to Check if You Are Affected
To determine whether your application is affected by CVE-2019-1302, inspect your project dependencies for Microsoft.AspNetCore.SpaServices:
inspect dependencies for Microsoft.AspNetCore.SpaServices
Analyze the terminal output to locate any version of Microsoft.AspNetCore.SpaServices in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.2.7), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under General Security Weakness. In Microsoft.AspNetCore.SpaServices, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2019-1302 Affected Microsoft.AspNetCore.SpaServices Versions
2 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
Microsoft.AspNetCore.SpaServices
|
NuGet |
≥ 2.2.0
< 2.2.7
|
2.2.7
|
|
Microsoft.AspNetCore.SpaServices
|
NuGet |
≥ 2.1.0
< 2.1.13
|
2.1.13
|
References
Frequently Asked Questions
What is CVE-2019-1302?
Which Microsoft.AspNetCore.SpaServices versions are affected?
What version fixes CVE-2019-1302?
Is Microsoft.AspNetCore.SpaServices affected?
What CWE is associated with CVE-2019-1302?
How can I check NuGet dependencies for CVE-2019-1302?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-xr8f-59pp-rxxh",
"modified" : "2022-07-07T23:10:41Z",
"published" : "2022-05-24T22:00:33Z",
"aliases" : [ "CVE-2019-1302" ],
"summary" : "Elevation of privilege in ASP.NET Core",
"details" : "An elevation of privilege vulnerability exists when a ASP.NET Core web application, created using vulnerable project templates, fails to properly sanitize web requests, aka 'ASP.NET Core Elevation Of Privilege Vulnerability'.",
"severity" : [ ],
"affected" : [ {
"package" : {
"ecosystem" : "NuGet",
"name" : "Microsoft.AspNetCore.SpaServices"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "2.2.0"
}, {
"fixed" : "2.2.7"
} ]
} ]
}, {
"package" : {
"ecosystem" : "NuGet",
"name" : "Microsoft.AspNetCore.SpaServices"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "2.1.0"
}, {
"fixed" : "2.1.13"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2019-1302"
}, {
"type" : "WEB",
"url" : "https://github.com/aspnet/Announcements/issues/384"
}, {
"type" : "WEB",
"url" : "https://github.com/github/advisory-database/issues/302"
}, {
"type" : "WEB",
"url" : "https://portal.msrc.microsoft.com/en-US/security-guidance/advisory/CVE-2019-1302"
} ],
"database_specific" : {
"cwe_ids" : [ ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2022-07-07T23:10:41Z",
"nvd_published_at" : "2019-09-11T22:15:00Z"
}
}