CVE-2019-1302: Microsoft.AspNetCore.SpaServices Elevation Of Privilege Vulnerability

MODERATE
Advisory Identifier: GHSA-xr8f-59pp-rxxh
Published
Advisory Summary

CVE-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

CVE Identifier CVE-2019-1302
GHSA Identifier GHSA-xr8f-59pp-rxxh
Severity MODERATE
CVSS v3.1 Base Score N/A
CWE Classification General Security Weakness
Affected Product Microsoft.AspNetCore.SpaServices
Package Ecosystem NuGet
Published Date
Last Updated

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.

Microsoft.AspNetCore.SpaServices fixed: 2.2.7
Upgrade Microsoft.AspNetCore.SpaServices to 2.2.7
Microsoft.AspNetCore.SpaServices fixed: 2.1.13
Upgrade Microsoft.AspNetCore.SpaServices to 2.1.13
Verify Direct and Transitive Dependencies

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

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

CVE-2019-1302 Affected Microsoft.AspNetCore.SpaServices Versions

2 component(s)
Fixed Versions:
2.2.72.1.13
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?
CVE-2019-1302 is a security vulnerability in Microsoft.AspNetCore.SpaServices involving Elevation of privilege in ASP.NET Core under General Security Weakness.
Which Microsoft.AspNetCore.SpaServices versions are affected?
Affected versions include releases prior to 2.2.7, 2.1.13 across affected packages: Microsoft.AspNetCore.SpaServices.
What version fixes CVE-2019-1302?
Upgrading to 2.2.7, 2.1.13 (or the latest patched release for your respective branch) resolves the vulnerability.
Is Microsoft.AspNetCore.SpaServices affected?
Yes, Microsoft.AspNetCore.SpaServices is affected in releases prior to 2.2.7, 2.1.13. Upgrade your dependency to 2.2.7, 2.1.13 or later.
What CWE is associated with CVE-2019-1302?
CVE-2019-1302 is classified under General Security Weakness.
How can I check NuGet dependencies for CVE-2019-1302?
Run the dependency tree command: 'inspect dependencies for Microsoft.AspNetCore.SpaServices'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "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"
  }
}