Web1 min readWikipedia, updated 19 May 2026
HTTP header injection
Web application security vulnerability
HTTP header injection is a general class of web application security vulnerability which occurs when Hypertext Transfer Protocol (HTTP) headers are dynamically generated based on user input. Header injection in HTTP responses can allow for HTTP response splitting, session fixation via the Set-Cookie header, cross-site scripting (XSS), and malicious redirect attacks via the location header. XSS attacks can be blocked with the use of a browser extension such as NoScript or Malwarebytes Browser Guard.
Adapted from the Wikipedia article, CC BY-SA 4.0. Continue on Wikipedia
Go deeper
Ideas this article links to.
- NoScriptExtension for Mozilla- and Chromium-based web browsers
- HTTP compressionCapability that can be built into web servers and web clients
- HTTP locationInstruction by a web server containing the intended location of a web page
- Browser extensionProgram that extends the functionality of a web browser
- HTTP cookieData item stored in a browser by a website