Is org.apache.struts:struts2-rest-plugin 2.1 vulnerable?

Maven · 4 releases from 2.1.2 to 2.1.8.1 · latest org.apache.struts:struts2-rest-plugin is 7.4.0 · checked 18 Nov 2026

Yes: 4 known advisories

Yes. org.apache.struts:struts2-rest-plugin 2.1.8.1, the last 2.1 release, is affected by 4 known security advisories (4 high), including CVE-2013-4316, CVE-2017-9805, CVE-2017-9793. Upgrade to 2.5.16 or later to fix all of them.

Upgrade with:mvn versions:use-dep-version -Dincludes=org.apache.struts:struts2-rest-plugin -DdepVersion=2.5.16 -DforceVersion=true

Is your project on an affected org.apache.struts:struts2-rest-plugin?

Private repo? Upload its lockfile instead, or connect GitHub to check every repo.

Look after several Java apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie

Advisories affecting org.apache.struts:struts2-rest-plugin 2.1.8.1

  • HighCVE-2013-4316GHSA-j7h6-xr7g-m2c517 May 2022

    Code injection in Apache Struts

    Affected
    >=2.0.0 <2.3.15.2
    Fixed in
    2.3.15.2
  • HighCVE-2017-9805GHSA-gg9m-fj3v-r58c16 Oct 2018

    REST Plugin in Apache Struts uses an XStreamHandler with an instance of XStream for deserialization without any type filtering

    Affected
    >=2.1.1 <2.3.34 · >=2.5.0 <2.5.13
    Fixed in
    2.3.34, 2.5.13
  • HighCVE-2017-9793GHSA-vwxj-6m5m-rrvh16 Oct 2018

    The REST Plugin in Apache Struts is using an outdated XStream library

    Affected
    <2.3.34 · >=2.5.0 <2.5.13
    Fixed in
    2.3.34, 2.5.13
  • HighCVE-2018-1327GHSA-38cr-2ph5-frr916 Oct 2018

    Apache Struts REST Plugin can potentially allow a DoS attack

    Affected
    >=2.1.1 <2.5.16
    Fixed in
    2.5.16

Every org.apache.struts:struts2-rest-plugin 2.1.x release

Affected: 2.1.2 to 2.1.8.1. Latest org.apache.struts:struts2-rest-plugin: 7.4.0.

VersionKnown advisories
org.apache.struts:struts2-rest-plugin 2.1.8.1CVE-2013-4316, CVE-2017-9805, CVE-2017-9793, CVE-2018-1327
org.apache.struts:struts2-rest-plugin 2.1.8CVE-2013-4316, CVE-2017-9805, CVE-2017-9793, CVE-2018-1327
org.apache.struts:struts2-rest-plugin 2.1.6CVE-2013-4316, CVE-2017-9805, CVE-2017-9793, CVE-2018-1327
org.apache.struts:struts2-rest-plugin 2.1.2CVE-2013-4316, CVE-2017-9805, CVE-2017-9793, CVE-2018-1327

Which of your client projects are still on org.apache.struts:struts2-rest-plugin 2.1?

NPMscan reads the lockfiles in every GitHub repo you pick, finds the exact org.apache.struts:struts2-rest-plugin version each one installs, and checks it against these advisories. Each finding comes with the command that fixes it.

Other org.apache.struts:struts2-rest-plugin versions

Advisory data from OSV.dev (opens OSV.dev in a new tab), which includes the GitHub Advisory Database. Release list from the Maven registry. Refreshed daily.