MediumGHSA-jcwr-x25h-x5fhCVE-2022-4245

codehaus-plexus vulnerable to XML injection

Published 25 Sept 2023 · Updated 3 May 2024

Is your project on an affected org.codehaus.plexus:plexus-utils?

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

Affected package

Affected
<3.0.24
Fixed in
3.0.24
Update to the fixed version for your release line, for example:mvn versions:use-dep-version -Dincludes=org.codehaus.plexus:plexus-utils -DdepVersion=3.0.24 -DforceVersion=true

Details

A flaw was found in codehaus-plexus. The org.codehaus.plexus.util.xml.XmlWriterUtil#writeComment fails to sanitize comments for a --> sequence. This issue means that text contained in the command string could be interpreted as XML and allow for XML injection.

Is GHSA-jcwr-x25h-x5fh in any of your client repos?

Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected org.codehaus.plexus:plexus-utils, and gives you the command that fixes it.

More advisories for org.codehaus.plexus:plexus-utils

  • HighCVE-2025-67030Plexus-Utils has a Directory Traversal vulnerability in its extractFile method · 25 Mar 2026
  • HighCVE-2022-4244plexus-codehaus vulnerable to directory traversal · 25 Sept 2023
  • CriticalCVE-2017-1000487OS Command Injection in Plexus-utils · 13 May 2022
org.codehaus.plexus:plexus-utils security overview

References

Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.