Skip to content

Pin patched transitive dependencies in test project to remediate xUnit 2.4.1 vulnerability path - #256

Merged
grimley517 merged 3 commits into
mainfrom
copilot/fix-xunit-vulnerability
Jul 6, 2026
Merged

Pin patched transitive dependencies in test project to remediate xUnit 2.4.1 vulnerability path#256
grimley517 merged 3 commits into
mainfrom
copilot/fix-xunit-vulnerability

Conversation

Copilot AI commented May 30, 2026

Copy link
Copy Markdown
Contributor

The issue flags vulnerable transitive packages pulled through xunit 2.4.1 (System.Text.RegularExpressions and System.Net.Http). This change remediates that path by explicitly pinning safe package versions in the test project.

  • Dependency remediation

    • Added direct PackageReference entries in src/DecimalChecker.Tests/DecimalChecker.Tests.csproj:
      • System.Text.RegularExpressions4.3.1
      • System.Net.Http4.3.4
    • Kept existing xUnit/test SDK versions unchanged; only override vulnerable transitive resolution.
  • Scope

    • Single-file change, limited to test project dependency graph.
    • No production code changes.
<ItemGroup>
  <PackageReference Include="System.Net.Http" Version="4.3.4" />
  <PackageReference Include="System.Text.RegularExpressions" Version="4.3.1" />
</ItemGroup>

Copilot AI changed the title [WIP] Fix vulnerability in xunit.2.4.1.nupkg Pin patched transitive dependencies in test project to remediate xUnit 2.4.1 vulnerability path May 30, 2026
Copilot AI requested a review from grimley517 May 30, 2026 06:58
@grimley517
grimley517 marked this pull request as ready for review July 6, 2026 05:30
@grimley517
grimley517 merged commit 90184ca into main Jul 6, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

xunit.2.4.1.nupkg: 2 vulnerabilities (highest severity is: 7.5)

2 participants