Skip to content

Commit 2f0ee5a

Browse files
authored
[extensions.aws & sampler.aws] Mitigate STJ vulnerabilities (open-telemetry#2197)
1 parent 81bcef5 commit 2f0ee5a

File tree

7 files changed

+28
-8
lines changed

7 files changed

+28
-8
lines changed

src/OpenTelemetry.Exporter.OneCollector/CHANGELOG.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,9 @@
55
* Drop support for .NET 6 as this target is no longer supported.
66
([#2123](https://github.com/open-telemetry/opentelemetry-dotnet-contrib/pull/2123))
77

8-
* Bumped `System.Text.Json` reference to `6.0.10` for runtimes older than
9-
`net8.0` and bumped to `8.0.5` on `net8.0` in response to
8+
* Bumped the `System.Text.Json` reference to `6.0.10` for runtimes older than
9+
`net8.0` and added a direct reference for `System.Text.Json` at `8.0.5` on
10+
`net8.0` in response to
1011
[CVE-2024-43485](https://msrc.microsoft.com/update-guide/vulnerability/CVE-2024-43485).
1112
([#2196](https://github.com/open-telemetry/opentelemetry-dotnet/pull/2196))
1213

src/OpenTelemetry.Extensions.AWS/CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@
22

33
## Unreleased
44

5+
* Bumped the `System.Text.Json` reference to `6.0.10` for runtimes older than
6+
`net8.0` and added a direct reference for `System.Text.Json` at `8.0.5` on
7+
`net8.0` in response to
8+
[CVE-2024-43485](https://msrc.microsoft.com/update-guide/vulnerability/CVE-2024-43485).
9+
([#2197](https://github.com/open-telemetry/opentelemetry-dotnet/pull/2197))
10+
511
## 1.3.0-beta.2
612

713
Released 2024-Sep-24

src/OpenTelemetry.Extensions.AWS/OpenTelemetry.Extensions.AWS.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
<TargetFrameworks Condition="$(OS) == 'Windows_NT'">$(TargetFrameworks);$(NetFrameworkMinimumSupportedVersion)</TargetFrameworks>
77
<Description>OpenTelemetry extensions for AWS.</Description>
88
<MinVerTagPrefix>Extensions.AWS-</MinVerTagPrefix>
9+
<SystemTextJsonMinimumRequiredPkgVer>$(SystemTextJsonLatestNet6OutOfBandPkgVer)</SystemTextJsonMinimumRequiredPkgVer>
910
</PropertyGroup>
1011

1112
<!-- Do not run Package Baseline Validation as this package has never released a stable version.
@@ -16,7 +17,6 @@
1617

1718
<ItemGroup>
1819
<PackageReference Include="OpenTelemetry" Version="$(OpenTelemetryCoreLatestVersion)" />
19-
<PackageReference Include="System.Text.Json" Version="6.0.0" Condition="'$(TargetFrameworkIdentifier)' != '.NETCoreApp'" />
2020
</ItemGroup>
2121

2222
<ItemGroup>

src/OpenTelemetry.Resources.AWS/CHANGELOG.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,9 @@
99
and add .NET Standard 2.0 target.
1010
([#2164](https://github.com/open-telemetry/opentelemetry-dotnet-contrib/pull/2164))
1111

12-
* Bumped `System.Text.Json` reference to `6.0.10` for runtimes older than
13-
`net8.0` and bumped to `8.0.5` on `net8.0` in response to
12+
* Bumped the `System.Text.Json` reference to `6.0.10` for runtimes older than
13+
`net8.0` and added a direct reference for `System.Text.Json` at `8.0.5` on
14+
`net8.0` in response to
1415
[CVE-2024-43485](https://msrc.microsoft.com/update-guide/vulnerability/CVE-2024-43485).
1516
([#2196](https://github.com/open-telemetry/opentelemetry-dotnet/pull/2196))
1617

src/OpenTelemetry.Sampler.AWS/CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,15 @@
55
* Drop support for .NET 6 as this target is no longer supported and add .NET 8 target.
66
([#2172](https://github.com/open-telemetry/opentelemetry-dotnet-contrib/pull/2172))
77

8+
* Bumped the `System.Text.Json` reference to `6.0.10` for runtimes older than
9+
`net8.0` and added a direct reference for `System.Text.Json` at `8.0.5` on
10+
`net8.0` in response to
11+
[CVE-2024-43485](https://msrc.microsoft.com/update-guide/vulnerability/CVE-2024-43485).
12+
([#2197](https://github.com/open-telemetry/opentelemetry-dotnet/pull/2197))
13+
14+
* Removed the `System.Net.Http` package reference from all targets.
15+
([#2197](https://github.com/open-telemetry/opentelemetry-dotnet/pull/2197))
16+
817
## 0.1.0-alpha.2
918

1019
Released 2024-Sep-09

src/OpenTelemetry.Sampler.AWS/OpenTelemetry.Sampler.AWS.csproj

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
<TargetFrameworks Condition="$(OS) == 'Windows_NT'">$(TargetFrameworks);$(NetFrameworkMinimumSupportedVersion)</TargetFrameworks>
77
<Description>OpenTelemetry remote sampler for AWS X-Ray.</Description>
88
<MinVerTagPrefix>Sampler.AWS-</MinVerTagPrefix>
9+
<SystemTextJsonMinimumRequiredPkgVer>$(SystemTextJsonLatestNet6OutOfBandPkgVer)</SystemTextJsonMinimumRequiredPkgVer>
910
</PropertyGroup>
1011

1112
<!-- Do not run Package Baseline Validation as this package has never released a stable version.
@@ -16,8 +17,10 @@
1617

1718
<ItemGroup>
1819
<PackageReference Include="OpenTelemetry" Version="$(OpenTelemetryCoreLatestVersion)" />
19-
<PackageReference Include="System.Net.Http" Version="4.3.4" />
20-
<PackageReference Include="System.Text.Json" Version="6.0.0" Condition="'$(TargetFrameworkIdentifier)' != '.NETCoreApp'" />
20+
</ItemGroup>
21+
22+
<ItemGroup Condition="'$(TargetFramework)' == '$(NetFrameworkMinimumSupportedVersion)'">
23+
<Reference Include="System.Net.Http" />
2124
</ItemGroup>
2225

2326
<ItemGroup>

test/OpenTelemetry.Instrumentation.Http.Tests/OpenTelemetry.Instrumentation.Http.Tests.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020
<ItemGroup>
2121
<PackageReference Include="OpenTelemetry.Exporter.InMemory" Version="$(OpenTelemetryExporterInMemoryPkgVer)" />
22-
<PackageReference Include="System.Text.Json" Version="8.0.5" />
22+
<PackageReference Include="System.Text.Json" Version="$(SystemTextJsonLatestNet8OutOfBandPkgVer)" />
2323
</ItemGroup>
2424

2525
<ItemGroup>

0 commit comments

Comments
 (0)