fix: security patches for docker images and maven dependencies#18
Open
chethann007 wants to merge 1 commit intodevelopfrom
Open
fix: security patches for docker images and maven dependencies#18chethann007 wants to merge 1 commit intodevelopfrom
chethann007 wants to merge 1 commit intodevelopfrom
Conversation
|
There was a problem hiding this comment.
Pull request overview
This PR focuses on security remediation by updating Java dependency versions in the Maven parent POM and adjusting Alpine-based runtime images to pull patched system libraries.
Changes:
- Bumped Jackson version in the parent
pom.xmland added managed versions forc3p0andmchange-commons-java. - Added
apk upgradeand installedzlibwith a minimum version constraint in multiple service Dockerfiles.
Reviewed changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 8 comments.
Show a summary per file
| File | Description |
|---|---|
| pom.xml | Updates Jackson version and adds dependencyManagement overrides for c3p0 / mchange-commons-java to address transitive security issues. |
| build/userorg/Dockerfile | Upgrades Alpine packages at build time and installs curl + constrained zlib. |
| build/notification/Dockerfile | Upgrades Alpine packages at build time and installs curl + constrained zlib. |
| build/lms/Dockerfile | Upgrades Alpine packages at build time and installs curl + constrained zlib. |
| build/lern/Dockerfile | Installs constrained zlib and runs apk upgrade in the runtime image stage. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


Description
This PR addresses several security vulnerabilities discovered via Trivy container scanning in both the base Alpine OS image and the Java
pom.xmldependencies across all Microservices. The vulnerabilities resolved are:OS Vulnerabilities:
zlibBuffer Overflow vulnerability (CVE-2026-22184)Java Vulnerabilities:
jackson-coreNumber Length Constraint DoS (GHSA-72hv-8253-57qq)c3p0andmchange-commons-javaArbitrary Code Execution via JNDI (CVE-2026-27830, CVE-2026-27727)To remediate these, the PR enforces
apk upgradeand specificzlibversion requirements (>=1.3.2-r0) during Docker builds, bumpsjackson.versionto2.18.6, pinsc3p0andmchange-commons-javaviadependencyManagement.Fixes # (issue)
Type of Change
Microservice(s) Affected
userorg-servicelms-servicenotification-servicelern-service(Unified/Common)core/shared-utilsHow Has This Been Tested?
mvn testfor the affected module.trivy imageconfirming 0 vulnerabilities across OS and Java artifacts.Checklist: