Skip to content

build(deps): bump github.com/oapi-codegen/oapi-codegen/v2 from 2.7.0 to 2.7.1 - #245

Open
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/go_modules/github.com/oapi-codegen/oapi-codegen/v2-2.7.1
Open

build(deps): bump github.com/oapi-codegen/oapi-codegen/v2 from 2.7.0 to 2.7.1#245
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/go_modules/github.com/oapi-codegen/oapi-codegen/v2-2.7.1

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Jul 17, 2026

Copy link
Copy Markdown
Contributor

Bumps github.com/oapi-codegen/oapi-codegen/v2 from 2.7.0 to 2.7.1.

Release notes

Sourced from github.com/oapi-codegen/oapi-codegen/v2's releases.

Security fix for Go code injection

This is a security fix for a code injection vulnerability in v2.7.0, please see:

GHSA-rjwr-m7qx-3fjr

[!NOTE] A vulnerability like this requires that it is missed in code review and that you then call the malicious method.

Using an init() function could be enough to not require a direct call to the code, and instead rely on you importing the package, but either way, code review should be performed before any oapi-codegen generated code is executed.

We strongly recommend all users to be reviewing changes to their generated code before they execute anything within it, to protect against supply chain attacks or malicious injected code.

This is also why we recommend oapi-codegen generated code is committed to source control.

We're more strict about escaping strings passed into the OpenAPI specification, so that people can't inject Go code into generated code.

The problem was that it was possible to craft a description for server URL's which would emit arbitrary Go code, so if an attacker controlled your specification, they could inject Go code into your generated code which could do something malicious.

Commits

@dependabot dependabot Bot added dependencies Pull requests that update a dependency file go Pull requests that update go code labels Jul 17, 2026
@github-actions

github-actions Bot commented Jul 17, 2026

Copy link
Copy Markdown

go-test-coverage report

Total test coverage: 72.5% (2791/3852)

Test coverage has changed in the current files, with 111 lines missing coverage.
  file:						uncovered:	current coverage:	base coverage:
  internal/auth/apikey/authenticator.go		 28		80.3% (53/66)		 / 
  internal/auth/identity.go			 15		78.0% (32/41)		 / 
  internal/state/apikey.go			 24		82.6% (38/46)		 / 
  internal/state/auth.go			  3		75.0% (3/4)		 / 
  internal/state/role.go			 29		79.6% (43/54)		 / 
  internal/state/user.go			 12		83.3% (20/24)		 / 

@dependabot
dependabot Bot force-pushed the dependabot/go_modules/github.com/oapi-codegen/oapi-codegen/v2-2.7.1 branch from 05dfa2e to 667eb91 Compare July 28, 2026 06:39
Bumps [github.com/oapi-codegen/oapi-codegen/v2](https://github.com/oapi-codegen/oapi-codegen) from 2.7.0 to 2.7.1.
- [Release notes](https://github.com/oapi-codegen/oapi-codegen/releases)
- [Commits](oapi-codegen/oapi-codegen@v2.7.0...v2.7.1)

---
updated-dependencies:
- dependency-name: github.com/oapi-codegen/oapi-codegen/v2
  dependency-version: 2.7.1
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot
dependabot Bot force-pushed the dependabot/go_modules/github.com/oapi-codegen/oapi-codegen/v2-2.7.1 branch from 667eb91 to 570ecda Compare July 29, 2026 06:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file go Pull requests that update go code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants