Skip to content
Open
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 5 additions & 6 deletions docs/html/cli/pip_install.rst
Original file line number Diff line number Diff line change
Expand Up @@ -479,12 +479,11 @@ Examples

.. warning::

Using this option to search for packages which are not in the main
repository (such as private packages) is unsafe, per a security
vulnerability called
`dependency confusion <https://azure.microsoft.com/en-us/resources/3-ways-to-mitigate-risk-using-private-package-feeds/>`_:
an attacker can claim the package on the public repository in a way that
will ensure it gets chosen over the private package.
Using the ``--extra-index-url`` option to search for packages which are
not in the main repository (for example, private packages) is unsafe.
This is a class of security issue known as dependency confusion — an
Copy link
Contributor

Choose a reason for hiding this comment

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

Just a quick question, is there a reason you chose to remove the https://azure.microsoft.com/en-us/resources/3-ways-to-mitigate-risk-using-private-package-feeds/ link here?

Copy link
Author

Choose a reason for hiding this comment

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

I did it accidentally, I'll add it right now.

Copy link
Contributor

Choose a reason for hiding this comment

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

Thanks!

attacker can publish a package with the same name to a public index,
which may then be chosen instead of your private package.

.. tab:: Unix/macOS

Expand Down
1 change: 1 addition & 0 deletions news/13609.doc.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Clarify dependency-confusion warning applies to --extra-index-url