logzio-python-handler icon indicating copy to clipboard operation
logzio-python-handler copied to clipboard

[Snyk] Security upgrade protobuf from 3.20.1 to 3.20.2

Open snyk-bot opened this issue 3 years ago • 1 comments

Snyk has created this PR to fix one or more vulnerable packages in the `pip` dependencies of this project.

Changes included in this PR

  • Changes to the following files to upgrade the vulnerable dependencies to a fixed version:
    • requirements.txt

Vulnerabilities that will be fixed

By pinning:
Severity Priority Score (*) Issue Upgrade Breaking Change Exploit Maturity
medium severity 571/1000
Why? Recently disclosed, Has a fix available, CVSS 5.7
Denial of Service (DoS)
SNYK-PYTHON-PROTOBUF-3031740
protobuf:
3.20.1 -> 3.20.2
No No Known Exploit

(*) Note that the real score may have changed since the PR was raised.

Some vulnerabilities couldn't be fully fixed and so Snyk will still find them when the project is tested again. This may be because the vulnerability existed within more than one direct dependency, but not all of the affected dependencies could be upgraded.

Check the changes in this PR to ensure they won't cause issues with your project.


Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open fix PRs.

For more information: 🧐 View latest project report

🛠 Adjust project settings

📚 Read more about Snyk's upgrade and patch logic


Learn how to fix vulnerabilities with free interactive lessons:

🦉 Learn about vulnerability in an interactive lesson of Snyk Learn.

snyk-bot avatar Oct 14 '22 01:10 snyk-bot

Hello,

Could you support protobuf version range just like googleapis/python-api-core library?

"protobuf>=3.19.5,<5.0.0dev,!=3.20.0,!=3.20.1,!=4.21.0,!=4.21.1,!=4.21.2,!=4.21.3,!=4.21.4,!=4.21.5"

https://github.com/googleapis/python-api-core/blob/ddcc2499fa756f98268eb552edba6f25ddbe0c26/setup.py#L33

When you use a dependency version range, there is the flexibility to use your library in projects that use other dependencies with the same dependency. Currently, we cannot use logzio python handler with the latest versions of Google API libraries because dependency resolver cannot resolve incompatible protobuf dependency versions (we use Poetry).

And because google-cloud-speech (2.16.2) depends on protobuf (>=3.19.5,<3.20.0 || >3.20.0,<3.20.1 || >3.20.1,<4.21.0 || >4.21.0,<4.21.1 || >4.21.1,<4.21.2 || >4.21.2,<4.21.3 || >4.21.3,<4.21.4 || >4.21.4,<4.21.5 || >4.21.5,<5.0.0dev)
And because logzio-python-handler (4.0.0) depends on protobuf (3.20.1)
So, because <project> depends on both google-cloud-speech (^2.16.2) and logzio-python-handler (^4.0.0), version solving failed

espdev avatar Oct 31 '22 15:10 espdev

Fixed in version 4.0.1

ralongit avatar Jul 13 '23 14:07 ralongit