Skip to content

Commit a194726

Browse files
Fix gcp scanner vulnerabilities
1 parent 1e6805f commit a194726

2 files changed

Lines changed: 21 additions & 7 deletions

File tree

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM --platform=$BUILDPLATFORM gradle:8.10.0-jdk21-alpine AS build
1+
FROM --platform=$BUILDPLATFORM gradle:8.10.2-jdk21-alpine AS build
22
ARG RELEASE_MODE
33
ARG APP_VERSION
44
WORKDIR /usr/app
@@ -9,7 +9,7 @@ RUN if [ "${RELEASE_MODE}" = true ]; then \
99
-Dorg.gradle.project.version=${APP_VERSION}; \
1010
else gradle build --no-build-cache --exclude-task test -Dorg.gradle.project.version=${APP_VERSION}; fi
1111

12-
FROM amazoncorretto:21.0.9
12+
FROM amazoncorretto:21.0.10-alpine3.21
1313
LABEL version=${APP_VERSION} description="EPAM ReportPortal. Auth Service" maintainer="Andrei Varabyeu <andrei_varabyeu@epam.com>, Hleb Kanonik <hleb_kanonik@epam.com>"
1414
ARG APP_VERSION=${APP_VERSION}
1515
ENV APP_DIR=/usr/app

build.gradle

Lines changed: 19 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,22 @@ repositories {
2020
}
2121

2222
ext['spring-boot.version'] = '3.4.12'
23+
ext['spring-framework.version'] = '6.2.17' // CVE-2026-22735, CVE-2026-22737
24+
ext['spring-security.version'] = '6.5.9' // CVE-2026-22732 (OSS; 6.4.x fix commercial-only)
2325
ext['hibernate-validator.version'] = '8.0.2.Final'
2426

2527

2628
dependencies {
2729

28-
implementation 'org.apache.tomcat.embed:tomcat-embed-core:11.0.14'
29-
implementation 'org.apache.tomcat.embed:tomcat-embed-el:11.0.14'
30-
implementation 'org.apache.tomcat.embed:tomcat-embed-websocket:11.0.14'
30+
implementation 'io.netty:netty-codec-http2:4.1.132.Final'
31+
implementation 'io.netty:netty-codec-http:4.1.132.Final'
32+
implementation 'org.apache.tomcat.embed:tomcat-embed-core:11.0.21'
33+
implementation 'com.fasterxml.jackson.core:jackson-core:2.21.2'
34+
implementation 'ch.qos.logback:logback-core:1.5.32'
35+
36+
implementation 'org.apache.tomcat.embed:tomcat-embed-core:11.0.20'
37+
implementation 'org.apache.tomcat.embed:tomcat-embed-el:11.0.20'
38+
implementation 'org.apache.tomcat.embed:tomcat-embed-websocket:11.0.20'
3139

3240
// Spring Boot Starters
3341
api 'org.springframework.boot:spring-boot-starter-data-jpa'
@@ -75,13 +83,14 @@ dependencies {
7583
api 'org.springframework.security:spring-security-oauth2-client'
7684
implementation 'org.springframework.security:spring-security-oauth2-authorization-server:1.5.3'
7785
implementation 'org.springframework.security:spring-security-oauth2-jose'
86+
implementation 'com.nimbusds:nimbus-jose-jwt:10.0.2' // CVE-2025-53864 (scanner fixed-version: 10.0.2+)
7887
implementation 'org.springframework.security:spring-security-oauth2-core'
7988
implementation 'org.springframework.security:spring-security-jwt:1.1.1.RELEASE'
8089
implementation 'org.springframework.security:spring-security-ldap'
81-
implementation 'org.springframework.security:spring-security-saml2-service-provider:6.4.2'
90+
implementation 'org.springframework.security:spring-security-saml2-service-provider:6.5.9'
8291
implementation 'org.opensaml:opensaml-saml-api:4.0.1'
8392
implementation 'org.opensaml:opensaml-saml-impl:4.0.1'
84-
runtimeOnly 'com.nimbusds:oauth2-oidc-sdk:10.15.1'
93+
implementation 'com.nimbusds:oauth2-oidc-sdk:10.15.1'
8594

8695
//Others dependencies
8796
implementation 'org.jasypt:jasypt:1.9.3'
@@ -168,6 +177,11 @@ configurations {
168177
// Exclude obsolete and vulnerable jdk15on versions globally
169178
exclude group: 'org.bouncycastle', module: 'bcprov-jdk15on'
170179
exclude group: 'org.bouncycastle', module: 'bcpkix-jdk15on'
180+
181+
resolutionStrategy {
182+
force 'com.nimbusds:nimbus-jose-jwt:10.0.2'
183+
force 'com.nimbusds:oauth2-oidc-sdk:10.15.1'
184+
}
171185
}
172186
}
173187

0 commit comments

Comments
 (0)