ragas icon indicating copy to clipboard operation
ragas copied to clipboard

Vunerable version for the onnx package in the poetry.lock

Open linqiu0-0 opened this issue 1 year ago • 2 comments

[ ] I have checked the documentation and related resources and couldn't resolve my bug.

Describe the bug I’ve identified that the onnx package listed in the src/experimental/poetry.lock file has a version defined as 1.16.1, which contains a path traversal vulnerability. This issue has been documented in Snyk, as indicated in this report.

This vulnerability will likely trigger some CVE issues during the vulnerability scans in our Docker image build and push process with Ragas as a dependency. To ensure the integrity and security of this package, could we please update the onnx package to the safe version 1.16.2?

Ragas version: lastest

Thank you!

linqiu0-0 avatar Aug 06 '24 23:08 linqiu0-0

Hey there, @linqiu0-0! 👋 I'm here to help you with any bugs, questions, or contributions you have for the repository. Let's squash those bugs together!

To address the vulnerability in the onnx package, you should update the version to 1.16.2 in the poetry.lock file. Additionally, ensure that the onnx package version is updated in requirements/test.txt and verify that the unit tests pass successfully in the CI pipeline. The unit_tests job in the CI pipeline installs dependencies from requirements/test.txt, which should include the onnx package [1].

To continue talking to Dosu, mention @dosu.

dosubot[bot] avatar Aug 06 '24 23:08 dosubot[bot]

@linqiu0-0 thank you so much for reporting this 🙌🏽. If you to maybe you have give a shot at contributing a fix?

I can take it up if not but if you're interested let me know 🙂

jjmachan avatar Aug 07 '24 12:08 jjmachan

Closing this as resolved.

anistark avatar Oct 30 '25 11:10 anistark