TL;DR: Sensitive data can be exposed through client-side rendering and framework-default behaviour in CVE-2025-55182 in React and CVE-2025-66478 in Next.js, with proven remote code execution in testing and CVE-2025-55182 now in CISA’s KEV catalog, according to Sprocket Security. The risk is not just a pair of bugs; it is the governance gap created when framework defaults, custom builds, and ephemeral deployments outpace exposure detection and patching.
At a glance
What this is: This is an analysis of newly disclosed React and Next.js vulnerabilities that can leak sensitive data and enable remote code execution in certain framework configurations.
Why it matters: It matters because application framework flaws can widen attack surface across many environments at once, and identity-adjacent data leakage often becomes a credential, session, or access-control problem for IAM and NHI teams.
By the numbers:
- CVE-2025-55182 was officially added to CISA’s Known Exploited Vulnerabilities catalog, confirming exploitation in the wild.
- Sprocket Security says its research advanced from a basic vulnerability check to a confirmed working exploit for CVE-2025-55182.
👉 Read Sprocket Security's analysis of React and Next.js vulnerability exposure
Context
React and Next.js underpin a large share of modern web applications, so flaws in rendering behaviour can turn into broad exposure problems rather than isolated application bugs. When client-side rendering, server actions, or custom build paths diverge from expected defaults, sensitive data can leak into places that were never meant to see it, including browser-accessible responses and downstream logs.
The identity implication is indirect but real. If exposed application data includes tokens, session artefacts, or privileged API material, the issue quickly intersects with IAM, NHI governance, and secrets handling. This is a typical failure mode for fast-moving web stacks, especially where CI/CD and ephemeral deployments change the effective control surface faster than teams can validate it.
Key questions
Q: What breaks when framework defaults expose server-side data to the client?
A: When framework defaults leak server-side data into client-visible output, the immediate failure is confidentiality, but the downstream failure is trust in the entire application boundary. Sensitive values can be exposed in browsers, logs, or caches, and any identity material embedded in that data can become a credential-use problem rather than a simple coding bug.
Q: Why do React and Next.js flaws create broader risk than a single vulnerable app?
A: Because shared framework code can place many deployments into the same exposure pattern even when teams did not customise the dangerous feature. That makes version governance, build inventory, and dependency tracking essential. A single vulnerable runtime path can affect multiple apps, environments, and release branches at once.
Q: How do security teams know if a framework exploit has already been attempted?
A: Look for unusual request patterns around the vulnerable protocol, repeated unauthenticated requests, malformed payloads, and errors that appear only on specific server routes. Then correlate those events with patch state and exposed internet-facing systems. Detection should focus on traffic to the framework path, not only on endpoint alerts after compromise.
Q: Who is accountable when a framework flaw lets a web runtime reach internal systems?
A: Accountability sits with the teams that own the application, the platform that deploys it, and the security function that governs patching and privilege scope. Framework flaws become operational risk when the organisation cannot prove inventory, version control, and runtime segregation. NIST CSF, access governance, and incident response ownership should align before exploitation occurs.
Technical breakdown
How framework defaults can turn server data into client exposure
Modern web frameworks split rendering work between server and client, but the boundary is only as safe as the implementation. Server components, server actions, and build-tool-specific behaviour can move data across that boundary when defaults are misunderstood or overridden. In practice, a value intended for server processing can be serialised into a response, cached in the wrong layer, or exposed through debugging artefacts. The problem becomes harder when production builds differ from local testing, because the exploit path may only appear in a specific framework version or deployment pattern.
Practical implication: inventory which framework paths can serialise server data and test them in the same build configuration you run in production.
Why detection is harder across React, Next.js, and custom builds
External detection depends on stable fingerprints, but React Server Actions and related rendering behaviour vary across toolchains such as Vite, Parcel, and custom production implementations. That variation creates weak signals, so a scanner may confirm one host while missing another with the same underlying risk. Sprocket Security’s reporting also shows why proof matters: a basic vulnerability check is not enough when exploitability depends on implementation details. Reliable exposure assessment requires validation logic that can distinguish version presence from actual reachable attack surface.
Practical implication: do not rely on version banners alone; validate whether the vulnerable code path is reachable before prioritising remediation.
How remote code execution changes the remediation priority
Once proof of remote code execution exists, the issue is no longer only about data leakage. Framework-level RCE can collapse the boundary between application logic, secrets access, and infrastructure control, especially where application servers have broad cloud or service-account permissions. That is why app framework defects often become identity problems in disguise: the attack path may start in code, but the impact lands in credentials, session state, or privileged runtime access. The correct response is to treat the framework as an execution boundary, not just a library dependency.
Practical implication: pair patching with runtime privilege reduction so application compromise cannot immediately reach secrets or high-value service identities.
Threat narrative
Attacker objective: The attacker aims to extract sensitive data or execute code on the application host in order to pivot into deeper access.
- Entry occurs through externally reachable React or Next.js deployments using vulnerable framework behaviour in specific configurations.
- Escalation is possible when the exposed path allows remote code execution or unintended server-side data leakage into client-visible output.
- Impact includes theft of sensitive application data, abuse of exposed secrets, and potential broader compromise of connected systems.
Breaches seen in the wild
- ASP.NET machine keys RCE attack — 3,000+ exposed ASP.NET machine keys enabled remote code execution.
- DeepSeek breach — DeepSeek breach exposed 1M+ log lines and sensitive secret keys.
Read our 52 NHI Breaches Analysis report for a comprehensive view of breaches impacting Non-Human Identities including AI Agents.
NHI Mgmt Group analysis
Framework-level exposure is now an identity governance issue, not just an application patching issue. When a web framework can leak server-side data or permit code execution, the downstream question is which identities and secrets the runtime can reach. That is where application security and NHI governance intersect. Teams should treat framework compromise as a potential credential compromise, not merely a code defect.
Detection confidence matters more than raw scanner coverage. This class of issue exposes the limits of version-based assessment when real exploitability depends on build tools, server-action patterns, and deployment customisation. The practical lesson is that exposure validation must be implementation-aware, because false certainty is a control failure in itself.
Blast-radius control is the decisive control when framework defaults fail. If a vulnerable deployment can reach secrets, cloud APIs, or privileged service accounts, the impact expands well beyond the application tier. Least privilege, workload isolation, and tightly scoped runtime identities matter because they limit what an exploited framework can do after initial compromise.
Ephemeral deployment models can hide persistent risk debt. Fast-moving CI/CD pipelines often create the impression that short-lived environments are safer by default, yet custom rendering logic and cached artefacts can preserve exposure across releases. The governance gap is not deployment speed but the lack of continuous validation across each release path.
Named concept: framework exposure drift. This is the gap between what a framework version appears to be and what a real production build actually exposes. It is a governance problem because security teams often validate the package, not the execution path. Practitioners should align vulnerability management to live runtime behaviour, not package metadata alone.
From our research:
- The average estimated time to remediate a leaked secret is 27 days, despite 75% of organisations expressing strong confidence in their secrets management capabilities, according to The State of Secrets in AppSec.
- 43% of security professionals are concerned about AI systems learning and reproducing sensitive information patterns from codebases.
- From our research: When AWS credentials are exposed publicly, attackers attempt access within an average of 17 minutes, according to LLMjacking: How Attackers Hijack AI Using Compromised NHIs.
What this signals
Framework exposure drift: security teams should expect more cases where the package version looks compliant but the live rendering path is still unsafe. That means exposure management must move closer to runtime validation, and it should be tied to NIST Cybersecurity Framework 2.0 detection and response disciplines rather than one-time inventory checks.
The identity signal is clear. If web applications can leak secrets or execute code, then runtime identities become part of the application attack surface, not a separate concern. The practical next step is to pair application patching with tighter use of NIST SP 800-53 Rev 5 Security and Privacy Controls for access control and auditability.
Teams should also watch for hidden credential exposure in build artefacts, server responses, and debugging paths. Those channels often sit outside normal secrets review processes, which is why a secrets programme needs continuous validation and not just rotation policies.
For practitioners
- Inventory public-facing framework variants Map every externally reachable Next.js and React deployment, including custom build pipelines, alternate bundlers, and edge-rendered paths. Prioritise systems where server actions or rendering defaults differ from the standard reference implementation. This is the only way to know which instances deserve immediate validation.
- Validate real exploitability before triage Move beyond version checks and confirm whether the vulnerable path is actually reachable in production-like conditions. Use evidence-based detection, not presence-only scanning, because build differences can make two identical version numbers behave very differently.
- Reduce runtime access to secrets and cloud APIs Assume a framework exploit may become a secrets access event. Restrict application server identities, remove unnecessary cloud permissions, and isolate token stores so a successful exploit cannot immediately reach privileged credentials or service accounts.
- Align patching with release governance Prepare for incremental patch cycles by tying emergency remediation to release approvals, rollback plans, and post-deploy verification. That matters most where CI/CD and ephemeral deployments could reintroduce the same exposure after an otherwise successful fix.
Key takeaways
- React and Next.js rendering flaws can create both data leakage and remote code execution risk, which pushes the issue beyond ordinary application patching.
- Detection is difficult because build tools and custom production implementations can obscure whether a vulnerable code path is truly reachable.
- The control that matters most is blast-radius reduction through runtime privilege restriction, secrets isolation, and production-aware validation.
Standards & Framework Alignment
This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.
MITRE ATT&CK address the attack and risk surface, while NIST CSF 2.0, NIST SP 800-53 Rev 5, CIS Controls v8 and NIST AI RMF set the governance and control requirements practitioners need to meet.
| Framework | Control / Reference | Relevance |
|---|---|---|
| MITRE ATT&CK | TA0001 , Initial Access; TA0004 , Privilege Escalation; TA0040 , Impact | The article discusses externally reachable exploitation, possible RCE, and downstream impact. |
| NIST CSF 2.0 | PR.AC-4 | Exploitability depends on access boundary control and exposure minimisation. |
| NIST SP 800-53 Rev 5 | AC-6 | Least privilege is central when application runtimes can reach secrets or cloud APIs. |
| CIS Controls v8 | CIS-04 , Secure Configuration of Enterprise Assets and Software | Framework defaults and custom builds make secure configuration the main defensive control. |
| NIST AI RMF | MANAGE | AI-assisted code and build workflows can amplify exposure if runtime controls are weak. |
Limit runtime permissions so an exploited application cannot immediately use high-value credentials or privileged endpoints.
Key terms
- Framework Exposure Drift: The gap between a framework’s expected security behaviour and what a real production build actually exposes. It appears when custom bundlers, server actions, caches, or deployment-specific defaults change the attack surface in ways package-level checks do not reveal.
- Runtime privilege boundary: A runtime privilege boundary is the live limit on what an identity can do during a session or task. For autonomous systems, it matters more than static entitlement because action can change at execution time, making approval, tool scope, and session duration part of control design.
- Production-Aware Validation: Testing that checks the exact live build, routing, and rendering path rather than assuming package versions tell the full story. It is essential for framework vulnerabilities because exploitability can depend on implementation details that only exist in production.
What's in the full analysis
Sprocket Security's full post covers the operational detail this post intentionally leaves for the source:
- Evidence collection and scan logic for externally detectable Next.js exposure across live assets
- The working-exploit validation path for CVE-2025-55182 and how it changes confidence in triage
- Configuration patterns and framework behaviours that make some deployments harder to assess
- Customer-facing remediation guidance and prioritisation updates as detection matures
Deepen your knowledge
NHI Foundation Level course, the industry's only accredited NHI security programme, covers NHI governance, secrets management, workload identity, and IAM fundamentals. It helps security practitioners connect application risk to identity controls across the lifecycle.
Published by the NHIMG editorial team on August 20, 2026.
NHI Mgmt Group — the independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org