Skip to content

Commit 90babd7

Browse files
Pin the patched System.Text.Json under the notebook extension (#2116)
Microsoft.DotNet.Interactive 1.0.0-beta.23611.1 brings System.Text.Json 8.0.0 into AngouriMath.Interactive, with two high severity advisories, both denials of service: GHSA-hh2w-p6rv-4g7w and GHSA-8g4q-xg66-9fp4. A direct reference to 8.0.6, the patched build on the same major line, pulls it forward, as #797 did for System.Security.Cryptography.Xml under the terminal. Not an upgrade of Microsoft.DotNet.Interactive, although its newest beta depends on System.Text.Json 10.0.0: the notebook host supplies that package, and building against a newer one than the host's is how FSharp.Core 10.1 hung a kernel in #2108. dotnet list --vulnerable --include-transitive goes from two advisories to none, the build has no warnings, and the Interactive wrapper tests pass, 19 with 1 skipped. Packed with AngouriMath and AngouriMath.FSharp at a dev version to a local feed and loaded in the binder image (dotnet-interactive 1.0.712001), the F# sample runs all 39 of its code cells and a C# kernel loads the extension and runs its cells, with no errors. The System.Text.Json loaded is the host's own, 10.0.0.0 from the shared framework. Part of #542 Claude-Session: https://claude.ai/code/session_012sonx8iAspMiwRwokT1Ura Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
1 parent 075d41c commit 90babd7

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

‎Sources/Wrappers/AngouriMath.Interactive/AngouriMath.Interactive.fsproj‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,14 @@
5151
against rather than the SDK's: 8.0.403 is Plotly.NET's floor, and 10.1 hung a C# kernel under a
5252
host carrying 10.0. https://github.com/asc-community/AngouriMath/issues/2108 -->
5353
<PackageReference Update="FSharp.Core" Version="8.0.403" />
54+
<!-- Pinned to pull the patched build of a transitive dependency forward. Microsoft.DotNet.Interactive
55+
1.0.0-beta.23611.1 brings System.Text.Json 8.0.0, which has two high severity advisories (NU1903),
56+
GHSA-hh2w-p6rv-4g7w and GHSA-8g4q-xg66-9fp4; 8.0.6 is the patched build on the same major line.
57+
Not an upgrade of that package: the host supplies it, and building against a newer one than the
58+
host's is what hung a kernel through FSharp.Core, above. Remove this line once the
59+
Microsoft.DotNet.Interactive reference moves to a build whose own dependency is patched.
60+
https://github.com/asc-community/AngouriMath/issues/542 -->
61+
<PackageReference Include="System.Text.Json" Version="8.0.6" />
5462
</ItemGroup>
5563

5664
<ItemGroup>

0 commit comments

Comments
 (0)