Skip to content

chore: use github.com/go-jose/go-jose/v3 package#293

Open
madalazar wants to merge 2 commits intoonosproject:masterfrom
madalazar:master
Open

chore: use github.com/go-jose/go-jose/v3 package#293
madalazar wants to merge 2 commits intoonosproject:masterfrom
madalazar:master

Conversation

@madalazar
Copy link
Copy Markdown

The purpose of this PR is to address dependabot issues like the one below:

Impact
An attacker could send a JWE containing compressed data that used large amounts of memory and CPU when decompressed by Decrypt or DecryptMulti. Those functions now return an error if the decompressed data would exceed 250kB or 10x the compressed size (whichever is larger). Thanks to Enze Wang@Alioth and Jianjun Chen@Zhongguancun Lab (@zer0yu and @chenjj) for reporting.

Patches
The problem is fixed in the following packages and versions:

github.com/go-jose/go-jose/v4 version 4.0.1
github.com/go-jose/go-jose/v3 version 3.0.3
gopkg.in/go-jose/go-jose.v2 version 2.6.3
The problem will not be fixed in the following package because the package is archived:

gopkg.in/square/go-jose.v2

Testing

  • make build && make license
  • make lint is failing (similar to master)
  • make test is failing (similar to master)

Signed-off-by: Lazar, Madalina <madalina.lazar@intel.com>
Signed-off-by: Lazar, Madalina <madalina.lazar@intel.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants