HighGHSA-rwqr-m72q-v6cmCVE-2022-42890

Untrusted code execution in Apache XML Graphics Batik

Published 25 Oct 2022 · Updated 24 Sept 2025

Is your project on an affected org.apache.xmlgraphics:batik?

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 packages

Affected
<1.16
Fixed in
1.16
Update to the fixed version for your release line, for example:mvn versions:use-dep-version -Dincludes=org.apache.xmlgraphics:batik -DdepVersion=1.16 -DforceVersion=true
Affected
<1.16
Fixed in
1.16
Update to the fixed version for your release line, for example:mvn versions:use-dep-version -Dincludes=org.apache.xmlgraphics:batik-bridge -DdepVersion=1.16 -DforceVersion=true

Details

A vulnerability in Batik of Apache XML Graphics allows an attacker to run Java code from untrusted SVG via JavaScript. This issue affects Apache XML Graphics prior to 1.16. Users are recommended to upgrade to version 1.16.

Is GHSA-rwqr-m72q-v6cm 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.apache.xmlgraphics:batik, and gives you the command that fixes it.

More advisories for org.apache.xmlgraphics:batik

  • HighCVE-2022-41704Apache XML Graphics Batik vulnerable to code execution via SVG. · 25 Oct 2022
  • HighCVE-2022-40146Apache Batik vulnerable to Server-Side Request Forgery · 23 Sept 2022
  • MediumCVE-2022-38648Apache Batik vulnerable to Server-Side Request Forgery · 23 Sept 2022
  • MediumCVE-2022-38398Apache Batik Server-Side Request Forgery · 23 Sept 2022
  • MediumCVE-2015-0250Improper Input Validation in Apache Batik · 17 May 2022
  • CriticalCVE-2018-8013Deserialization of Untrusted Data in Apache Batik · 13 May 2022
All 9 advisories for org.apache.xmlgraphics:batik

References

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