Independent analysis by NHI Mgmt GroupSource article: StackHawk, “Web Application Security Threats in 2025: 10 Critical Risks Every Organization Must Address” (July 29, 2026)

TL;DR: AI-accelerated development and API-first architectures are widening web application risk in 2025, with StackHawk highlighting broken access control, injection, misconfiguration, and authentication failures alongside emerging prompt injection and SSRF threats. The real issue is not just finding more flaws, but governing faster-changing application and identity boundaries before they are exploited.


At a glance

What this is: NHI Mgmt Group's analysis, drawing on StackHawk's blog post: 2025 web application security is shaped by the convergence of API-first risk, prompt injection, broken access control, misconfiguration, authentication failure, and SSRF.

Why it matters: IAM and application security teams need to treat API access control and identity-bound trust as part of the same governance problem, especially where AI tools expand the attack surface.


Context

Web application security now fails less because one control is missing and more because several controls assume stable application boundaries. API-first design, AI-assisted coding, and rapid release cycles make those boundaries harder to define, which turns access control, authentication, and input handling into governance problems as much as implementation problems.

The identity connection is real in this article: broken access control, JWT abuse, API key misuse, and authentication failures all depend on who or what is allowed to act inside the application. When AI prompt injection is added to that mix, the boundary between application logic and trusted instructions becomes part of the security model, not just a coding concern.


Key questions

Q: What breaks when broken access control is not enforced in API-first apps?

A: Authenticated users can reach data or actions they were never meant to touch, especially when object references, backend calls, or JWT claims are trusted too broadly. In API-first environments, the failure often appears as inconsistent enforcement between the frontend and service layer, which turns one valid session into an unauthorized path across multiple functions.

Q: Why does prompt injection create risk in connected AI workflows?

A: Because connected workflows bring external data into the model’s decision surface. If retrieved documents, API responses, or knowledge base entries contain malicious instructions, the model may treat them as valid guidance. That makes the risk operational, not just conversational, especially when the system can access data or trigger actions.

Q: How do teams know if API access controls are too permissive?

A: Look for broad record extraction, repeated calls from the same authenticated session, and endpoints that return more data than the requesting function actually needs. If normal accounts can enumerate large datasets or harvest metadata without a clear business reason, the authorisation model is too loose.

Q: How should security teams prevent SSRF from turning internal services into an attack path?

A: The safest approach is to treat any user-controlled URL, webhook target, or fetch destination as untrusted input. Enforce egress allowlists, block access to loopback and private address ranges, disable redirects where possible, and prefer application-layer validation over relying only on firewalls. If a service can reach internal endpoints, SSRF can turn that reachability into credential exposure or unauthorized state changes.


Technical breakdown

Broken access control in API-first applications

Broken access control means an application accepts an authenticated request but does not correctly decide whether that principal should be allowed to perform the action or read the object. In API-first environments, that failure often appears in object references, microservice calls, JWT claims, or API keys that are trusted too broadly. The risk is not only unauthorized data access. It is also action abuse, where a valid identity can invoke a function outside its intended scope because the authorization check is weak, missing, or inconsistent across services.

Practical implication: move authorization checks to every sensitive API action and object, not just the user interface.

AI prompt injection and insecure design

AI prompt injection is a form of malicious input that changes how an AI-enabled application behaves by manipulating the model prompt, retrieved context, or downstream instructions. It matters because the application may treat untrusted text as if it were a trusted instruction source. That is an insecure design problem, not only an input-validation problem. If the application cannot separate user content, model instructions, and privileged tool actions, an attacker can steer the system into leaking data, ignoring policy, or taking unintended actions.

Practical implication: isolate untrusted content from instructions and require policy checks before any tool or data action.

SSRF, misconfiguration, and authentication failures

Server-side request forgery, misconfiguration, and authentication failures often combine in modern app stacks because cloud services, internal APIs, and metadata endpoints are exposed through overly permissive defaults. SSRF tricks an application into making requests it should never make, while misconfiguration leaves those request paths open and weak authentication fails to constrain who can trigger them. The result is internal reconnaissance, metadata abuse, or privilege expansion through the application itself, especially when network segmentation and request allowlists are absent.

Practical implication: restrict outbound request paths, harden service authentication, and block internal targets from application-originated requests.


Threat narrative

Attacker objective: The attacker wants to bypass application trust boundaries and use the app itself to reach data, functions, or internal services that should remain restricted.

  1. Entry occurs through user input, API parameters, or a poisoned prompt that reaches application logic the team incorrectly trusts.
  2. Credential or privilege abuse follows when the application accepts weak JWT claims, broad API keys, or unauthorised tool access tied to the session.
  3. Escalation and collection happen as SSRF, misconfiguration, or broken access control exposes internal APIs, metadata, or restricted data.
  4. Impact is unauthorized data access, manipulated application behaviour, or unintended execution of actions the user should never have been able to trigger.

Read and download The State of NHI & AI Agent Breach Report 2026, covering 200+ breaches impacting Non-Human Identities including AI Agents.


NHI Mgmt Group analysis

Broken access control has become an application identity problem, not just an appsec defect. The article shows that API-first systems now depend on identity-bound authorization decisions across microservices, tokens, and backend calls. When those decisions are inconsistent, the application becomes a policy bypass machine, and the real control gap is weak enforcement at the object and action layer.

Prompt injection exposes a trust boundary failure between user content and system instruction. The important point is not that AI is present in the stack, but that untrusted text is being allowed to influence privileged behaviour. That is a governance failure in instruction handling, and it becomes more serious when the same app can reach APIs or internal tools on the user's behalf.

