React2Keys: 50,000 credentials stolen exploiting CVE-2025-55182 in Next.js
Automated campaign exploits critical vulnerability to access cloud services, AI, and cryptocurrencies

KEY TAKEAWAYS
- The React2Keys campaign has stolen over 50,000 credentials by exploiting the CVE-2025-55182 vulnerability in Next.js.
- The attack has affected more than 400 organizations, with over 19,000 compromised hosts worldwide.
- The attackers use an automated discovery pipeline to identify new vulnerable domains and steal credentials for cloud services, AI, and cryptocurrencies.
- The CVE-2025-55182 vulnerability allows for remote code execution without authentication, making internet-exposed implementations particularly vulnerable.
- Attackers can bypass some defensive configurations and maintain access even after the vulnerability is patched.
The React2Keys campaign exploits a critical vulnerability in Next.js to steal 50,000 credentials
A large-scale credential harvesting campaign, named React2Keys, has stolen over 50,000 credentials from AI services, cloud infrastructures, databases, payment platforms, and cryptocurrency services. The campaign exploits the CVE-2025-55182 vulnerability, a critical unauthenticated remote code execution that affects React Server Components and frameworks like Next.js.
Quick Response
- The CVE-2025-55182 vulnerability allows unauthenticated remote code execution
- The campaign has stolen credentials from over 400 organizations worldwide
- The attack exploits a single HTTP POST request to execute arbitrary JavaScript
- The stolen credentials include cloud keys, database logins, payment tokens, and API keys for AI services
- The attackers have implemented a persistence mechanism through SSH public keys
An automated discovery pipeline and a credential ranking system
The React2Keys campaign uses an automated discovery pipeline that monitors six public Certificate Transparency logs every three minutes. These logs record newly issued TLS certificates, allowing attackers to identify new domains and add them to their scanning queue almost immediately. Implementations are then fingerprinted to identify potentially vulnerable Next.js applications.
The exploit through a single HTTP POST request
The exploit is delivered through a single HTTP POST request to a path accessible via Next.js Server Actions. A crafted React Flight payload triggers prototype pollution, allowing arbitrary JavaScript execution within the server's Node.js process.
The impact comparable to the Shai-Hulud worm
The impact of React2Keys has been compared to that of the Shai-Hulud worm, which infected hundreds of npm packages in its first wave in 2025 and stole credentials from over 25,000 GitHub repositories in the second. Although React2Keys does not self-propagate, both threats are large, automated, and fueled by stolen secrets.
The critical vulnerability and the lack of patches
The CVE-2025-55182 vulnerability was disclosed in December 2025 and has critical severity because its exploitation does not require an authenticated session, making internet-exposed implementations particularly vulnerable. Despite React and Next.js maintainers releasing patches shortly after disclosure, React2Keys results reveal that many systems remain exposed.
Bypassing defensive configurations
CloudSEK discovered that attackers could bypass certain defensive configurations. When a payload was blocked at the Cloudflare edge, a dedicated module attempted to identify the underlying origin server and target it directly.
The search and ranking of credentials
Once inside a vulnerable application, the attacker searched for environment variables, configuration files, and other locations for credentials. These include AWS, Azure, and Google Cloud identities, database logins, SSH keys, payment tokens, cryptocurrency credentials, and API keys from AI providers like OpenAI, Anthropic, and Google.
The validation and ranking of credentials
The stolen credentials were validated and classified based on their potential monetary value. Attackers distinguished usable keys from expired, disabled, rate-limited, or credit-exhausted ones. Some credits were tested against live services to establish whether they could provide access to working AI models or cloud resources.
Attackers adapting to modern application environments
The inclusion of AI keys alongside cloud and payment credentials reflects how attackers are adapting their harvesting operations to the value of modern application environments. If someone steals your AI key, they can do their own work at your expense, and you only notice when the bill arrives.
The persistence problem for organizations
React2Keys introduces a persistence problem for organizations that treat vulnerability removal as the end of the incident response. CloudSEK discovered that attackers plant their own SSH public key in the authorized_key files of compromised accounts, potentially preserving access even after the vulnerable application has been patched.
The use of stolen cloud credentials to fund further scans
Researchers also identified the reuse of stolen cloud credentials to fund additional scanning infrastructure, including AWS Lambda workers and virtual machines. In effect, compromised organizations can become part of the attackers' operational infrastructure, with their own cloud resources helping to discover further targets.
Recommendations for defenders
If I were a defender, I would patch quickly, keep secrets out of environment variables where possible, use short-lived credentials, limit cloud roles, and set hard spending limits and alerts on AI usage so that a stolen key can't rack up an open tab.
The importance of a comprehensive security approach
This incident underscores the importance of a comprehensive security approach that includes not only rapid patching of vulnerabilities but also secure credential management, privilege limitation, and continuous monitoring of cloud resources. Organizations should consider implementing a robust identity access management system and a Data Loss Prevention system to mitigate the risks associated with such attacks.
The need for adequate cyber risk insurance
In a context where cyberattacks are increasingly sophisticated and damaging, it is essential that organizations consider the opportunity to subscribe to an adequate cyber risk policy. Such a policy can provide financial coverage in case of data breaches and support for incident response and breach remediation.
The market context and the evolution of threats
The React2Keys campaign emerges in a landscape already marked by a 40% increase in attacks on cloud infrastructures in 2025, according to data from CloudSEK. This trend is linked to the accelerated adoption of cloud-first solutions and the increasing integration of AI services, which expand the attack surface. Organizations that have not implemented an adequate cloud security posture are particularly exposed to threats like React2Keys.
Implications for compliance and risk management
The discovery of React2Keys raises significant concerns for compliance with regulations such as the NIS2 directive and the DORA regulation. Both regulations require robust measures for incident management and data protection, elements that affected organizations will need to demonstrate having implemented to avoid penalties. Furthermore, the loss of AI credentials can result in violations of identity access management, a crucial area for compliance with standards such as ISO 27001.
The role of cyber insurance in mitigating damage
With the increase in attacks exploiting zero-day vulnerabilities, subscribing to a cyber risk policy is becoming an essential component of organizations' security strategy. Insurance coverage can include support for incident response and breach remediation, critical elements for operational recovery after an attack like React2Keys. However, companies must be aware that cyber insurance premiums can increase significantly following an incident.
The economic impact of stolen AI credentials
Stolen AI service credentials represent a unique financial risk. According to Randolph Barr, CISO of Cequence Security, the average cost of an attack exploiting stolen AI keys can exceed $150,000, primarily due to unexpected billing for the use of advanced models. This underscores the need to implement Data Loss Prevention solutions specifically to protect development secrets and API keys.
The challenges of post-incident operational recovery
The attackers' persistence through SSH public keys further complicates the recovery process. Organizations must not only patch vulnerabilities but also conduct in-depth forensic analysis to identify and remove any backdoors. This requires the implementation of a disaster recovery as a service (DRaaS) that includes the preservation of secure snapshots and the ability to restore isolated environments for analysis.
The integration between SOC and MDR for proactive defense
The complexity of modern attacks requires an integrated approach to security operations. The implementation of a managed Security Operations Center (SOC as a Service) combined with a MDR service (Managed Detection and Response) can provide the visibility needed to identify and respond to attacks in real-time. These services can be integrated with SIEM solutions to correlate security events and detect abnormal behaviors.
The importance of continuous vulnerability testing
The discovery that many systems remain vulnerable despite the availability of patches highlights the need to conduct regular penetration tests and vulnerability assessments. These tests should be performed by internal teams or specialized external providers, with the goal of identifying and mitigating vulnerabilities before they can be exploited.
Future perspectives: the evolution of threats and defenses
With the increasingly widespread adoption of frameworks like Next.js and the integration of AI services into business applications, attacks similar to React2Keys are likely to become more frequent. Organizations must adopt a proactive approach to security, investing in advanced technologies and continuous training for security teams. Additionally, collaboration between software vendors, security researchers, and user organizations will be crucial to mitigate emerging threats.
The impact on software supply chains
The discovery that stolen credentials can be used to fund further scans raises concerns about the security of software supply chains. Organizations must implement rigorous controls to verify the integrity of dependencies and monitor suspicious activity in their infrastructures. This includes adopting a zero-trust architecture that limits access to resources based on least privilege principles.
The need for a robust identity management strategy
The loss of credentials underscores the importance of robust identity and access management (IAM). Organizations should implement solutions that enable centralized credential management, multi-factor authentication, and continuous user activity monitoring. This approach can help prevent unauthorized access and limit the impact of any breaches.
Conclusions and final recommendations
The React2Keys campaign represents a significant threat to organizations using Next.js and other modern frameworks. To mitigate the associated risks, it is essential to adopt a comprehensive security approach that includes timely patching, secure credential management, continuous monitoring, and the implementation of advanced technologies such as SIEM and MDR. Additionally, organizations should consider the opportunity to subscribe to a cyber risk policy to protect themselves from the financial impacts of security incidents.
Editorial Note and Disclaimer
The guides and content published on GoYou are the result of independent research and analysis activities, for informational, educational, and in-depth purposes.
GoYou does not constitute a journalistic publication nor an editorial product pursuant to Law No. 62/2001 and does not perform real-time information activities.
The GoYou project does not provide professional, technical, legal, or financial advice and disclaims any responsibility for the improper use of the information published.
In the Crypto sector, every investment involves risks: the reader is invited to always inform themselves autonomously before making any decision.
Source: csoonline.com · GoYou.it is not a registered news outlet; all content is for informational and educational purposes.