Is HTML injection the same as cross-site scripting?
They overlap but are not identical. Both stem from unescaped input reaching the page. XSS specifically executes attacker JavaScript, while HTML injection covers any injected markup, including cases where scripts are filtered out but other tags still render. Every XSS is a form of HTML injection, but not every HTML injection reaches script execution.