Unsafe data flow occurs when untrusted input travels through an application and reaches a sensitive operation without appropriate validation, sanitization, or other safeguards. Sensitive operations include building a database query, rendering HTML, executing a command, or making an authorization decision. The risk depends on the destination and how the data is used.
Attackers may exploit these paths to trigger issues such as SQL injection, cross-site scripting, or command injection. Security reviews and automated code-analysis tools look for flows from sources of untrusted data, such as user input, to risky destinations, often called sinks. Developers can break dangerous flows with context-appropriate validation, encoding, parameterized queries, and safe APIs. A flagged flow is a signal for investigation, not proof of an exploitable vulnerability; reviewers should verify the code path and safeguards before treating a finding as a merge blocker.


