Microsoft.Data.SqlClient vulnerabilities

The current data provider for SQL Server and Azure SQL databases. This has replaced System.Data.SqlClient. These classes provide access to SQL and encapsulate database-specific protocols, including tabular data stream (TDS). Commonly Used Types: Microsoft.Data.SqlClient.SqlConnection Microsoft.Data.SqlClient.SqlException Microsoft.Data.SqlClient.SqlParameter Microsoft.Data.SqlClient.SqlDataReader Microsoft.Data.SqlClient.SqlCommand Microsoft.Data.SqlClient.SqlTransaction Microsoft.Data.SqlClient.SqlParameterCollection Microsoft.Data.SqlClient.SqlClientFactory When using NuGet 3.x this package requires at least version 3.4.

Registry
NuGet
Latest
7.1.2
License
MIT

2 known advisories

The latest version, 7.1.2, is not affected by any of them. Projects on older versions may be.

Update to the latest version:dotnet add package Microsoft.Data.SqlClient --version 7.1.2

Is your project on an affected Microsoft.Data.SqlClient?

Private repo? Upload its lockfile instead, or connect GitHub to check every repo.

Look after several .NET apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie

Security advisories for Microsoft.Data.SqlClient

  • HighCVE-2024-0056GHSA-98g6-xh36-x2p79 Jan 2024

    Microsoft.Data.SqlClient and System.Data.SqlClient vulnerable to SQL Data Provider Security Feature Bypass

    Affected
    <2.1.7 · >=3.0.0 <3.1.5 · >=4.0.0 <4.0.5 · >=5.0.0 <5.1.3
    Fixed in
    2.1.7, 3.1.5, 4.0.5, 5.1.3
  • MediumCVE-2022-41064GHSA-8g2p-5pqh-5jmc8 Nov 2022

    .NET Information Disclosure Vulnerability

    Affected
    <1.1.4 · >=2.0.0 <2.1.2
    Fixed in
    1.1.4, 2.1.2

Is your Microsoft.Data.SqlClient version vulnerable?

Which of your client projects still run an old Microsoft.Data.SqlClient?

NPMscan reads the packages.lock.json and .csproj files in every GitHub repo you pick and checks each installed version against these advisories, including the packages your packages pull in. Each finding comes with the command that fixes it.

Other NuGet packages

Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily. Package details from the NuGet registry.