Skip to content

chore(deps): Update module github.com/go-jose/go-jose/v4 to v4.1.4 [SECURITY] [backport]#5988

Open
grafana-alloybot[bot] wants to merge 1 commit intorelease/v1.15from
backport/pr-5982-to-v1.15
Open

chore(deps): Update module github.com/go-jose/go-jose/v4 to v4.1.4 [SECURITY] [backport]#5988
grafana-alloybot[bot] wants to merge 1 commit intorelease/v1.15from
backport/pr-5982-to-v1.15

Conversation

@grafana-alloybot
Copy link
Copy Markdown
Contributor

Backport of #5982

This PR backports #5982 to release/v1.15.

Original PR Author

@renovate-sh-app[bot]

Description

This PR contains the following updates:

Package Change Age Confidence
github.com/go-jose/go-jose/v4 v4.1.3v4.1.4 age confidence

Warning

Some dependencies could not be looked up. Check the Dependency Dashboard for more information.

GitHub Vulnerability Alerts

CVE-2026-34986

Impact

Decrypting a JSON Web Encryption (JWE) object will panic if the alg field indicates a key wrapping algorithm (one ending in KW, with the exception of A128GCMKW, A192GCMKW, and A256GCMKW) and the encrypted_key field is empty. The panic happens when cipher.KeyUnwrap() in key_wrap.go attempts to allocate a slice with a zero or negative length based on the length of the encrypted_key.

This code path is reachable from ParseEncrypted() / ParseEncryptedJSON() / ParseEncryptedCompact() followed by Decrypt() on the resulting object. Note that the parse functions take a list of accepted key algorithms. If the accepted key algorithms do not include any key wrapping algorithms, parsing will fail and the application will be unaffected.

This panic is also reachable by calling cipher.KeyUnwrap() directly with any ciphertext parameter less than 16 bytes long, but calling this function directly is less common.

Panics can lead to denial of service.

Fixed In

4.1.4 and v3.0.5

Workarounds

If the list of keyAlgorithms passed to ParseEncrypted() / ParseEncryptedJSON() / ParseEncryptedCompact() does not include key wrapping algorithms (those ending in KW), your application is unaffected.

If your application uses key wrapping, you can prevalidate to the JWE objects to ensure the encrypted_key field is nonempty. If your application accepts JWE Compact Serialization, apply that validation to the corresponding field of that serialization (the data between the first and second .).

Thanks

Go JOSE thanks Datadog's Security team for finding this issue.


Go JOSE Panics in JWE decryption

CVE-2026-34986 / GHSA-78h2-9frx-2jm8

More information

Details

Impact

Decrypting a JSON Web Encryption (JWE) object will panic if the alg field indicates a key wrapping algorithm (one ending in KW, with the exception of A128GCMKW, A192GCMKW, and A256GCMKW) and the encrypted_key field is empty. The panic happens when cipher.KeyUnwrap() in key_wrap.go attempts to allocate a slice with a zero or negative length based on the length of the encrypted_key.

This code path is reachable from ParseEncrypted() / ParseEncryptedJSON() / ParseEncryptedCompact() followed by Decrypt() on the resulting object. Note that the parse functions take a list of accepted key algorithms. If the accepted key algorithms do not include any key wrapping algorithms, parsing will fail and the application will be unaffected.

This panic is also reachable by calling cipher.KeyUnwrap() directly with any ciphertext parameter less than 16 bytes long, but calling this function directly is less common.

Panics can lead to denial of service.

Fixed In

4.1.4 and v3.0.5

Workarounds

If the list of keyAlgorithms passed to ParseEncrypted() / ParseEncryptedJSON() / ParseEncryptedCompact() does not include key wrapping algorithms (those ending in KW), your application is unaffected.

If your application uses key wrapping, you can prevalidate to the JWE objects to ensure the encrypted_key field is nonempty. If your application accepts JWE Compact Serialization, apply that validation to the corresponding field of that serialization (the data between the first and second .).

Thanks

Go JOSE thanks Datadog's Security team for finding this issue.

Severity

  • CVSS Score: 7.5 / 10 (High)
  • Vector String: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

References

This data is provided by OSV and the GitHub Advisory Database (CC-BY 4.0).


Release Notes

go-jose/go-jose (github.com/go-jose/go-jose/v4)

