Cross-site Scripting (XSS) Affecting tomcat8-jsp-2.3-api package, versions <0:8.5.42-1.80.amzn1


Severity

Recommended
high

Based on Amazon Linux security rating.

Threat Intelligence

Exploit Maturity
Mature
EPSS
1.1% (86th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Cross-site Scripting (XSS) vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-AMZN201803-TOMCAT8JSP23API-1717717
  • published27 Sept 2021
  • disclosed28 May 2019

Introduced: 28 May 2019

CVE-2019-0221  (opens in a new tab)
CWE-79  (opens in a new tab)

How to fix?

Upgrade Amazon-Linux:2018.03 tomcat8-jsp-2.3-api to version 0:8.5.42-1.80.amzn1 or higher.
This issue was patched in ALAS-2019-1234.

NVD Description

Note: Versions mentioned in the description apply only to the upstream tomcat8-jsp-2.3-api package and not the tomcat8-jsp-2.3-api package as distributed by Amazon-Linux. See How to fix? for Amazon-Linux:2018.03 relevant fixed versions and status.

The SSI printenv command in Apache Tomcat 9.0.0.M1 to 9.0.0.17, 8.5.0 to 8.5.39 and 7.0.0 to 7.0.93 echoes user provided data without escaping and is, therefore, vulnerable to XSS. SSI is disabled by default. The printenv command is intended for debugging and is unlikely to be present in a production website.

References