> For the complete documentation index, see [llms.txt](https://0xn3va.gitbook.io/cheat-sheets/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://0xn3va.gitbook.io/cheat-sheets/ci-cd/dependency/dependency-hijacking.md).

# Dependency Hijaking

Package owners can use email with a custom domain name to register with various package managers such as `npm`, `pypi`, etc. If a domain name is expired, an attacker can register this domain name and gain access to an account through password recovery.

{% embed url="<https://thehackerblog.com/zero-days-without-incident-compromising-angular-via-expired-npm-publisher-email-domains-7kZplW4x/>" %}
