Advisory Database
  • Advisories
  • Dependency Scanning
  1. maven
  2. ›
  3. org.apache.struts/struts2-core
  4. ›
  5. CVE-2016-2162

CVE-2016-2162: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

May 17, 2022 (updated November 7, 2023)

Apache Struts 2.x before 2.3.25 does not sanitize text in the Locale object constructed by I18NInterceptor, which might allow remote attackers to conduct cross-site scripting (XSS) attacks via unspecified vectors involving language display.

References

  • struts.apache.org/docs/s2-030.html
  • github.com/advisories/GHSA-2j4q-9fff-236j
  • github.com/apache/struts/blob/f511034acd7b97e07d281169b38e2af40c94903d/core/src/main/java/org/apache/struts2/interceptor/I18nInterceptor.java
  • nvd.nist.gov/vuln/detail/CVE-2016-2162
  • web.archive.org/web/20210123095722/http://www.securityfocus.com/bid/85070
  • web.archive.org/web/20210801130539/http://www.securitytracker.com/id/1035272

Code Behaviors & Features

Detect and mitigate CVE-2016-2162 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 2.0.0 before 2.3.28

Fixed versions

  • 2.3.28

Solution

Upgrade to version 2.3.28 or above.

Impact 6.1 MEDIUM

CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

Learn more about CVSS

Weakness

  • CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
  • CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Source file

maven/org.apache.struts/struts2-core/CVE-2016-2162.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:14:50 +0000.