Skip to content

Commit

Permalink
Merge pull request dotnet#3679 from StephenBonikowsky/stebon/master/c…
Browse files Browse the repository at this point in the history
…omponentgovernancevulnerabilities

Fix component dependency vulnerabilities.
  • Loading branch information
StephenBonikowsky authored Jun 10, 2019
2 parents 475fd2b + f449a31 commit d73646c
Show file tree
Hide file tree
Showing 5 changed files with 52 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
<PropertyGroup Condition="'$(IsHarvesting)' == 'true'">
<IsPartialFacadeAssembly>false</IsPartialFacadeAssembly>
<HarvestFromPackage>true</HarvestFromPackage>
<NetStandardImplicitPackageVersion Condition="'$(TargetFramework)' == 'netstandard1.1' or '$(TargetFramework)' == 'netstandard1.3'">2.0.3</NetStandardImplicitPackageVersion>
</PropertyGroup>

<!-- the following represent dependencies copied from the old package -->
Expand All @@ -32,15 +33,23 @@
<Reference Include="System.ServiceModel" />
</ItemGroup>
<ItemGroup Condition="'$(TargetFramework)' == 'netcore50'">
<PackageReference Include="NETStandard.Library" Version="1.6.1" />
<PackageReference Include="NETStandard.Library" Version="2.0.3" />
<PackageReference Include="System.Private.ServiceModel" Version="4.5.3" ExcludeAssets="Compile" />
<PackageReference Include="System.ServiceModel.Primitives" Version="4.5.3" />
<!--S.Private.ServiceModel indirectly pulls in these two packages of version 4.3.0 by way of the harvest project
Explicitly referencing them from here to avoid a security vulnerability in the 4.3.0 version.-->
<PackageReference Include="System.Net.Security" Version="4.3.1" />
<PackageReference Include="System.Net.WebSockets.Client" Version="4.3.1" />
</ItemGroup>
<ItemGroup Condition="'$(TargetFramework)' == 'netstandard1.1'">
<PackageReference Include="System.ServiceModel.Primitives" Version="4.5.3" />
</ItemGroup>
<ItemGroup Condition="'$(TargetFramework)' == 'netstandard1.3'">
<PackageReference Include="System.Private.ServiceModel" version="4.5.3" ExcludeAssets="Compile" />
<PackageReference Include="System.ServiceModel.Primitives" Version="4.5.3" />
<!--S.Private.ServiceModel indirectly pulls in these two packages of version 4.3.0 by way of the harvest project
Explicitly referencing them from here to avoid a security vulnerability in the 4.3.0 version.-->
<PackageReference Include="System.Net.Security" Version="4.3.1" />
<PackageReference Include="System.Net.WebSockets.Client" Version="4.3.1" />
</ItemGroup>
</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
<PropertyGroup Condition="'$(IsHarvesting)' == 'true'">
<IsPartialFacadeAssembly>false</IsPartialFacadeAssembly>
<HarvestFromPackage>true</HarvestFromPackage>
<NetStandardImplicitPackageVersion Condition="'$(TargetFramework)' == 'netstandard1.0' or '$(TargetFramework)' == 'netstandard1.1' or '$(TargetFramework)' == 'netstandard1.3'">2.0.3</NetStandardImplicitPackageVersion>
</PropertyGroup>

