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.

Security Impact: 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.

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

FieldDetail
CVECVE-2025-29927
CVSS9.6 (Critical)
VendorVercel (Next.js)
Affected VersionsNext.js < 14.2.25, < 15.2.3
Patch AvailableYes — upgrade to 14.2.25+ or 15.2.3+
Active ExploitationYes — confirmed in the React2Keys campaign
Attack VectorRemote, unauthenticated, via crafted HTTP header

Who Is Most at Risk

Who Is Most at Risk
Organizations using Next.js middleware for auth — particularly those that implemented custom authorization logic in middleware rather than relying on framework-native session handling or API gateway enforcement.
CI/CD-connected applications — Next.js apps that integrate with CI/CD pipelines and expose build/deploy endpoints or proxy internal service calls are prime targets for credential interception.
AI API consumers — applications that proxy LLM API calls through Next.js routes can leak API keys with significant financial and data exposure implications.
Multi-tenant SaaS platforms — middleware-based tenant isolation bypasses can expose cross-tenant data access.

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-subrequest headers 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.