Skip to content

build(deps): bump github.com/open-policy-agent/opa from 1.22.0 to 1.22.4 in /packages/policy in the go group across 1 directory - #382

Open
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/go_modules/packages/policy/go-10c2b0d8cd
Open

dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/go_modules/packages/policy/go-10c2b0d8cd

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Nov 10, 2026 •

Copy link
Copy Markdown
Contributor

Bumps the go group with 1 update in the /packages/policy directory: github.com/open-policy-agent/opa.

Updates github.com/open-policy-agent/opa from 1.22.0 to 1.22.4

Release notes

Sourced from github.com/open-policy-agent/opa's releases.

v1.22.4

This is a fix release for a vulnerability (CVE-2026-97054) in Go's HTTP/1 server:

https://groups.google.com/g/golang-announce/c/iY8TY0wWgbM

net/http: HTTP/1 server crash due to MaxBytesReader header race

For HTTP/1 servers, when MaxBytesReader's limit is exceeded, "Connection: close" header is automatically set without synchronization, which might race with another header being set explicitly in the server handler. As a result, an HTTP/1 server that utilizes MaxBytesReader or MaxBytesHandler can crash due to runtime panic if its handler reads the request body concurrently with writing the response header.

Thanks to Jakub Ciolek (https://ciolek.dev) for reporting this issue.

This is CVE-2026-97054 and Go issue https://go.dev/issue/82563.

Note that our security guidance includes not running OPA with its interfaces exposed to adversarial actors, like the public internet. This is fixed regardless, if only to avoid too many spurious vulnerability checker reports.

Also note that if you build your OPA binaries yourself, this patch release does not apply to you, as you control the version of Go that's used. This patch release affects the published binaries and docker images of OPA.

v1.22.3

This is a bugfix release for a type checker regression in v1.22.0.

It also includes a dependency bump for github.com/klauspost/compress.

[!NOTE] The security advisory in question is GHSA-fpmh-frq8-7rj8. Note that OPA does not support zstd compression in its handlers, but automated vulnerability checkers still flag this as an issue, which is why we bump this version in a patch release.

Allow keys of empty collections in rules replaced by with

A rule like default x := {} is typed as an empty collection, so any constant key on it is rejected, even though tests replace it using with. Empty collections in the types of rules that a with modifier targets are now typed as any.

Dependency Updates

  • build(deps): Bump github.com/agnivade/levenshtein from 1.2.1 to 1.2.2
  • build(deps): Bump github.com/foxcpp/go-mockdns from 1.2.0 to 1.3.0
  • build(deps): Bump github.com/gobwas/glob from 1.0.0 to 1.1.0
  • build(deps): Bump github.com/huandu/go-sqlbuilder from 1.43.0 to 1.44.1
  • build(deps): Bump github.com/klauspost/compress from 1.20.0 to 1.20.3
  • build(deps): Bump github.com/lestrrat-go/jwx/v3 from 3.3.0 to 3.4.0
  • build(deps): Bump github.com/prometheus/client_golang from 1.24.1 to 1.25.0
  • build(deps): Bump github.com/spf13/pflag from 1.0.10 to 1.1.0
  • build(deps): Bump github.com/vektah/gqlparser/v2 from 2.5.58 to 2.5.64
  • build(deps): Bump go.opentelemetry.io/contrib/bridges/prometheus from 0.71.0 to 0.72.0
  • build(deps): Bump go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp from 0.71.0 to 0.72.0

... (truncated)

Changelog

Sourced from github.com/open-policy-agent/opa's changelog.

1.22.4

This is a fix release for a vulnerability (CVE-2026-97054) in Go's HTTP/1 server:

https://groups.google.com/g/golang-announce/c/iY8TY0wWgbM

net/http: HTTP/1 server crash due to MaxBytesReader header race

For HTTP/1 servers, when MaxBytesReader's limit is exceeded, "Connection: close" header is automatically set without synchronization, which might race with another header being set explicitly in the server handler. As a result, an HTTP/1 server that utilizes MaxBytesReader or MaxBytesHandler can crash due to runtime panic if its handler reads the request body concurrently with writing the response header.

Thanks to Jakub Ciolek (https://ciolek.dev) for reporting this issue.

This is CVE-2026-97054 and Go issue https://go.dev/issue/82563.

Note that our security guidance includes not running OPA with its interfaces exposed to adversarial actors, like the public internet. This is fixed regardless, if only to avoid too many spurious vulnerability checker reports.

Also note that if you build your OPA binaries yourself, this patch release does not apply to you, as you control the version of Go that's used. This patch release affects the published binaries and docker images of OPA.

1.22.3

This is a bugfix release for a type checker regression in v1.22.0.

It also includes a dependency bump for github.com/klauspost/compress.

[!NOTE] The security advisory in question is GHSA-fpmh-frq8-7rj8. Note that OPA does not support zstd compression in its handlers, but automated vulnerability checkers still flag this as an issue, which is why we bump this version in a patch release.

Allow keys of empty collections in rules replaced by with

A rule like default x := {} is typed as an empty collection, so any constant key on it is rejected, even though tests replace it using with. Empty collections in the types of rules that a with modifier targets are now typed as any.

Dependency Updates

... (truncated)

Commits
  • ba39415 Release v1.22.4
  • bf378a3 build(go): bump to 1.27.4
  • 32b01b6 Release 1.22.3
  • 94d77e7 build(deps): bump the dependencies group across 2 directories with 2 updates
  • 6cea040 build(deps): bump the dependencies group across 1 directory with 2 updates (#...
  • 8e61bb5 build(deps): bump the dependencies group across 2 directories with 13 updates...
  • a720a10 build(deps): bump the go-opentelemetry-io group across 1 directory with 12 up...
  • 9bcc155 ast: Allow keys of empty collections in rules replaced by with
  • 482d9e3 Release 1.22.2 prep (#9521)
  • 7fb317c Release 1.22.1
  • Additional commits viewable in compare view

@dependabot dependabot Bot added dependencies Pull requests that update a dependency file go Pull requests that update go code labels Nov 10, 2026
@dependabot dependabot Bot changed the title build(deps): bump github.com/open-policy-agent/opa from 1.22.0 to 1.22.2 in /packages/policy in the go group build(deps): bump github.com/open-policy-agent/opa from 1.22.0 to 1.22.2 in /packages/policy in the go group across 1 directory Nov 12, 2026
@dependabot
dependabot Bot force-pushed the dependabot/go_modules/packages/policy/go-10c2b0d8cd branch from 7919b62 to c53c9f4 Compare November 12, 2026 18:47
@codacy-production

Copy link
Copy Markdown

Up to standards ✅

🟢 Issues 0 issues

Results:
0 new issues

View in Codacy

🟢 Metrics 0 complexity · 0 duplication

Metric Results
Complexity 0
Duplication 0

View in Codacy

AI Reviewer: first review requested successfully. AI can make mistakes. Always validate suggestions.

Run reviewer

TIP This summary will be updated as you push new changes.

@codacy-production codacy-production Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

⚠️ Resolve issues before merging

The Go toolchain remains pinned to a release with high-severity standard-library vulnerabilities, so this change should not merge without addressing the security findings and aligning the package, CI, and supported toolchain versions.

The requested behavioral regressions are not covered by tests; targeted tests should be added or verified before merging.

Test suggestions

  • Verify iteration over an empty collection is accepted by the type checker and produces no results.
  • Verify membership checks involving variable references return the expected match.
Prompt proposal for missing tests
Consider implementing these tests if applicable:
1. Verify iteration over an empty collection is accepted by the type checker and produces no results.
2. Verify membership checks involving variable references return the expected match.

TIP Add review instructions in .codacy/instructions/review.md, or an AGENTS.md, so the reviewer knows your conventions.
TIP How was this review? Give us feedback

Comment thread packages/policy/go.mod Outdated
@@ -3,7 +3,7 @@ module github.com/solongate/agent-security/packages/policy
go 1.26.0

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔴 HIGH RISK

The Go toolchain remains pinned to a release affected by multiple high-severity standard-library vulnerabilities, including HTTP/2, TLS, certificate-validation, and template issues. Update to a patched supported toolchain, align CI/build images, regenerate dependency metadata as needed, and rerun the vulnerability scan.

See Issue in Codacy
See Issue in Codacy
See Issue in Codacy
See Issue in Codacy

TIP React 👍 if this review is right, or reply with what's wrong and how it could be better to help improve the reviewer.

@dependabot dependabot Bot changed the title build(deps): bump github.com/open-policy-agent/opa from 1.22.0 to 1.22.2 in /packages/policy in the go group across 1 directory build(deps): bump github.com/open-policy-agent/opa from 1.22.0 to 1.22.4 in /packages/policy in the go group across 1 directory Nov 15, 2026
@dependabot
dependabot Bot force-pushed the dependabot/go_modules/packages/policy/go-10c2b0d8cd branch from c53c9f4 to 5cf6e3e Compare November 15, 2026 22:12
Bumps the go group with 1 update in the /packages/policy directory: [github.com/open-policy-agent/opa](https://github.com/open-policy-agent/opa).


Updates `github.com/open-policy-agent/opa` from 1.22.0 to 1.22.4
- [Release notes](https://github.com/open-policy-agent/opa/releases)
- [Changelog](https://github.com/open-policy-agent/opa/blob/main/CHANGELOG.md)
- [Commits](open-policy-agent/opa@v1.22.0...v1.22.4)

---
updated-dependencies:
- dependency-name: github.com/open-policy-agent/opa
  dependency-version: 1.22.2
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: go
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot
dependabot Bot force-pushed the dependabot/go_modules/packages/policy/go-10c2b0d8cd branch from 5cf6e3e to 9503def Compare November 17, 2026 08:54
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