<!-- the following represent dependencies copied from the old package -->
Expand All @@ -36,11 +37,15 @@
<Reference Include="System.ServiceModel" />
</ItemGroup>
<ItemGroup Condition="'$(TargetFramework)' == 'netcore50'">
<PackageReference Include="NETStandard.Library" Version="1.6.1" />
<PackageReference Include="NETStandard.Library" Version="2.0.3" />
<PackageReference Include="System.Net.WebHeaderCollection" Version="4.3.0" />
<PackageReference Include="System.Private.ServiceModel" Version="4.5.3" ExcludeAssets="Compile" />
<PackageReference Include="System.Runtime.Serialization.Xml" Version="4.3.0" />
<PackageReference Include="System.ServiceModel.Primitives" Version="4.5.3" />
<!--S.Private.ServiceModel indirectly pulls in these two packages of version 4.3.0 by way of the harvest project
Explicitly referencing them from here to avoid a security vulnerability in the 4.3.0 version.-->
<PackageReference Include="System.Net.Security" Version="4.3.1" />
<PackageReference Include="System.Net.WebSockets.Client" Version="4.3.1" />
</ItemGroup>
<ItemGroup Condition="'$(TargetFramework)' == 'netstandard1.0'">
<PackageReference Include="System.Net.Requests" Version="4.3.0" />
Expand All @@ -56,5 +61,9 @@
<PackageReference Include="System.Private.ServiceModel" version="4.5.3" ExcludeAssets="Compile" />
<PackageReference Include="System.Runtime.Serialization.Xml" Version="4.3.0" />
<PackageReference Include="System.ServiceModel.Primitives" Version="4.5.3" />
<!--S.Private.ServiceModel indirectly pulls in these two packages of version 4.3.0 by way of the harvest project
Explicitly referencing them from here to avoid a security vulnerability in the 4.3.0 version.-->
<PackageReference Include="System.Net.Security" Version="4.3.1" />
<PackageReference Include="System.Net.WebSockets.Client" Version="4.3.1" />
</ItemGroup>
</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
<PropertyGroup Condition="'$(IsHarvesting)' == 'true'">
<IsPartialFacadeAssembly>false</IsPartialFacadeAssembly>
<HarvestFromPackage>true</HarvestFromPackage>
<NetStandardImplicitPackageVersion Condition="'$(TargetFramework)' == 'netstandard1.1' or '$(TargetFramework)' == 'netstandard1.3'">2.0.3</NetStandardImplicitPackageVersion>
</PropertyGroup>

<!-- the following represent dependencies copied from the old package -->
Expand All @@ -37,10 +38,14 @@
<Reference Include="System.ServiceModel" />
</ItemGroup>
<ItemGroup Condition="'$(TargetFramework)' == 'netcore50'">
<PackageReference Include="NETStandard.Library" Version="1.6.1" />
<PackageReference Include="NETStandard.Library" Version="2.0.3" />
<PackageReference Include="System.Private.ServiceModel" Version="4.5.3" ExcludeAssets="Compile" />
<PackageReference Include="System.Runtime.Serialization.Xml" Version="4.3.0" />
<PackageReference Include="System.ServiceModel.Primitives" Version="4.5.3" />
<!--S.Private.ServiceModel indirectly pulls in these two packages of version 4.3.0 by way of the harvest project
Explicitly referencing them from here to avoid a security vulnerability in the 4.3.0 version.-->
<PackageReference Include="System.Net.Security" Version="4.3.1" />
<PackageReference Include="System.Net.WebSockets.Client" Version="4.3.1" />
</ItemGroup>
<ItemGroup Condition="'$(TargetFramework)' == 'netstandard1.1'">
<PackageReference Include="System.Runtime.Serialization.Xml" Version="4.3.0" />
Expand All @@ -50,5 +55,9 @@
<PackageReference Include="System.Private.ServiceModel" version="4.5.3" ExcludeAssets="Compile" />
<PackageReference Include="System.Runtime.Serialization.Xml" Version="4.3.0" />
<PackageReference Include="System.ServiceModel.Primitives" Version="4.5.3" />
<!--S.Private.ServiceModel indirectly pulls in these two packages of version 4.3.0 by way of the harvest project
Explicitly referencing them from here to avoid a security vulnerability in the 4.3.0 version.-->
<PackageReference Include="System.Net.Security" Version="4.3.1" />
<PackageReference Include="System.Net.WebSockets.Client" Version="4.3.1" />
</ItemGroup>
</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,15 @@
<PropertyGroup Condition="'$(IsHarvesting)' == 'true'">
<IsPartialFacadeAssembly>false</IsPartialFacadeAssembly>
<HarvestFromPackage>true</HarvestFromPackage>
<NetStandardImplicitPackageVersion Condition="'$(TargetFramework)' == 'netstandard1.0' or '$(TargetFramework)' == 'netstandard1.1' or '$(TargetFramework)' == 'netstandard1.3'">2.0.3</NetStandardImplicitPackageVersion>
</PropertyGroup>

