CVE-2007-1358: Apache Tomcat XSS In Accept-Language Headers

org.apache.tomcat:tomcat Updated 02 Oct 2025

Summary

01/05/2022
No i
Low
Not published

CVE-2007-1358: Apache Tomcat XSS In Accept-Language Headers. Affects org.apache.tomcat:tomcat across 2 version ranges.

>= 4.0.0, <= 4.0.6 >= 4.1.0, <= 4.1.34

No fix is published. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

Background

Apache Tomcat is an open-source web server and servlet container that is used to serve Java-based web applications. It provides a Java Servlet and JavaServer Pages (JSP) environment for running web applications. The vulnerability affects Apache Tomcat versions 4.0.0 through 4.0.6 and 4.1.0 through 4.1.34. This vulnerability allows remote attackers to inject arbitrary web script or HTML via crafted "Accept-Language" headers that do not conform to RFC 2616.

Vulnerability Detail

The vulnerability in Apache Tomcat is a cross-site scripting (XSS) vulnerability. It occurs when certain applications using Apache Tomcat accept "Accept-Language" headers that do not conform to RFC 2616. Remote attackers can exploit this vulnerability to inject arbitrary web script or HTML into the affected application. This can lead to various security risks, including the execution of malicious code, session hijacking, and information disclosure.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Workaround

If upgrading to a patched version is not immediately possible, a temporary workaround is to implement input validation and sanitization measures in the application code. This can include filtering and escaping user input to prevent the execution of malicious scripts. It is also recommended to enforce strict adherence to the RFC 2616 specification for "Accept-Language" headers.

Conclusion

The XSS vulnerability in Apache Tomcat can have serious security implications for affected applications. It is crucial to promptly apply the recommended security patches or upgrade to a patched version of Apache Tomcat. Additionally, implementing proper input validation and sanitization measures can help mitigate the risk of XSS attacks. For further support and assistance in vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for org.apache.tomcat:tomcat →

Share this vulnerability

FAQ

Apache Tomcat is an open-source web server and servlet container that is used to serve Java-based web applications.

The vulnerability affects Apache Tomcat versions 4.0.0 through 4.0.6 and 4.1.0 through 4.1.34.

The vulnerability allows remote attackers to inject arbitrary web script or HTML into the affected application, leading to various security risks such as the execution of malicious code, session hijacking, and information disclosure.

To fix this vulnerability, it is recommended to upgrade to a patched version of Apache Tomcat and ensure proper input validation and sanitization in the application code.

A temporary workaround is to implement input validation and sanitization measures in the application code and enforce strict adherence to the RFC 2616 specification for "Accept-Language" headers.

Related vulnerabilities

Recent vulnerabilities recorded for org.apache.tomcat:tomcat.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback