An API flaw is a weakness in an application programming interface: the rules and endpoints that let software exchange data or request actions. Common causes include missing or incorrect access checks, weak authentication, excessive data returned by an endpoint, and inadequate input validation. A flaw can let an unauthorized user retrieve records or invoke functions that should be restricted.
In cyber security, API flaws matter because apps often rely on APIs to handle account, transaction, and location data. In a mobile service, for example, an endpoint that fails to verify which records a user may access could expose other customers’ purchase histories. This is a general risk, not evidence that an API flaw caused any particular exposure. Defenses include enforcing authorization on every request, limiting returned data, validating inputs, monitoring API activity, and testing endpoints for access-control errors.


