Skip to content

security(maven): 🛡️ Spring Boot 4.1.1 (Spring 7.0.9), Jackson 2.21.7, Logback 1.6.4 - #71

Merged
pacificcode merged 2 commits into
mainfrom
security/spring-boot-3.5
Sep 25, 2026
Merged

pacificcode merged 2 commits into
mainfrom
security/spring-boot-3.5

Conversation

@pacificcode

@pacificcode pacificcode commented Sep 24, 2026 •

Copy link
Copy Markdown
Contributor

Clears all 9 ArmorCode/Snyk tickets, including both CRITICALs, and gets mvn verify passing again for the first time since early 2025.

Snyk (local scan, org devops-secrets-vault)

critical high medium low total
main 4 18 22 7 51
this PR 0 0 0 0 0
ticket package result
761495 CRIT spring-boot-autoconfigure ✅ closed
761496 CRIT jackson-databind ✅ closed
761391 spring-boot ✅ closed
761485 spring-core ✅ closed
761498 jackson-core ✅ closed
761379 logback-core ✅ closed
761473 spring-beans ✅ closed (Spring 7.0.9)
761483 spring-web ✅ closed (Spring 7.0.9)
761490 spring-expression ✅ closed (Spring 7.0.9)

Changes

  • Spring Boot parent 3.2.3 → 4.1.1 (Spring Framework 7.0.9). The last three Spring findings, including CVE-2026-47885 and CVE-2026-47889, were fixed only in 7.0.9. spring-web is now managed by Boot rather than pinned separately.
  • java.version 8 → 17. Spring Boot 3+ requires 17, and the jar was compiled --release 8 while depending on Java 17 libraries, so on Java 8 it would fail at runtime.
  • Jackson 2 stays, pinned via Boot 4's jackson-2-bom.version 2.21.7. Boot 4 defaults to Jackson 3, but Jackson 3 is not on the classpath (checked with dependency:tree), so RestTemplate still uses Jackson 2. Explicit Jackson versions were dropped: since 2.20, jackson-annotations is minor-versioned (2.21), so a shared ${jackson.version} can't resolve it.
  • logback.version 1.6.4. Boot 4.1.1 manages 1.5.38, which still has CVE-2026-19880 (MEDIUM, fixed in 1.6.3).
  • Test: Spring 7 removed OkHttp3ClientHttpRequestFactory, so the test now uses the built-in JdkClientHttpRequestFactory and the okhttp test dependency is gone. No main-source changes.
  • Build repairs (pre-existing, but verify couldn't pass without them):
    • maven-pmd-plugin 3.20.0 → 3.28.0 and PMD 7.10.0 → 7.17.0. Plugin 3.20 can't run PMD 7, so mvn verify has failed on main since security(maven): 🛡️ major build to v7 #55 (2025-02).
    • spotbugs-maven-plugin 3.1.12.2 → 4.10.4.1, dropping the spotbugs 4.0.0-beta4 pin. The 2019 plugin can't read Java 17 bytecode.
    • Removed a stray ; after a nested class, which PMD 7.17 flags.
  • First changie entry (.changes/).

Testing

  • mvn clean verify -Dgpg.skip on Temurin 21: BUILD SUCCESS. PMD 0 violations, SpotBugs 0 bugs.
  • Live test against a dev tenant: ApplicationTests.contextLoads boots the app, which authenticates with client credentials (Jackson 2 token deserialization) and runs getSecret against a real secret. Passes on Boot 4.1.1.
  • Local snyk test: "Tested 27 dependencies for known issues, no vulnerable paths found."
  • ⚠️ This repo has no CI job that compiles or tests Java (only lint/deploy), so the checks on this PR won't exercise any of the above.

⚠️ For consumers

Spring Boot 4 / Spring 7 and Java 17 are major changes for anyone embedding this SDK. It should be released as a new major version when publishing resumes.

Not in scope (noted for the record)

  • Nothing is published. The only artifact ever released is com.thycotic.secrets:dsv-sdk-java:1.0.1 (2022). deploy.yml builds on JDK 1.8 and targets OSSRH, so merging this updates main (and closes the Snyk findings) but reaches no customer.

🤖 Generated with Claude Code

Clears 6 of 9 ArmorCode/Snyk tickets, including both CRITICALs
(spring-boot-autoconfigure, jackson-databind). Local Snyk: 51 findings
(4C/18H/22M/7L) → 9 (0C/6H/3M); every remaining HIGH needs Spring 7.0.9.

- Spring Boot parent 3.2.3 → 3.5.16 (Spring Framework 6.2.19).
- java.version 8 → 17: Spring Boot 3 requires 17; the jar was
  emitting Java 8 bytecode while depending on Java 17 libraries.
- Jackson via jackson-bom.version 2.21.7; explicit jackson versions
  dropped (jackson-annotations is minor-versioned since 2.20).
- logback.version 1.5.38 (Boot 3.5.16 manages 1.5.34 < fix 1.5.36).
- maven-pmd-plugin 3.20.0 → 3.28.0 and pmd 7.10.0 → 7.17.0: plugin 3.20
  cannot run PMD 7, so 'mvn verify' has failed since #55 (2025-02).
- spotbugs-maven-plugin 3.1.12.2 → 4.10.4.1 (drop 4.0.0-beta4 pin):
  the 2019 plugin cannot read Java 17 bytecode.
- Remove a stray ';' after a nested class that PMD 7.17 flags.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ changie entry was found

@snyk-io

snyk-io Bot commented Sep 24, 2026 •

Copy link
Copy Markdown
Contributor

✅ Snyk checks have passed. No issues have been found so far.

Status Scan Engine Critical High Medium Low Total (0)
✅ Open Source Security 0 0 0 0 0 issues
✅ Licenses 0 0 0 0 0 issues
✅ Code Security 0 0 0 0 0 issues

💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse.

@pacificcode

Copy link
Copy Markdown
Contributor Author

About the failing security/snyk check. It flags 2 findings as new, because they affect Spring 6.1/6.2 but not the 6.0.23 on main:

id CVE vulnerable range fix
SNYK-JAVA-ORGSPRINGFRAMEWORK-19267077 (resource allocation) CVE-2026-47885 [6.1.0, 7.0.9) 7.0.9 only
SNYK-JAVA-ORGSPRINGFRAMEWORK-19267079 (cookie without Secure) CVE-2026-47889 [6.2.0, 7.0.9) 7.0.9 only

No 6.x release fixes either one. Staying on 6.0.23 (EOL) keeps the 4 CRITICALs and 40+ other findings, so this PR trades 51 findings (4 CRIT) for 9 (0 CRIT), and these 2 are among the 9. Both look like server-side web issues (response handling, session cookies), and this SDK is an HTTP client, so they're probably not reachable here (not verified in code). They go away with the Spring 7 / Boot 4 follow-up.

Clears the three remaining Spring Framework findings (spring-beans,
spring-web, spring-expression), whose only fix is 7.0.9, and the
logback-classic directory traversal (CVE-2026-19880, fixed 1.6.3).

- Jackson 2 pinned via Boot 4's jackson-2-bom.version; Jackson 3 is
  not on the classpath, so RestTemplate still uses Jackson 2.
- spring-web version now managed by Boot, not pinned separately.
- Test uses JdkClientHttpRequestFactory: Spring 7 removed
  OkHttp3ClientHttpRequestFactory. okhttp test dependency dropped.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ changie entry was found

@pacificcode pacificcode changed the title security(maven): 🛡️ Spring Boot 3.5.16, Jackson 2.21.7, Logback 1.5.38 security(maven): 🛡️ Spring Boot 4.1.1 (Spring 7.0.9), Jackson 2.21.7, Logback 1.6.4 Sep 25, 2026
@pacificcode
pacificcode merged commit 5de27de into main Sep 25, 2026
8 checks passed
@pacificcode
pacificcode deleted the security/spring-boot-3.5 branch September 25, 2026 13:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants