Skip to content

fix: patch CVE-2026-49451 (Microsoft.OpenApi stack overflow)#167

Merged
DutchJaFO merged 1 commit into
mainfrom
fix/cve-2026-49451-openapi
Jul 12, 2026
Merged

fix: patch CVE-2026-49451 (Microsoft.OpenApi stack overflow)#167
DutchJaFO merged 1 commit into
mainfrom
fix/cve-2026-49451-openapi

Conversation

@DutchJaFO

Copy link
Copy Markdown
Owner

Summary

  • Dependabot alert Add log level filter and timestamps to HA add-on logging #9 (GHSA-v5pm-xwqc-g5wc, CVE-2026-49451, high) flags Microsoft.OpenApi for a stack-overflow crash on circular schema references, transitively pulled in via Microsoft.AspNetCore.OpenApi 10.0.9.
  • An earlier fix (for the original alert Blazor UI links break under HA ingress (hardcoded absolute paths) #8) was made on the long-lived feature/data-import-sources branch and never merged to main — the vulnerability stayed live in production despite that branch's own CVE doc claiming "Closed". This PR re-applies the same fix directly against main.
  • Adds a direct Microsoft.OpenApi 2.7.5 PackageReference override in Quotinator.Api.csproj, forcing the patched version over the vulnerable transitive 2.0.0.
  • Quotinator only ever generates its own OpenAPI document — it never parses one from a request or external source — so the vulnerable code path was never reachable here regardless.
  • Updates the CVE doc (moved straight to archived/, matching the project's "patch available same day" precedent), docs/security/README.md, Quotinator.slnx, and the unreleased changelog section (en/nl/de lockstep + regenerated markdown).

Test plan

  • dotnet build --configuration Release — 0 warnings, 0 errors
  • dotnet test --configuration Release — 179/179 passing
  • dotnet list package --include-transitive confirms Microsoft.OpenApi resolves to 2.7.5
  • Dismiss Dependabot alert Add log level filter and timestamps to HA add-on logging #9 after merge, per the reason recorded in the CVE doc

🤖 Generated with Claude Code

An earlier fix for this CVE (Dependabot alert #8) was made on a
long-lived feature branch and never merged to main, so the
vulnerability stayed live in production; the advisory was since
widened to a second range and Dependabot re-raised it as alert #9.
Re-applies the same direct Microsoft.OpenApi 2.7.5 override on a
branch off main so it actually ships. Vulnerable path (parsing
untrusted OpenAPI documents) is unreachable in Quotinator, which only
generates its own spec. Verified via tests and dotnet list package.
@DutchJaFO
DutchJaFO merged commit 49593fa into main Jul 12, 2026
6 checks passed
@DutchJaFO
DutchJaFO deleted the fix/cve-2026-49451-openapi branch July 12, 2026 14:54
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