v4.1.4

Compare Source


Configuration

📅 Schedule: Branch creation - "" (UTC), Automerge - At any time (no schedule defined).

🚦 Automerge: Enabled.

Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

Need help?

You can ask for more help in the following Slack channel: #proj-renovate-self-hosted. In that channel you can also find ADR and FAQ docs in the Resources section.


This backport was created automatically.

…ECURITY] (#5982)

This PR contains the following updates:

| Package | Change |
[Age](https://docs.renovatebot.com/merge-confidence/) |
[Confidence](https://docs.renovatebot.com/merge-confidence/) |
|---|---|---|---|
|
[github.com/go-jose/go-jose/v4](https://redirect.github.com/go-jose/go-jose)
| `v4.1.3` → `v4.1.4` |
![age](https://developer.mend.io/api/mc/badges/age/go/github.com%2fgo-jose%2fgo-jose%2fv4/v4.1.4?slim=true)
|
![confidence](https://developer.mend.io/api/mc/badges/confidence/go/github.com%2fgo-jose%2fgo-jose%2fv4/v4.1.3/v4.1.4?slim=true)
|

---

> [!WARNING]
> Some dependencies could not be looked up. Check the [Dependency
Dashboard](../issues/4569) for more information.

### GitHub Vulnerability Alerts

####
[CVE-2026-34986](https://redirect.github.com/go-jose/go-jose/security/advisories/GHSA-78h2-9frx-2jm8)

### Impact

Decrypting a JSON Web Encryption (JWE) object will panic if the `alg`
field indicates a key wrapping algorithm ([one ending in
`KW`](https://pkg.go.dev/github.com/go-jose/go-jose/v4#pkg-constants),
with the exception of `A128GCMKW`, `A192GCMKW`, and `A256GCMKW`) and the
`encrypted_key` field is empty. The panic happens when
`cipher.KeyUnwrap()` in `key_wrap.go` attempts to allocate a slice with
a zero or negative length based on the length of the `encrypted_key`.

This code path is reachable from `ParseEncrypted()` /
`ParseEncryptedJSON()` / `ParseEncryptedCompact()` followed by
`Decrypt()` on the resulting object. Note that the parse functions take
a list of accepted key algorithms. If the accepted key algorithms do not
include any key wrapping algorithms, parsing will fail and the
application will be unaffected.

This panic is also reachable by calling `cipher.KeyUnwrap()` directly
with any `ciphertext` parameter less than 16 bytes long, but calling
this function directly is less common.

Panics can lead to denial of service.

### Fixed In

4.1.4 and v3.0.5

### Workarounds

If the list of `keyAlgorithms` passed to `ParseEncrypted()` /
`ParseEncryptedJSON()` / `ParseEncryptedCompact()` does not include key
wrapping algorithms (those ending in `KW`), your application is
unaffected.

If your application uses key wrapping, you can prevalidate to the JWE
objects to ensure the `encrypted_key` field is nonempty. If your
application accepts JWE Compact Serialization, apply that validation to
the corresponding field of that serialization (the data between the
first and second `.`).

### Thanks

Go JOSE thanks Datadog's Security team for finding this issue.

---

### Go JOSE Panics in JWE decryption
[CVE-2026-34986](https://nvd.nist.gov/vuln/detail/CVE-2026-34986) /
[GHSA-78h2-9frx-2jm8](https://redirect.github.com/advisories/GHSA-78h2-9frx-2jm8)

<details>
<summary>More information</summary>

#### Details
##### Impact

Decrypting a JSON Web Encryption (JWE) object will panic if the `alg`
field indicates a key wrapping algorithm ([one ending in
`KW`](https://pkg.go.dev/github.com/go-jose/go-jose/v4#pkg-constants),
with the exception of `A128GCMKW`, `A192GCMKW`, and `A256GCMKW`) and the
`encrypted_key` field is empty. The panic happens when
`cipher.KeyUnwrap()` in `key_wrap.go` attempts to allocate a slice with
a zero or negative length based on the length of the `encrypted_key`.

This code path is reachable from `ParseEncrypted()` /
`ParseEncryptedJSON()` / `ParseEncryptedCompact()` followed by
`Decrypt()` on the resulting object. Note that the parse functions take
a list of accepted key algorithms. If the accepted key algorithms do not
include any key wrapping algorithms, parsing will fail and the
application will be unaffected.

This panic is also reachable by calling `cipher.KeyUnwrap()` directly
with any `ciphertext` parameter less than 16 bytes long, but calling
this function directly is less common.

Panics can lead to denial of service.

##### Fixed In

4.1.4 and v3.0.5

##### Workarounds

If the list of `keyAlgorithms` passed to `ParseEncrypted()` /
`ParseEncryptedJSON()` / `ParseEncryptedCompact()` does not include key
wrapping algorithms (those ending in `KW`), your application is
unaffected.

If your application uses key wrapping, you can prevalidate to the JWE
objects to ensure the `encrypted_key` field is nonempty. If your
application accepts JWE Compact Serialization, apply that validation to
the corresponding field of that serialization (the data between the
first and second `.`).

##### Thanks

Go JOSE thanks Datadog's Security team for finding this issue.

#### Severity
- CVSS Score: 7.5 / 10 (High)
- Vector String: `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`

#### References
-
[https://github.com/go-jose/go-jose/security/advisories/GHSA-78h2-9frx-2jm8](https://redirect.github.com/go-jose/go-jose/security/advisories/GHSA-78h2-9frx-2jm8)
-
[https://github.com/go-jose/go-jose](https://redirect.github.com/go-jose/go-jose)
-
[https://pkg.go.dev/github.com/go-jose/go-jose/v4#pkg-constants](https://pkg.go.dev/github.com/go-jose/go-jose/v4#pkg-constants)

This data is provided by
[OSV](https://osv.dev/vulnerability/GHSA-78h2-9frx-2jm8) and the [GitHub
Advisory Database](https://redirect.github.com/github/advisory-database)
([CC-BY
4.0](https://redirect.github.com/github/advisory-database/blob/main/LICENSE.md)).
</details>

---

### Release Notes

<details>
<summary>go-jose/go-jose (github.com/go-jose/go-jose/v4)</summary>

###
[`v4.1.4`](https://redirect.github.com/go-jose/go-jose/compare/v4.1.3...v4.1.4)

[Compare
Source](https://redirect.github.com/go-jose/go-jose/compare/v4.1.3...v4.1.4)

</details>

---

### Configuration

📅 **Schedule**: Branch creation - "" (UTC), Automerge - At any time (no
schedule defined).

🚦 **Automerge**: Enabled.

♻ **Rebasing**: Whenever PR is behind base branch, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

## Need help?
You can ask for more help in the following Slack channel:
#proj-renovate-self-hosted. In that channel you can also find ADR and
FAQ docs in the Resources section.

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0My45Mi4xIiwidXBkYXRlZEluVmVyIjoiNDMuOTIuMSIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOlsiYXV0b21lcmdlLXNlY3VyaXR5LXVwZGF0ZSIsInNldmVyaXR5OkhJR0giLCJ1cGRhdGUtcGF0Y2giXX0=-->

Signed-off-by: renovate-sh-app[bot] <219655108+renovate-sh-app[bot]@users.noreply.github.com>
Co-authored-by: renovate-sh-app[bot] <219655108+renovate-sh-app[bot]@users.noreply.github.com>
(cherry picked from commit 8deede0)
@grafana-alloybot grafana-alloybot bot requested a review from a team as a code owner April 4, 2026 00:32
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 4, 2026

🔍 Dependency Review

github.com/go-jose/go-jose/v4 v4.1.3 -> v4.1.4 — ✅ Safe
  • Scope: Indirect dependency updated in root module, collector/, and extension/alloyengine/.
  • Summary: v4.1.4 is a patch release. Based on the project’s releases/changelog and diff between v4.1.3 and v4.1.4, there are no public API changes. No code changes are required in this repository.

Potential behavioral notes:

  • Patch releases in JOSE libraries sometimes tighten spec compliance or validation paths. If any existing flows depend on non-spec-compliant JOSE objects being accepted, they may now fail verification/decryption. This does not require code changes but is worth validating in tests.

Code changes required: none.

References:

Notes

  • This PR updates a single indirect dependency (github.com/go-jose/go-jose/v4) from v4.1.3 to v4.1.4 across multiple modules. No other module changes were assessed.

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.

0 participants