Skip to content

fix(deps): pin Microsoft.OpenApi to 2.7.5#8

Merged
JerrettDavis merged 1 commit into
mainfrom
fix/vuln-openapi
Jul 3, 2026
Merged

fix(deps): pin Microsoft.OpenApi to 2.7.5#8
JerrettDavis merged 1 commit into
mainfrom
fix/vuln-openapi

Conversation

@JerrettDavis

Copy link
Copy Markdown
Owner

Resolves high-severity vulnerability GHSA-v5pm-xwqc-g5wc in Microsoft.OpenApi 2.0.0 by pinning to version 2.7.5.

  • Added PackageReference to Microsoft.OpenApi 2.7.5 in TrainLoop.Api and TrainLoop.Api.Tests
  • Verified with dotnet list package --vulnerable (no vulnerabilities remain)
  • All tests pass (8 total: 7 in Core, 1 in Api)
  • Build succeeds with Release configuration

Resolves high-severity vulnerability in transitive dependency from Microsoft.AspNetCore.OpenApi by explicitly pinning Microsoft.OpenApi to version 2.7.5 in both TrainLoop.Api and TrainLoop.Api.Tests projects.

Co-Authored-By: Claude <noreply@anthropic.com>
@JerrettDavis
JerrettDavis merged commit 3f3c0ad into main Jul 3, 2026
3 checks passed
@JerrettDavis
JerrettDavis deleted the fix/vuln-openapi branch July 3, 2026 03:40
JerrettDavis added a commit that referenced this pull request Jul 21, 2026
…etCore.OpenApi 10.0.10

The nuget-dependencies group bump pulled Microsoft.OpenApi 3.9.0, whose
IOpenApiMediaType.Example API changed to read-only, breaking the
Microsoft.AspNetCore.OpenApi 10.0.10 source generator (CS0200). Pin
Microsoft.OpenApi back to the 2.7.5 line already known to be compatible
(previously pinned in #8 for GHSA-v5pm-xwqc-g5wc).

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
JerrettDavis added a commit that referenced this pull request Jul 21, 2026
* chore(deps): Bump the nuget-dependencies group with 6 updates

Bumps Microsoft.AspNetCore.OpenApi from 10.0.9 to 10.0.10
Bumps Microsoft.EntityFrameworkCore from 10.0.9 to 10.0.10
Bumps Microsoft.EntityFrameworkCore.Design from 10.0.9 to 10.0.10
Bumps Microsoft.Extensions.Hosting from 10.0.9 to 10.0.10
Bumps Microsoft.NET.Test.Sdk from 18.7.0 to 18.8.1
Bumps Microsoft.OpenApi from 2.7.5 to 3.9.0

---
updated-dependencies:
- dependency-name: Microsoft.AspNetCore.OpenApi
  dependency-version: 10.0.10
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: nuget-dependencies
- dependency-name: Microsoft.EntityFrameworkCore
  dependency-version: 10.0.10
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: nuget-dependencies
- dependency-name: Microsoft.EntityFrameworkCore.Design
  dependency-version: 10.0.10
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: nuget-dependencies
- dependency-name: Microsoft.Extensions.Hosting
  dependency-version: 10.0.10
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: nuget-dependencies
- dependency-name: Microsoft.NET.Test.Sdk
  dependency-version: 18.8.1
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: nuget-dependencies
- dependency-name: Microsoft.NET.Test.Sdk
  dependency-version: 18.8.1
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: nuget-dependencies
- dependency-name: Microsoft.OpenApi
  dependency-version: 3.9.0
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: nuget-dependencies
- dependency-name: Microsoft.OpenApi
  dependency-version: 3.9.0
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: nuget-dependencies
...

Signed-off-by: dependabot[bot] <support@github.com>

* fix(deps): pin Microsoft.OpenApi to 2.7.5 to resolve CS0200 with AspNetCore.OpenApi 10.0.10

The nuget-dependencies group bump pulled Microsoft.OpenApi 3.9.0, whose
IOpenApiMediaType.Example API changed to read-only, breaking the
Microsoft.AspNetCore.OpenApi 10.0.10 source generator (CS0200). Pin
Microsoft.OpenApi back to the 2.7.5 line already known to be compatible
(previously pinned in #8 for GHSA-v5pm-xwqc-g5wc).

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>

* docs(deps): document Microsoft.OpenApi 2.7.5 pin and ignore 3.x in Dependabot

Explain why the pin exists (AspNetCore.OpenApi 10.0.x source generator is
incompatible with OpenApi 3.x's read-only IOpenApiMediaType.Example) and add
a Dependabot ignore rule so future bumps don't silently reintroduce CS0200.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: JerrettDavis <mxjerrett@gmail.com>
Co-authored-by: Claude Sonnet 5 <noreply@anthropic.com>
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