CrowdSec Says TanStack npm Attack Led to Copy of 170 Private GitHub Repositories

Cybersecurity firm CrowdSec has revealed a disturbing incident in which an attacker exploited a vulnerability in the TanStack npm package, leading to the unauthorized copying of 170 private GitHub repositories. The breach highlights the importance of vigilance and proper configuration in software development pipelines.

The attack occurred when the attacker manipulated the TanStack package, which is used by many developers for building user interfaces, to gain access to sensitive data stored on GitHub. TanStack uses a feature called “cross-domain privilege escalation” (CDPE) that allows it to interact with other domains and repositories, but in this case, the attacker abused this feature to copy private repository contents without the owner’s consent.

According to CrowdSec, the attack was made possible because many developers had configured their GitHub settings to allow TanStack to access their repositories. The attackers then used this access to clone the sensitive data from 170 private repositories, highlighting the potential for widespread damage when even a single vulnerability is exploited. The affected repositories are believed to belong to various individuals and organizations, but specific details about the victims have not been disclosed.

The incident raises important questions about the security of software development pipelines and the potential risks associated with using third-party libraries like TanStack. While CDPE can be a useful feature for developers, it also introduces vulnerabilities that can be exploited by attackers if not properly configured or monitored. This breach serves as a reminder to developers and security professionals alike to review their dependency management practices and ensure that sensitive data is adequately protected.

The TanStack attack highlights the need for continuous monitoring and vulnerability scanning in software development pipelines. As more developers rely on third-party libraries, it becomes increasingly important to stay up-to-date with security patches and updates to prevent similar attacks from occurring. By prioritizing security and taking proactive measures to protect their codebases, developers can minimize the risk of sensitive data exposure and maintain trust with their users.

In light of this incident, we urge all developers who use TanStack or other third-party libraries to review their configuration settings and ensure that they are not exposing sensitive data. Additionally, it’s essential to regularly scan dependencies for vulnerabilities and keep software up-to-date with the latest security patches. By taking these simple steps, developers can significantly reduce the risk of similar attacks in the future.


Source: The Hacker News — 2026-09-19