API sprawl creates access control drift faster than manual review can absorb. As organisations add services, tokens, and integrations, the authorisation model fragments across endpoints and teams. Access control drift: the gap between intended permissions and the permissions actually enforced by live services. Practitioners should treat that drift as a standing governance risk, not a one-off code defect.

SSRF and authentication failures are the bridge between web logic and infrastructure exposure. The article makes clear that modern web apps can be used to reach internal systems when request paths and trust decisions are too loose. In practice, this means infrastructure exposure often begins as an application trust error, which is why appsec and identity teams need a shared control model.

AI-accelerated development makes security design debt accumulate faster than remediation cycles can repay it. The core issue is not simply more flaws. It is that each release can add new trust relationships, new APIs, and new model interactions before security has validated the boundary conditions. Teams should re-evaluate whether their current review process can keep pace with the rate of change.

From our research library:

What this signals

Access control drift is the headline risk in API-first web apps. Security teams should expect authorisation logic to fragment as services, tokens, and integrations multiply, and the control objective should move from static permission review to continuous boundary enforcement.

Prompt injection turns AI features into policy enforcement risks. Once untrusted text can influence privileged actions, the application design must distinguish content from instruction and stop assuming that a model will preserve the intended trust boundary.

Teams that still treat SSRF, authentication failures, and API abuse as separate findings will miss the combined path that attackers actually use. The practical response is to govern the application, identity, and infrastructure boundaries as one control surface.


For practitioners

  • Harden authorization at the object and action layer Enforce server-side checks for every sensitive API call, object reference, and backend function so that authenticated users cannot act outside their allowed scope.
  • Separate model instructions from untrusted content Treat user input, retrieved text, and system prompts as different trust classes, and block prompt-driven tool use unless policy validation succeeds first.
  • Restrict SSRF reachability Apply outbound allowlists, block internal targets, and prevent application-initiated requests from reaching metadata services, admin interfaces, or internal-only APIs.
  • Review token and key scope across services Map where JWTs, API keys, and session tokens are trusted across microservices, then remove scopes that are broader than the action they actually need to perform.
  • Instrument access-pattern monitoring Detect unusual object access, repeated authorization failures, unexpected prompt-triggered tool calls, and internal request bursts that indicate boundary abuse.

Key takeaways

  • API-first web applications now fail when authorization, authentication, and prompt handling are governed as separate problems instead of one trust boundary.
  • The article’s risk picture centres on broken access control, injection, misconfiguration, authentication failures, and SSRF, with AI prompt injection adding a new route into privileged application behaviour.
  • Practitioners need to enforce server-side policy at every sensitive API action, isolate model instructions from untrusted content, and restrict application-originated requests to approved destinations.

Standards & Framework Alignment

This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.

OWASP API Security Top 10 and OWASP Agentic AI Top 10 address the attack and risk surface, while NIST CSF 2.0 sets the governance and control requirements practitioners need to meet.

FrameworkControl / ReferenceRelevance
OWASP API Security Top 10API5 — Broken Function Level AuthorizationThe article centres on API access control gaps and unauthorized action paths in web apps.
API2 — Broken AuthenticationAuthentication failures and token misuse are named as core risks in the article.
API7 — Server Side Request ForgerySSRF is one of the article’s explicit threat categories and a route into internal systems.
Recommendation — Enforce API5 checks on every sensitive function so authenticated users cannot invoke actions outside their role. Apply API2 controls to validate session and token handling across every service boundary. Use API7 controls to prevent application-originated requests from reaching internal or metadata endpoints.
OWASP Agentic AI Top 10ASI02 — Tool MisusePrompt injection can drive an AI-enabled application to misuse tools and backend actions.
Recommendation — Limit ASI02 exposure by validating every tool invocation against policy before execution.
NIST CSF 2.0PR.AA-05 — Access Permissions, Entitlements and AuthorizationsThe article is fundamentally about authorization boundaries and permission enforcement.
Recommendation — Map application entitlements to PR.AA-05 and remove permissions that exceed the task scope.

Key terms

  • Broken Access Control: Broken access control occurs when a system fails to restrict what an authenticated user, service, or workload can do. The issue often appears as missing checks, inconsistent enforcement, or excessive permissions. It is a structural weakness because attacks exploit the gap between verified identity and permitted action.
  • Prompt Injection (Agentic): An attack where malicious instructions are embedded in content that an AI agent reads, causing the agent to execute unintended actions using its own legitimate credentials. A primary vector for agent goal hijacking and identity abuse.
  • Server-Side Request Forgery: An attack pattern where a vulnerable server is tricked into making requests on the attacker’s behalf. In application exploitation, SSRF can be used to reach internal resources, fetch malicious payloads, or amplify a flaw into full code execution.
  • Role-Based Access Drift: Role-based access drift occurs when an identity continues to hold or use permissions that no longer match its job function. Over time, this creates blind spots in SaaS environments, where users can explore sensitive data, legacy applications, or privileged channels without triggering immediate suspicion.

Deepen your knowledge

NHI Mgmt Group covers identity security, NHI governance, and agentic AI through independent research, practitioner guides, and the NHI Foundation Level course. Explore nhimg.org for resources that connect identity governance to the broader security disciplines your programme depends on.
NHIMG Editorial Note
Published by the NHIMG editorial team on August 2, 2026.
Updated on October 13, 2026.
NHI Mgmt Group, the independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org