A security flaw in the Next.js framework has been exploited in a coordinated campaign that harvested tens of thousands of credentials from cloud, AI, and CI/CD systems. Source: darkreading.com.
What Happened
Researchers at Dark Reading identified a campaign they named React2Keys.
The campaign automated the exploitation of a critical vulnerability known as React2Shell.
It targeted over 400 organizations using Next.js, a popular JavaScript framework for building web applications.
Attackers harvested credentials from systems including cloud services, AI platforms, and continuous integration and deployment (CI/CD) pipelines.
The data collected includes usernames, passwords, API keys, and access tokens—information that could enable unauthorized access to sensitive infrastructure.
Key Facts
- The vulnerability allows remote code execution in certain configurations.
- It was exploited in a fully automated manner, suggesting a well-organized attack.
- At least 400 organizations were affected, with no confirmed reports of data exfiltration beyond credentials.
- Attackers used the flaw to extract credentials from systems that are typically used for development and operations.
Dark Reading notes that the campaign is not yet known to have led to full system compromise or data breaches.
How the Flaw Works
The React2Shell vulnerability arises from improper handling of environment variables in a Next.js application.
When developers configure environment variables without proper validation or sanitization, an attacker can inject malicious payloads.
If the application fails to validate or escape these inputs, the payload can be executed on the server side.
This enables remote code execution, which can be used to extract credentials stored in configuration files or environment variables.
Why It Matters
Many organizations rely on Next.js for front-end and back-end integration in their web apps.
Its widespread use means that a single vulnerability can impact a large number of companies.
When credentials are harvested, attackers may use them to gain access to cloud environments, AI training systems, or automated deployment tools.

Such access could allow lateral movement within networks or enable the deployment of malicious code.
While no full breaches have been confirmed, the scale of credential harvesting raises serious concerns about application security practices.
Limitations and Open Questions
Dark Reading does not confirm whether the harvested credentials were used to access live systems.
There is no public evidence of actual data exfiltration or financial fraud.
It is unclear whether the vulnerability was present in all versions of Next.js or only in specific configurations.
Organizations may have been unaware of the risk due to lack of visibility into environment variable handling.
There is also no public report of a similar campaign targeting other frameworks.
What to Watch For
Security teams should monitor for unusual access patterns in cloud and CI/CD systems.
They should audit environment variable configurations in Next.js applications.
Organizations should ensure all environment variables are properly validated and sanitized.
Regular security scanning and dependency updates are essential.
For more on similar vulnerabilities, see the RubyGems flaw or the Erlang TLS flaw.
For a related incident involving malicious software in cloud services, see the Microsoft Agent Framework breach.
And for a recent warning about a critical flaw in Drupal, see Drupal’s new critical flaw.
Sources & further reading
Featured image: silver_key_ring-Nicolae_Popescu-GettyImages-2228662222.jpg. Via original publisher. Image source




