dependabot[bot] opened a new pull request, #138: URL: https://github.com/apache/dubbo-go-pixiu-samples/pull/138
Bumps [github.com/open-policy-agent/opa](https://github.com/open-policy-agent/opa) from 0.45.0 to 1.4.0. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/open-policy-agent/opa/releases">github.com/open-policy-agent/opa's releases</a>.</em></p> <blockquote> <h2>v1.4.0</h2> <p>This release contains a security fix addressing CVE-2025-46569. It also includes a mix of new features, bugfixes, and dependency updates.</p> <h4>Security Fix: CVE-2025-46569 - OPA server Data API HTTP path injection of Rego (<a href="https://github.com/open-policy-agent/opa/security/advisories/GHSA-6m8w-jc87-6cr7">GHSA-6m8w-jc87-6cr7</a>)</h4> <p>A vulnerability in the OPA server's <a href="https://www.openpolicyagent.org/docs/latest/rest-api/#data-api">Data API</a> allows an attacker to craft the HTTP path in a way that injects Rego code into the query that is evaluated.<br /> The evaluation result cannot be made to return any other data than what is generated by the requested path, but this path can be misdirected, and the injected Rego code can be crafted to make the query succeed or fail; opening up for oracle attacks or, given the right circumstances, erroneous policy decision results. Furthermore, the injected code can be crafted to be computationally expensive, resulting in a Denial Of Service (DoS) attack.</p> <p><strong>Users are only impacted if all of the following apply:</strong></p> <ul> <li>OPA is deployed as a standalone server (rather than being used as a Go library)</li> <li>The OPA server is exposed outside of the local host in an untrusted environment.</li> <li>The configured <a href="https://www.openpolicyagent.org/docs/latest/security/#authentication-and-authorization">authorization policy</a> does not do exact matching of the input.path attribute when deciding if the request should be allowed.</li> </ul> <p><strong>or, if all of the following apply:</strong></p> <ul> <li>OPA is deployed as a standalone server.</li> <li>The service connecting to OPA allows 3rd parties to insert unsanitised text into the path of the HTTP request to OPA’s Data API.</li> </ul> <p>Note: With <strong>no</strong> <a href="https://www.openpolicyagent.org/docs/latest/security/#authentication-and-authorization">Authorization Policy</a> configured for restricting API access (the default configuration), the RESTful <a href="https://www.openpolicyagent.org/docs/latest/rest-api/#data-api">Data API</a> provides access for managing Rego policies; and the RESTful <a href="https://www.openpolicyagent.org/docs/latest/rest-api/#query-api">Query API</a> facilitates advanced queries. Full access to these APIs provides both simpler, and broader access than what the security issue describes here can facilitate. As such, OPA servers exposed to a network are <strong>not</strong> considered affected by the attack described here if they are knowingly not restricting access through an Authorization Policy.</p> <p>This issue affects all versions of OPA prior to 1.4.0.</p> <p>See the <a href="https://github.com/open-policy-agent/opa/security/advisories/GHSA-6m8w-jc87-6cr7">Security Advisory</a> for more details.</p> <p>Reported by <a href="https://github.com/GamrayW"><code>@GamrayW</code></a>, <a href="https://github.com/HyouKash"><code>@HyouKash</code></a>, <a href="https://github.com/AdrienIT"><code>@AdrienIT</code></a>, authored by <a href="https://github.com/johanfylling"><code>@johanfylling</code></a></p> <h3>Runtime, Tooling, SDK</h3> <ul> <li>ast: Adding <code>rego_v1</code> feature to <code>--v0-compatible</code> capabilities (<a href="https://redirect.github.com/open-policy-agent/opa/pull/7474">#7474</a>) authored by <a href="https://github.com/johanfylling"><code>@johanfylling</code></a></li> <li>executable: Add version and icon to OPA windows executable (<a href="https://redirect.github.com/open-policy-agent/opa/issues/3171">#3171</a>) authored by <a href="https://github.com/sspaink"><code>@sspaink</code></a> reported by <a href="https://github.com/christophwille"><code>@christophwille</code></a></li> <li>format: Don't panic on format due to unexpected comments (<a href="https://redirect.github.com/open-policy-agent/opa/issues/6330">#6330</a>) authored by <a href="https://github.com/sspaink"><code>@sspaink</code></a> reported by <a href="https://github.com/sirpi"><code>@sirpi</code></a></li> <li>format: Avoid modifying strings when formatting (<a href="https://redirect.github.com/open-policy-agent/opa/issues/6220">#6220</a>) authored by <a href="https://github.com/sspaink"><code>@sspaink</code></a> reported by <a href="https://github.com/zregvart"><code>@zregvart</code></a></li> <li>plugins/status: FIFO buffer channel for status events to prevent slow status API blocking (<a href="https://redirect.github.com/open-policy-agent/opa/pull/7522">#7522</a>) authored by <a href="https://github.com/sspaink"><code>@sspaink</code></a></li> </ul> <h3>Topdown and Rego</h3> <ul> <li>gqlparser: Add JSON annotation in <code>internal/gqlparser/ast</code> to Position fields (<a href="https://redirect.github.com/open-policy-agent/opa/pull/7509">#7509</a>) authored by <a href="https://github.com/robmyersrobmyers"><code>@robmyersrobmyers</code></a></li> <li>graphql: Cache GraphQL schema parse results (<a href="https://redirect.github.com/open-policy-agent/opa/pull/7457">#7457</a>) authored by <a href="https://github.com/robmyersrobmyers"><code>@robmyersrobmyers</code></a></li> <li>topdown: Handling default functions in Partial Eval (<a href="https://redirect.github.com/open-policy-agent/opa/issues/7220">#7220</a>) authored by <a href="https://github.com/johanfylling"><code>@johanfylling</code></a></li> <li>topdown: Fix wall clock time init for <code>PartialRun()</code> (<a href="https://redirect.github.com/open-policy-agent/opa/issues/7490">#7490</a>) authored by <a href="https://github.com/srenatus"><code>@srenatus</code></a></li> <li>topdown: Zero alloc lower/upper unless changed (<a href="https://redirect.github.com/open-policy-agent/opa/pull/7472">#7472</a>) authored by <a href="https://github.com/anderseknert"><code>@anderseknert</code></a></li> </ul> <h3>Docs, Website, Ecosystem</h3> <ul> <li>adopters: Cloudsmith adds support for OPA (<a href="https://redirect.github.com/open-policy-agent/opa/pull/7498">#7498</a>) authored by <a href="https://github.com/ndouglas-cloudsmith"><code>@ndouglas-cloudsmith</code></a></li> </ul> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://github.com/open-policy-agent/opa/blob/main/CHANGELOG.md">github.com/open-policy-agent/opa's changelog</a>.</em></p> <blockquote> <h2>1.4.0</h2> <p>This release contains a security fix addressing CVE-2025-46569. It also includes a mix of new features, bugfixes, and dependency updates.</p> <h4>Security Fix: CVE-2025-46569 - OPA server Data API HTTP path injection of Rego (<a href="https://github.com/open-policy-agent/opa/security/advisories/GHSA-6m8w-jc87-6cr7">GHSA-6m8w-jc87-6cr7</a>)</h4> <p>A vulnerability in the OPA server's <a href="https://www.openpolicyagent.org/docs/latest/rest-api/#data-api">Data API</a> allows an attacker to craft the HTTP path in a way that injects Rego code into the query that is evaluated.<br /> The evaluation result cannot be made to return any other data than what is generated by the requested path, but this path can be misdirected, and the injected Rego code can be crafted to make the query succeed or fail; opening up for oracle attacks or, given the right circumstances, erroneous policy decision results. Furthermore, the injected code can be crafted to be computationally expensive, resulting in a Denial Of Service (DoS) attack.</p> <p><strong>Users are only impacted if all of the following apply:</strong></p> <ul> <li>OPA is deployed as a standalone server (rather than being used as a Go library)</li> <li>The OPA server is exposed outside of the local host in an untrusted environment.</li> <li>The configured <a href="https://www.openpolicyagent.org/docs/latest/security/#authentication-and-authorization">authorization policy</a> does not do exact matching of the input.path attribute when deciding if the request should be allowed.</li> </ul> <p><strong>or, if all of the following apply:</strong></p> <ul> <li>OPA is deployed as a standalone server.</li> <li>The service connecting to OPA allows 3rd parties to insert unsanitised text into the path of the HTTP request to OPA’s Data API.</li> </ul> <p>Note: With <strong>no</strong> <a href="https://www.openpolicyagent.org/docs/latest/security/#authentication-and-authorization">Authorization Policy</a> configured for restricting API access (the default configuration), the RESTful <a href="https://www.openpolicyagent.org/docs/latest/rest-api/#data-api">Data API</a> provides access for managing Rego policies; and the RESTful <a href="https://www.openpolicyagent.org/docs/latest/rest-api/#query-api">Query API</a> facilitates advanced queries. Full access to these APIs provides both simpler, and broader access than what the security issue describes here can facilitate. As such, OPA servers exposed to a network are <strong>not</strong> considered affected by the attack described here if they are knowingly not restricting access through an Authorization Policy.</p> <p>This issue affects all versions of OPA prior to 1.4.0.</p> <p>See the <a href="https://github.com/open-policy-agent/opa/security/advisories/GHSA-6m8w-jc87-6cr7">Security Advisory</a> for more details.</p> <p>Reported by <a href="https://github.com/GamrayW"><code>@GamrayW</code></a>, <a href="https://github.com/HyouKash"><code>@HyouKash</code></a>, <a href="https://github.com/AdrienIT"><code>@AdrienIT</code></a>, authored by <a href="https://github.com/johanfylling"><code>@johanfylling</code></a></p> <h3>Runtime, Tooling, SDK</h3> <ul> <li>ast: Adding <code>rego_v1</code> feature to <code>--v0-compatible</code> capabilities (<a href="https://redirect.github.com/open-policy-agent/opa/pull/7474">#7474</a>) authored by <a href="https://github.com/johanfylling"><code>@johanfylling</code></a></li> <li>executable: Add version and icon to OPA windows executable (<a href="https://redirect.github.com/open-policy-agent/opa/issues/3171">#3171</a>) authored by <a href="https://github.com/sspaink"><code>@sspaink</code></a> reported by <a href="https://github.com/christophwille"><code>@christophwille</code></a></li> <li>format: Don't panic on format due to unexpected comments (<a href="https://redirect.github.com/open-policy-agent/opa/issues/6330">#6330</a>) authored by <a href="https://github.com/sspaink"><code>@sspaink</code></a> reported by <a href="https://github.com/sirpi"><code>@sirpi</code></a></li> <li>format: Avoid modifying strings when formatting (<a href="https://redirect.github.com/open-policy-agent/opa/issues/6220">#6220</a>) authored by <a href="https://github.com/sspaink"><code>@sspaink</code></a> reported by <a href="https://github.com/zregvart"><code>@zregvart</code></a></li> <li>plugins/status: FIFO buffer channel for status events to prevent slow status API blocking (<a href="https://redirect.github.com/open-policy-agent/opa/pull/7522">#7522</a>) authored by <a href="https://github.com/sspaink"><code>@sspaink</code></a></li> </ul> <h3>Topdown and Rego</h3> <ul> <li>gqlparser: Add JSON annotation in <code>internal/gqlparser/ast</code> to Position fields (<a href="https://redirect.github.com/open-policy-agent/opa/pull/7509">#7509</a>) authored by <a href="https://github.com/robmyersrobmyers"><code>@robmyersrobmyers</code></a></li> <li>graphql: Cache GraphQL schema parse results (<a href="https://redirect.github.com/open-policy-agent/opa/pull/7457">#7457</a>) authored by <a href="https://github.com/robmyersrobmyers"><code>@robmyersrobmyers</code></a></li> <li>topdown: Handling default functions in Partial Eval (<a href="https://redirect.github.com/open-policy-agent/opa/issues/7220">#7220</a>) authored by <a href="https://github.com/johanfylling"><code>@johanfylling</code></a></li> <li>topdown: Fix wall clock time init for <code>PartialRun()</code> (<a href="https://redirect.github.com/open-policy-agent/opa/issues/7490">#7490</a>) authored by <a href="https://github.com/srenatus"><code>@srenatus</code></a></li> <li>topdown: Zero alloc lower/upper unless changed (<a href="https://redirect.github.com/open-policy-agent/opa/pull/7472">#7472</a>) authored by <a href="https://github.com/anderseknert"><code>@anderseknert</code></a></li> </ul> <h3>Docs, Website, Ecosystem</h3> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/open-policy-agent/opa/commit/8b0720247e65b97fe7715ca15682fee4040df4d1"><code>8b07202</code></a> Prepare v1.4.0 release (<a href="https://redirect.github.com/open-policy-agent/opa/issues/7541">#7541</a>)</li> <li><a href="https://github.com/open-policy-agent/opa/commit/ad2063247a14711882f18c387a511fc8094aa79c"><code>ad20632</code></a> Merge commit from fork</li> <li><a href="https://github.com/open-policy-agent/opa/commit/24ff9cfb3ad0a6a5629f0b21458982d325ee03c5"><code>24ff9cf</code></a> fix: return the raw strings when formatting (<a href="https://redirect.github.com/open-policy-agent/opa/issues/7525">#7525</a>)</li> <li><a href="https://github.com/open-policy-agent/opa/commit/254f3bf0b9ee5faf1972ba31bbbe749bba19a000"><code>254f3bf</code></a> fix(status plugin): make sure the latest status is read before manually trigg...</li> <li><a href="https://github.com/open-policy-agent/opa/commit/9b5f6010c0503cd91eed8a56268a02d4895a42b4"><code>9b5f601</code></a> docs: fix post merge badge (<a href="https://redirect.github.com/open-policy-agent/opa/issues/7532">#7532</a>)</li> <li><a href="https://github.com/open-policy-agent/opa/commit/e4902774778da576da2a8f4b2fd50df6cc3da8b5"><code>e490277</code></a> docs: Point path versioned requests to new sites (<a href="https://redirect.github.com/open-policy-agent/opa/issues/7531">#7531</a>)</li> <li><a href="https://github.com/open-policy-agent/opa/commit/d65888c14f4cb2d67929590604415e35ba75f58c"><code>d65888c</code></a> plugins/status: FIFO buffer channel for status events to prevent slow status ...</li> <li><a href="https://github.com/open-policy-agent/opa/commit/eb77d10971ec772c3ac4968d4abe3666037d0338"><code>eb77d10</code></a> docs: update edge links to use /docs/edge/ path (<a href="https://redirect.github.com/open-policy-agent/opa/issues/7529">#7529</a>)</li> <li><a href="https://github.com/open-policy-agent/opa/commit/f07d604b4f4b37c29324643cc75b82e3e0070aea"><code>f07d604</code></a> docs: Set versioned docs links to point to archive (<a href="https://redirect.github.com/open-policy-agent/opa/issues/7528">#7528</a>)</li> <li><a href="https://github.com/open-policy-agent/opa/commit/828b8cb1568bc2a3eba7d0b87101a6c0679eee06"><code>828b8cb</code></a> docs: improve request headers documentation in REST APIs (<a href="https://redirect.github.com/open-policy-agent/opa/issues/7524">#7524</a>)</li> <li>Additional commits viewable in <a href="https://github.com/open-policy-agent/opa/compare/v0.45.0...v1.4.0">compare view</a></li> </ul> </details> <br /> [](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot show <dependency name> ignore conditions` will show all of the ignore conditions of the specified dependency - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) You can disable automated security fix PRs for this repo from the [Security Alerts page](https://github.com/apache/dubbo-go-pixiu-samples/network/alerts). </details> -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
