Published:2007/06/15  Last Updated:2008/05/21

Apache Tomcat sample web application cross-site scripting vulnerability


Apache Tomcat, from the Apache Software Foundation, contains a cross-site scripting vulnerability in its sample program.

Products Affected

  • Apache Tomcat 4.0.0 - 4.0.6
  • Apache Tomcat 4.1.0 - 4.1.36
  • Apache Tomcat 5.0.0 - 5.0.30
  • Apache Tomcat 5.5.0 - 5.5.24
  • Apache Tomcat 6.0.0 - 6.0.13


Apache Tomcat from the Apache Software Foundation is an implementation of the Java Servlet and JavaServer Page (JSP) technologies.
jsp-examples, a sample web application included in Apache Tomcat, contains a cross-site scripting vulnerability.


An arbitrary script may be executed on the user's web browser.


Update the Software
Update to Apache Tomcat 6.0.14, available from the developer as of August 9, 2007.

Avoid installing the sample program.
We recommend that users of Apache Tomcat 4.x and 5.x apply the above workaround, as the latest version is not available yet.


JPCERT/CC Addendum

Vulnerability Analysis by JPCERT/CC

Analyzed on 2007.06.15

Measures Conditions Severity
Access Required Routed - can be attacked over the Internet using packets
  • High
Authentication None - anonymous or no authentication (IP addresses do not count)
  • High
User Interaction Required Simple - the user must be convinced to take a standard action that does not feel harmful to most users, such as click on a link or view a file
  • Medium
Exploit Complexity Low - little to no expertise and/or luck required to exploit (cross-site scripting)
  • High

Description of each analysis measures


Toshiharu Sugiyama of UBsecure, Inc. reported this vulnerability to IPA.
JPCERT/CC coordinated with the vendors under Information Security Early Warning Partnership.

Other Information

JPCERT Reports
CERT Advisory
CPNI Advisory
CVE CVE-2007-2449
JVN iPedia JVNDB-2007-000456

Update History