Symptom

Kraken nightly scan flagged org.jdom:jdom2:2.0.6 as a high-severity CVE (GHSA-2363-cqg2-863c, patched in 2.0.6.1). GitHub’s dependency graph confirmed the vulnerable version in use. Initial classification marked it as “shippable runtime”; investigation showed it is build-classpath-only.

Root cause

com.android.tools.build.jetifier:jetifier-processor:1.0.0-beta10 (pulled transitively by AGP for Android Jetifier support) depends on jdom2:2.0.6. This lands in the Gradle buildscript classpath, not the server runtime classpath — it is never shipped in the deployed JAR or Debian package. ./gradlew :server:dependencies reported nothing for jdom2; the alert is only visible via ./gradlew buildEnvironment.

Fix

Prevention