CVE-2006-1548: Cross-site scripting in Apache Struts

struts:struts Updated 02 Oct 2025

Summary

01/05/2022
Yes i
Low
3.7

CVE-2006-1548: Cross-site scripting in Apache Struts. Affects struts:struts versions < 1.2.9. Fixed in 1.2.9. 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 Struts is an open-source framework for developing Java web applications. It provides a Model-View-Controller (MVC) architecture and various components to simplify web application development. The vulnerability in Apache Struts before version 1.2.9 allows remote attackers to inject arbitrary web script or HTML through the parameter name, which is not properly filtered in the resulting error message.

Vulnerability Detail

The vulnerability, known as Cross-Site Scripting (XSS), affects the LookupDispatchAction, DispatchAction, and ActionDispatcher components in Apache Struts. By exploiting this vulnerability, an attacker can inject malicious scripts or HTML code into the application, which can then be executed by unsuspecting users. This can lead to various security issues, including session hijacking, data theft, and unauthorized actions on behalf of the user.

How To Fix

Minimum fixed version

1.2.9

This is the first release that contains the fix.

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

If upgrading to the latest version of Apache Struts is not feasible, a temporary workaround is to manually sanitize the parameter name before using it in error messages. This can be done by applying appropriate input validation and output encoding techniques to ensure that any user-supplied input is properly sanitized and rendered as plain text in error messages.

Conclusion

The vulnerability in Apache Struts allows remote attackers to inject arbitrary web script or HTML, potentially leading to various security issues. It is recommended to upgrade to the latest version of Apache Struts to fix this vulnerability. If upgrading is not feasible, developers should apply proper input validation and output encoding techniques to sanitize user-supplied input. For further support on vulnerability remediation, contact DevNack.com.

See every vulnerability recorded for struts:struts →

Share this vulnerability

FAQ

Apache Struts is an open-source framework for developing Java web applications. It provides a Model-View-Controller (MVC) architecture and various components to simplify web application development.

Cross-Site Scripting (XSS) is a type of security vulnerability that allows attackers to inject malicious scripts or HTML code into web pages viewed by other users. This can lead to various security issues, including session hijacking, data theft, and unauthorized actions on behalf of the user.

The vulnerability in Apache Struts allows remote attackers to inject arbitrary web script or HTML through the parameter name, which is not properly filtered in the resulting error message. This can lead to the execution of malicious scripts or HTML code by unsuspecting users, potentially compromising their session, stealing their data, or performing unauthorized actions on their behalf.

To fix the vulnerability, it is recommended to upgrade to Apache Struts version 1.2.9 or later. This version includes proper filtering of the parameter name, preventing the injection of malicious scripts or HTML. Developers should update their application's dependencies to use the patched version of Apache Struts.

If upgrading to the latest version of Apache Struts is not feasible, a temporary workaround is to manually sanitize the parameter name before using it in error messages. This can be done by applying appropriate input validation and output encoding techniques to ensure that any user-supplied input is properly sanitized and rendered as plain text in error messages.

Related vulnerabilities

Recent vulnerabilities recorded for struts:struts.

How To Fix

Minimum fixed version

1.2.9

This is the first release that contains the fix.

Tip — Not sure which version your app runs? Vulert can match this fix to it. 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