As reported by Dark Reading, the 'React2Keys' campaign has automated exploitation of the critical Next.js vulnerability tracked as CVE-2025-29927 — a middleware authorization bypass that attackers have weaponized to harvest tens of thousands of credentials across more than 400 organizations. The scope and automation of this campaign elevates what was already a serious vulnerability into a supply-chain-scale credential crisis.
Why This Campaign Is Different
The React2Keys campaign is notable not for novel exploitation techniques but for the industrial scale and target selection. Rather than pursuing opportunistic compromises, the operator(s) specifically targeted credentials associated with cloud platforms, AI service APIs, and CI/CD pipeline secrets. This is a deliberate targeting pattern designed to harvest high-value tokens and keys that enable downstream access, lateral movement, and potentially source code exfiltration.
The underlying vulnerability — CVE-2025-29927 — allows attackers to bypass Next.js middleware-based authorization by manipulating the x-middleware-subrequest header. Any organization relying on Next.js middleware for authentication or access control, without having applied the patch, remains fully exposed. The CVSS 9.6 rating is well-earned: the flaw is remotely exploitable, requires no authentication, and minimal technical sophistication to trigger.
Vulnerability Details
| Field | Detail |
|---|---|
| CVE | CVE-2025-29927 |
| CVSS | 9.6 (Critical) |
| Vendor | Vercel (Next.js) |
| Affected Versions | Next.js < 14.2.25, < 15.2.3 |
| Patch Available | Yes — upgrade to 14.2.25+ or 15.2.3+ |
| Active Exploitation | Yes — confirmed in the React2Keys campaign |
| Attack Vector | Remote, unauthenticated, via crafted HTTP header |
Who Is Most at Risk
The real damage in React2Keys isn't the initial bypass — it's the downstream credential compromise. Each stolen cloud key or CI/CD token is a potential entry point into infrastructure that may lack the visibility to detect that the trust was originally forged through a web framework flaw.
Shield53 Recommendations
Immediate Actions
- Patch now. Upgrade all Next.js instances to 14.2.25 or 15.2.3 or later. Audit all environments — development, staging, and production — not just internet-facing apps.
- Rotate all secrets. Assume any credentials that passed through a vulnerable Next.js instance are compromised. Rotate cloud provider keys, AI API keys, CI/CD tokens, database connection strings, and OAuth client secrets.
- Add detection rules. Monitor logs for requests containing
x-middleware-subrequestheaders or unusual patterns of unauthenticated access to protected routes. Flag and investigate any historical matches. - Enforce defense-in-depth for auth. Do not rely solely on middleware for authorization. Implement API-level authorization checks and consider a WAF rule to block the exploitable header pattern.
Strategic Hardening
- Move secrets out of application-layer environment variables where possible — use managed identity or short-lived token exchange patterns.
- Implement credential vaulting (e.g., HashiCorp Vault, AWS Secrets Manager) with automatic rotation for any keys accessible to web application runtimes.
- Review SBOMs for Next.js across your portfolio — this vulnerability may exist in internal tools, admin panels, and micro-frontends that lack security ownership.