Skip to content

Possible fix(deps): 4 vulnerable dependencies in requirements.txt #68

Description

@begininvoke

Came across something in pytorch/Embedding/m3e_base/requirements.txt around line 2 that looked worth flagging.

The CVE describes a deserialization flaw in Hugging Face Transformers' MobileViTV2 handling, allowing remote code execution if a malicious configuration file is processed. This is a genuine high‑risk vulnerability in transformers <4.48.0, requiring code execution in the user's context. The fix is to upgrade to the patched version.

Something like this might fix it:

--- a/pytorch/Embedding/m3e_base/requirements.txt
+++ b/pytorch/Embedding/m3e_base/requirements.txt
@@ -1,3 +1,3 @@
 # Example comment or other package
-transformers==4.44.0
+transformers==4.48.0
 # Example comment or other package

For reference: rule CVE-2024-11392. Rated high.

If I have misread how this is used, sorry for the noise — feel free to close.


Found with automated scanning (RedGem) and reviewed before opening. If it is not useful, closing it is completely fine.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions