Skip to content

fix: pin AngleSharp to 1.5.2 to clear GHSA-pgww-w46g-26qg#514

Merged
koniecdev merged 1 commit into
mainfrom
fix/anglesharp-nuget-audit-CS
Jul 20, 2026
Merged

fix: pin AngleSharp to 1.5.2 to clear GHSA-pgww-w46g-26qg#514
koniecdev merged 1 commit into
mainfrom
fix/anglesharp-nuget-audit-CS

Conversation

@koniecdev

Copy link
Copy Markdown
Owner

Summary

  • GitHub's advisory database just flagged AngleSharp 1.4.0 (transitively pulled by bunit 2.7.2) as moderate severity (GHSA-pgww-w46g-26qg). This repo's NuGetAuditLevel=moderate turns that into a restore error, which now fails on every branch including main (confirmed by reproducing it locally against main, and by CI failures on unrelated PRs Bump Npgsql.EntityFrameworkCore.PostgreSQL and Serilog #510/Bump NSubstitute from 5.3.0 to 6.0.0 #511).
  • Pins AngleSharp to the first patched release (1.5.2) via central package management, with a direct PackageReference in Frontend.Tests.Unit to force the fixed version into the graph — the same idiom already used for the Microsoft.OpenApi override.

Test plan

  • dotnet build tests/LotroKoniecDev.Frontend.Tests.Unit -c Release — 0 warnings, 0 errors
  • dotnet test tests/LotroKoniecDev.Frontend.Tests.Unit -c Release — 414/414 passed (bUnit still works against the bumped AngleSharp)
  • dotnet build LotroKoniecDev.slnx -c Release — full solution, 0 warnings, 0 errors

🤖 Generated with Claude Code

https://claude.ai/code/session_01EjhXzREvfEREaP8bw6HJ43

GitHub's advisory database just flagged AngleSharp 1.4.0 (pulled
transitively by bunit 2.7.2) as moderate severity. NuGetAuditLevel is
moderate here, so restore now fails as an error on every branch,
including main. Pin the first patched release via central package
management, following the same direct-PackageReference override
pattern already used for Microsoft.OpenApi.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EjhXzREvfEREaP8bw6HJ43
@koniecdev
koniecdev merged commit 8de0c3b into main Jul 20, 2026
13 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.

1 participant