Mock and core generator test restores report vulnerable System.Security.Cryptography.Pkcs versions
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 65/100
Research direction
Start with tests/TUnit.Mocks.SourceGenerator.Tests/TUnit.Mocks.SourceGenerator.Tests.csproj and tests/TUnit.Core.SourceGenerator.Tests/TUnit.Core.SourceGenerator.Tests.csproj. Run dotnet restore on each and run dotnet list package --include-transitive to see which parent package pulls in System.Security.Cryptography.Pkcs. Done when restore no longer reports NU1902 for GHSA-2fmv-rv2c-59x7, the target frameworks are unchanged, and both generator test suites pass.
Written by the indexing model from the issue text.
Description
Summary
Restoring the mock and core source generator test projects reports NU1902 for transitive System.Security.Cryptography.Pkcs versions 9.0.6 and 8.0.1 respectively. The dependency graph should resolve a version without the reported moderate-severity vulnerability so local validation and CI do not continue using the vulnerable package.
Reproduction
At commit ad542eb83d3c675189715094dfd4b10abfb02338, with .NET SDK 10.0.403 on macOS arm64, run:
dotnet restore tests/TUnit.Mocks.SourceGenerator.Tests/TUnit.Mocks.SourceGenerator.Tests.csproj
dotnet restore tests/TUnit.Core.SourceGenerator.Tests/TUnit.Core.SourceGenerator.Tests.csproj
Expected and actual
Expected: no known-vulnerability warning from the restored dependency graph.
Actual: NU1902 reports System.Security.Cryptography.Pkcs 9.0.6 for the mock generator tests and 8.0.1 for the core generator tests, with advisory https://github.com/advisories/GHSA-2fmv-rv2c-59x7.
Acceptance criteria
- Both generator test dependency graphs resolve patched versions without GHSA-2fmv-rv2c-59x7 warnings.
- Verify restore for the supported target frameworks of both projects and run the affected generator suites.
- Preserve the existing supported target frameworks.
Please update both dependency graphs and verify restore no longer reports this advisory.
- Dominant language
- C#
- Stars
- 4k
- Forks
- 139
- Avg merge
- 7h 54m
- Merged PRs (30d)
- 359
Getting set up
Starts the project's dev container in your browser, under your own GitHub account.
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from thomhurst/TUnit
-
bug P3
Difficulty 2/5 1-3 hours Newbie friendliness 73/100
thomhurst/TUnit#7585 · 1 comment ·
Maintainers usually reply within 1 day
-
documentation P3
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
thomhurst/TUnit#7444 · 1 comment ·
Maintainers usually reply within 1 day
-
enhancement P3 performance
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
thomhurst/TUnit#7380 · 2 comments ·
Maintainers usually reply within 1 day
-
bug github_actions P2
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
thomhurst/TUnit#7229 · 1 comment ·
Maintainers usually reply within 1 day
-
bug dependencies javascript P2
Difficulty 3/5 1-2 days Newbie friendliness 56/100
thomhurst/TUnit#7636 · 1 comment ·
Maintainers usually reply within 1 day
Similar issues
-
Difficulty 1/5 Under an hour Newbie friendliness 80/100
Unity-Technologies/unity-agent-plugin#118 ·
Maintainers usually reply within 1 day
-
The Recommended preset turns on Import Uno DSP, which only works with the Material themePossibly taken @agneszitte claimed this today. Open
Difficulty 1/5 Under an hour Newbie friendliness 92/100
unoplatform/uno.templates#2388 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 77/100
eyalgolan/statecraft-israel#2732 ·
Maintainers usually reply within 1 day
-
要トリアージ
Difficulty 2/5 1-3 hours Newbie friendliness 64/100
Maintainers usually reply within 1 day
-
kind/chore status/draft
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
Altinn/altinn-events#1158 ·
Maintainers usually reply within 1 day