CWE-841: Improper Enforcement of Behavioral Workflow

What is CWE-841?

CWE-841 is Improper Enforcement of Behavioral Workflow. The flaw arises when the product supports a session in which more than one behavior must be performed by an actor, but it does not properly ensure that the actor performs the behaviors in the required sequence or timeframe.

OWASP TOP 10:2025 RANK6 — A06:2025 — Insecure Design
Related CVES (365 days)-
AbstractionClass
Likelihood of exploit-

No data

No vulnerability data for CWE-841

No data

No vulnerability data in CISA KEV for CWE-841

Official definition

ByMitre CWE

The product supports a session in which more than one behavior must be performed by an actor, but it does not properly ensure that the actor performs the behaviors in the required sequence or timeframe.

Workflow-related behaviors include:

  • Steps are performed in the expected order.

  • Required steps are not omitted.

  • Steps are not interrupted.

  • Steps are performed in a timely fashion.

Characteristics

Modes of introduction

  • Implementation: REALIZATION: This weakness is caused during implementation of an architectural security tactic.

Common consequences

ImpactScopeExplanation
Alter Execution Logic, Unexpected StateOtherBy performing actions in an unexpected order, or by omitting steps, an attacker could manipulate the business logic of the product or cause it to enter an invalid state. In some cases, this can also expose resultant weaknesses with security implications.

Detection methods

MethodApproachEffectiveness
Automated Static AnalysisAutomated static analysis, commonly referred to as Static Application Security Testing (SAST), can find some instances of this weakness by analyzing source code (or binary/compiled code) without having to execute it. Typically, this is done by building a model of data flow and control flow, then searching for potentially-vulnerable patterns that connect "sources" (origins of input) with "sinks" (destinations where the data interacts with external components, a lower layer such as the OS, etc.)-

Representative vulnerabilities

Sources (2)

CWE™ Program, operated by The MITRE Corporation. Copyright © 2006–2026, The MITRE Corporation. The MITRE Corporation hereby grants you a non-exclusive, royalty-free license to use CWE for research, development, and commercial purposes. CWE Terms of Use.

Learn more

Run an in-depth assessment with complete web risk management

CyStack VulnScan continuously discovers assets, validates vulnerabilities, and helps security teams prioritize remediation across the organization.