From ff6fdf8d80e135e05af2333f4832e241993d35ce Mon Sep 17 00:00:00 2001 From: DongHyeonka Date: Sat, 7 Nov 2026 17:13:24 +0900 Subject: [PATCH] =?UTF-8?q?build(deps):=20build-logic=EC=9D=98=20Jackson?= =?UTF-8?q?=203=EB=A5=BC=203.1.7=EB=A1=9C=20=EC=98=AC=EB=A6=B0=EB=8B=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 문제: build-logic만 카탈로그 `jackson3`(3.0.2)를 그대로 해석한다. 그 lockfile의 jackson-core·databind 3.0.2에 trivy HIGH가 10건 있다. - jackson-core: CVE-2026-29062(중첩 깊이, 3.1.0), CVE-2026-68494(비동기 파서, 3.1.4), GHSA-2m67-wjpj-xhg9(문서 길이 제한 우회, 3.1.1), CVE-2026-89407·CVE-2026-89425(3.1.7) - jackson-databind: CVE-2026-54512·CVE-2026-54513(PolymorphicTypeValidator 우회, 3.1.4), CVE-2026-68497(3.1.6), CVE-2026-91776·CVE-2026-91777(3.1.7) leaf는 이 키를 쓰지 않고 Boot BOM의 jackson-bom을 따른다. 고친 방법: `jackson3`를 3.1.7로 올린다. 위 10건을 모두 고친 가장 작은 버전이고, 바로 앞 커밋의 Boot 4.0.9 BOM이 leaf에 주는 버전과 같다. 그래서 빌드와 애플리케이션이 같은 Jackson을 쓴다. 키 설명도 그 뜻으로 고쳤다. - 버린 대안: 3.2.x. 마이너를 하나 더 넘고, leaf와 다른 Jackson이 된다. 위험·한계: build-logic은 Jackson으로 registry JSON과 설정 metadata만 읽는다 (`ModuleRegistry`, `ConfigurationMetadataClasspath`). 3.0→3.1 사이 동작 차이는 이 두 곳의 테스트가 본다. 검증(desktop, 이 트리 c0ddf259): - 세 빌드를 `--write-locks`로 다시 썼다. 바뀐 lockfile은 build-logic 하나이고, jackson-core·databind·bom 3.0.2→3.1.7, jackson-annotations 2.20→2.21이다. - `./gradlew -p build-logic check javadoc` rc=0, 테스트 173 실패 0 skip 0. - `./gradlew verifyDependencyLocks architectureCheck` rc=0(registry를 Jackson으로 읽는 설정 단계 포함). optional 빌드 `verifyDependencyLocks` rc=0. --- src/build-logic/gradle.lockfile | 8 ++++---- src/gradle/libs.versions.toml | 8 +++++--- 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/src/build-logic/gradle.lockfile b/src/build-logic/gradle.lockfile index 5a14976f..6de0fecb 100644 --- a/src/build-logic/gradle.lockfile +++ b/src/build-logic/gradle.lockfile @@ -8,7 +8,7 @@ com.diffplug.durian:durian-swt.os:4.3.0=runtimeClasspath,testRuntimeClasspath com.diffplug.spotless:spotless-lib-extra:4.6.2=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath com.diffplug.spotless:spotless-lib:4.6.2=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath com.diffplug.spotless:spotless-plugin-gradle:8.6.0=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath -com.fasterxml.jackson.core:jackson-annotations:2.20=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath +com.fasterxml.jackson.core:jackson-annotations:2.21=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath com.github.spotbugs.snom:spotbugs-gradle-plugin:6.5.6=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath com.googlecode.concurrent-trees:concurrent-trees:2.6.1=runtimeClasspath,testRuntimeClasspath com.googlecode.javaewah:JavaEWAH:1.2.3=runtimeClasspath,testRuntimeClasspath @@ -40,7 +40,7 @@ org.junit:junit-bom:5.11.3=testCompileClasspath,testRuntimeClasspath org.opentest4j:opentest4j:1.3.0=testCompileClasspath,testRuntimeClasspath org.slf4j:slf4j-api:2.0.17=runtimeClasspath,testRuntimeClasspath org.tukaani:xz:1.9=runtimeClasspath,testRuntimeClasspath -tools.jackson.core:jackson-core:3.0.2=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath -tools.jackson.core:jackson-databind:3.0.2=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath -tools.jackson:jackson-bom:3.0.2=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath +tools.jackson.core:jackson-core:3.1.7=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath +tools.jackson.core:jackson-databind:3.1.7=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath +tools.jackson:jackson-bom:3.1.7=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath empty=annotationProcessor,testAnnotationProcessor diff --git a/src/gradle/libs.versions.toml b/src/gradle/libs.versions.toml index 7fa444ef..6ee4a7bf 100644 --- a/src/gradle/libs.versions.toml +++ b/src/gradle/libs.versions.toml @@ -56,9 +56,11 @@ grpc = "1.68.1" jmh = "1.37" jmhPlugin = "0.7.3" jqwik = "1.9.1" -# Jackson 3 and the JSON-Schema validator share a number today by coincidence, not by -# contract; separate keys so bumping one cannot move the other. -jackson3 = "3.0.2" +# Jackson 3 and the JSON-Schema validator once shared a number by coincidence, not by +# contract; separate keys so bumping one cannot move the other. Only build-logic resolves +# jackson3 as written: in the leaves the Spring Boot BOM's jackson-bom decides. Keep it at the +# BOM's number so the build and the application run the same Jackson. +jackson3 = "3.1.7" jsonSchemaValidator = "3.0.2" junitJupiter = "5.11.3" junitPlatform = "1.11.3"