Tomcat returns 400 for a request containing an invalid Host header

Solution Verified - Updated -

Issue

  • We have some requests with an invalid host header, such as the scheme being included in it (http://localhost:8080). Such requests were accepted previously but now receive 400 responses after upgrading Tomcat.

Environment

  • JBoss Web Server (JWS) 5.x
  • Tomcat
    • 8.0.52+
    • 9.0.5+

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content