Skip to content

CWE-841: Improper Enforcement of Behavioral Workflow

Class

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.

By 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. For example, a file-sharing protocol might require that an actor perform separate steps to provide a username, then a password, before being able to transfer files. If the file-sharing server accepts a password command followed by a transfer command, without any username being provided, the product might still perform the transfer. Note that this is different than CWE-696, which focuses on when the product performs actions in the wrong sequence; this entry is closely related, but it is focused on ensuring that the actor performs actions in the correct sequence. 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.

Consequences

  • Other: Alter Execution Logic

Recent advisories

  • GHSA-26r5-4mm2-px5c — Klever-Go: Zombie-order theft: `Buy` missing `IsClaimed` guard in native marketplace
  • GHSA-r4fx-v8hh-22mv — vm2: timeout Option Bypass via FinalizationRegistry Cleanup Callback (Unbounded Host Event-Loop Block)
  • CVE-2026-67279 — RouterOS SSH enters the connection protocol after a client-requested rekey even though user authentication was never attempted, allowing an unauthenticated…
  • GHSA-v358-wf77-39xv — klever-go: Percentage-transfer royalty skips the source debit at exactly-100% splits
  • EEF-CVE-2026-43974 — gun HTTP/1.1 client accepts unsolicited 101 Switching Protocols response allowing server-driven protocol hijack and OOM
  • GHSA-qx5f-ghc2-7g5c — Ethyca Fides has a Privacy Request Identity Verification Bypass Vulnerability via Duplicate Detection
  • GHSA-vcgp-9326-pqcp — net-imap vulnerable to STARTTLS stripping via invalid response timing
  • GHSA-c7xw-p58w-h6fj — Keycloak: Impersonation and lockout possible through incorrect handling of email trust
  • GHSA-x3rq-r3cm-5vc4 — Publify Business Logic Errors

All advisories for CWE-841

Is this in your code?

MergeHarbor checks every repository's dependencies against this database, ranks what matters by exploitability and reachability, routes it to the owning team and opens the fix pull request.

Check your repos with MergeHarbor