Skip to content

Conversation

liu-shaojun
Copy link
Contributor

Description

This PR addresses PSIRT Vulnerability - Dependency Confusion in oneccl_bind_pt package (see AO8-417).

The issue arises because we currently use --extra-index-url in multiple places together with the oneccl_bind_pt dependency. Since oneccl_bind_pt is not published on pypi.org, pip will first attempt to fetch from PyPI, and if a malicious actor publishes a fake oneccl_bind_pt package there, our scripts would install it.

Fix:

  • Replace all occurrences of --extra-index-url with --index-url.
  • This ensures that pip only pulls from the trusted internal index and does not fallback to pypi.org.

Copy link
Contributor

@xiangyuT xiangyuT left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Contributor

@glorysdj glorysdj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@liu-shaojun liu-shaojun merged commit 6d89c82 into intel:main Sep 12, 2025
1 check passed
@liu-shaojun liu-shaojun deleted the fix branch September 12, 2025 02:22
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.

4 participants