diff --git a/docs/html/cli/pip_install.rst b/docs/html/cli/pip_install.rst index 00d7f7d23b1..1e0decafddc 100644 --- a/docs/html/cli/pip_install.rst +++ b/docs/html/cli/pip_install.rst @@ -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 `_: - 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 + 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 diff --git a/news/13609.doc.rst b/news/13609.doc.rst new file mode 100644 index 00000000000..f922130294a --- /dev/null +++ b/news/13609.doc.rst @@ -0,0 +1 @@ +Clarify dependency-confusion warning applies to --extra-index-url