<!-- the following represent dependencies copied from the old package -->
<ItemGroup Condition="'$(TargetFramework)' == 'net45'">
<Reference Include="System.ServiceModel" />
</ItemGroup>
<ItemGroup Condition="'$(TargetFramework)' == 'net46'">
<PackageReference Include="NETStandard.Library" Version="1.6.1" />
<PackageReference Include="NETStandard.Library" Version="2.0.3" />
<Reference Include="System.IdentityModel" />
<Reference Include="System.ServiceModel" />
</ItemGroup>
Expand All @@ -42,12 +43,16 @@
<Reference Include="System.ServiceModel" />
</ItemGroup>
<ItemGroup Condition="'$(TargetFramework)' == 'netcore50'">
<PackageReference Include="NETStandard.Library" Version="1.6.1" />
<PackageReference Include="NETStandard.Library" Version="2.0.3" />
<PackageReference Include="System.ComponentModel.EventBasedAsync" Version="4.3.0" />
<PackageReference Include="System.Private.ServiceModel" Version="4.5.3" ExcludeAssets="Compile" />
<PackageReference Include="System.Private.ServiceModel" Version="4.5.3" ExcludeAssets="Compile" PrivateAssets="contentfiles;analyzers;build;compile" />
<PackageReference Include="System.Runtime.Serialization.Primitives" Version="4.3.0" />
<PackageReference Include="System.Runtime.Serialization.Xml" Version="4.3.0" />
<PackageReference Include="System.Security.Principal" Version="4.3.0" />
<!--S.Private.ServiceModel indirectly pulls in these two packages of version 4.3.0 by way of the harvest project
Explicitly referencing them from here to avoid a security vulnerability in the 4.3.0 version.-->
<PackageReference Include="System.Net.Security" Version="4.3.1" />
<PackageReference Include="System.Net.WebSockets.Client" Version="4.3.1" />
</ItemGroup>
<ItemGroup Condition="'$(TargetFramework)' == 'netstandard1.0'">
<PackageReference Include="System.ComponentModel.EventBasedAsync" Version="4.3.0" />
Expand All @@ -66,5 +71,9 @@
<PackageReference Include="System.Runtime.Serialization.Primitives" Version="4.3.0" />
<PackageReference Include="System.Runtime.Serialization.Xml" Version="4.3.0" />
<PackageReference Include="System.Security.Principal" Version="4.3.0" />
<!--S.Private.ServiceModel indirectly pulls in these two packages of version 4.3.0 by way of the harvest project
Explicitly referencing them from here to avoid a security vulnerability in the 4.3.0 version.-->
<PackageReference Include="System.Net.Security" Version="4.3.1" />
<PackageReference Include="System.Net.WebSockets.Client" Version="4.3.1" />
</ItemGroup>
</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
<PropertyGroup Condition="'$(IsHarvesting)' == 'true'">
<IsPartialFacadeAssembly>false</IsPartialFacadeAssembly>
<HarvestFromPackage>true</HarvestFromPackage>
<NetStandardImplicitPackageVersion Condition="'$(TargetFramework)' == 'netstandard1.0' or '$(TargetFramework)' == 'netstandard1.1' or '$(TargetFramework)' == 'netstandard1.3'">2.0.3</NetStandardImplicitPackageVersion>
</PropertyGroup>

<!-- the following represent dependencies copied from the old package -->
Expand All @@ -32,10 +33,14 @@
<Reference Include="System.ServiceModel" />
</ItemGroup>
<ItemGroup Condition="'$(TargetFramework)' == 'netcore50'">
<PackageReference Include="NETStandard.Library" Version="1.6.1" />
<PackageReference Include="NETStandard.Library" Version="2.0.3" />
<PackageReference Include="System.Private.ServiceModel" Version="4.5.3" ExcludeAssets="Compile" />
<PackageReference Include="System.Runtime.Serialization.Xml" Version="4.3.0" />
<PackageReference Include="System.ServiceModel.Primitives" Version="4.5.3" />
<!--S.Private.ServiceModel indirectly pulls in these two packages of version 4.3.0 by way of the harvest project
Explicitly referencing them from here to avoid a security vulnerability in the 4.3.0 version.-->
<PackageReference Include="System.Net.Security" Version="4.3.1" />
<PackageReference Include="System.Net.WebSockets.Client" Version="4.3.1" />
</ItemGroup>
<ItemGroup Condition="'$(TargetFramework)' == 'netstandard1.0'">
<PackageReference Include="System.ServiceModel.Primitives" Version="4.5.3" />
Expand All @@ -48,5 +53,9 @@
<PackageReference Include="System.Private.ServiceModel" version="4.5.3" ExcludeAssets="Compile" />
<PackageReference Include="System.Runtime.Serialization.Xml" Version="4.3.0" />
<PackageReference Include="System.ServiceModel.Primitives" Version="4.5.3" />
<!--S.Private.ServiceModel indirectly pulls in these two packages of version 4.3.0 by way of the harvest project
Explicitly referencing them from here to avoid a security vulnerability in the 4.3.0 version.-->
<PackageReference Include="System.Net.Security" Version="4.3.1" />
<PackageReference Include="System.Net.WebSockets.Client" Version="4.3.1" />
</ItemGroup>
</Project>

0 comments on commit d73646c

Please sign in to comment.