This repository contains tools and example projects for Chainguard Libraries for Java.
Available directories:
cve-2024-38819- Spring Framework application to showcase how to fix CVE-2024-38819cve-2026-22732- Spring Security application to showcase how to fix CVE-2026-22732spring-boot- minimal Spring Boot web application that resolves from Chainguard Libraries, buildable with both Maven and Gradletools- collection of scripts and example configuration files
- A Chainguard account with a Java libraries entitlement
chainctlinstalled and authenticated- JDK 17 for the
cve-*demos and JDK 21 for thespring-bootdemo — the versions differ by design, since each CVE demo is pinned to the Spring Boot release whose CVE it shows, andcve-2024-38819on Spring Boot 2.5.x predates Java 21 support. To run every demo, have both JDK 17 and JDK 21 available - Apache Maven — required only for
tools/download-dependency-tree-maven.sh; the demo projects use the bundled Maven wrapper (./mvnw) and need no separate install - Gradle — not required; the
spring-bootdemo bundles the Gradle wrapper (./gradlew) and provisions its Java 21 toolchain automatically
Configure access to Chainguard Libraries, either directly or through a
repository manager, using the example settings and commands in
tools. Then follow each demo's README to run it.
- Chainguard Libraries product page
- Chainguard Libraries documentation
- Chainguard Libraries for Java documentation
- Chainguard learning labs with more demos
- Chainguard Libraries for JavaScript examples
- Chainguard Libraries for Python examples
- July 2026 Learning Lab about Chainguard Libraries for Java with CVE remediation, fallback, and policies, webinar recap with timestamped video, questions, and demos)
- Chainguard Libraries fallback to upstream and policies
- Chainguard Libraries for Java - CVE remediation and browsing
- Chainguard Libraries for Java - CVE remediation example projects