Docker and CI/CD · Senior · Question 62 of 75

What is dependency confusion?

Explanation

If the resolver checks the public registry first or prefers higher versions, an attacker can publish your-internal-lib@99.0.0. Use scoped packages and pin registries per scope.

Further reading

Problem with a question

Docker and CI/CD · Senior · question 62

Test yourself

Take the Docker and CI/CD · Senior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz