Is org.springframework.boot:spring-boot 2.7 vulnerable?

Maven · 19 releases from 2.7.0 to 2.7.18 · latest org.springframework.boot:spring-boot is 4.1.2 · checked 18 Nov 2026

Yes: 2 known advisories

Yes. org.springframework.boot:spring-boot 2.7.18, the last 2.7 release, is affected by 2 known security advisories (2 high), including CVE-2026-40973, CVE-2025-22235. Upgrade to 3.5.14 or later to fix all of them.

Upgrade with:mvn versions:use-dep-version -Dincludes=org.springframework.boot:spring-boot -DdepVersion=3.5.14 -DforceVersion=true

Is your project on an affected org.springframework.boot:spring-boot?

Private repo? Upload its lockfile instead, or connect GitHub to check every repo.

Look after several Java apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie

Advisories affecting org.springframework.boot:spring-boot 2.7.18

  • HighCVE-2026-40973GHSA-wwpq-f5c3-7hvx28 Apr 2026

    Spring Boot accepts predictable temp directory without ownership verification

    Affected
    >=4.0.0 <4.0.6 · >=3.5.0 <3.5.14 · >=3.4.0 <=3.4.15 · >=3.3.0 <=3.3.18 · <=2.7.32
    Fixed in
    3.5.14, 4.0.6
  • HighCVE-2025-22235GHSA-rc42-6c7j-7h5r28 Apr 2025

    Spring Boot EndpointRequest.to() creates wrong matcher if actuator endpoint is not exposed

    Affected
    <=2.7.24.2 · >=3.1.0 <=3.1.15.2 · >=3.2.0 <=3.2.13.2 · >=3.3.0 <3.3.11 · >=3.4.0 <3.4.5
    Fixed in
    3.3.11, 3.4.5

Every org.springframework.boot:spring-boot 2.7.x release

Affected: 2.7.0 to 2.7.18. Latest org.springframework.boot:spring-boot: 4.1.2.

VersionKnown advisories
org.springframework.boot:spring-boot 2.7.18CVE-2026-40973, CVE-2025-22235
org.springframework.boot:spring-boot 2.7.17CVE-2026-40973, CVE-2025-22235
org.springframework.boot:spring-boot 2.7.16CVE-2026-40973, CVE-2025-22235
org.springframework.boot:spring-boot 2.7.15CVE-2026-40973, CVE-2025-22235
org.springframework.boot:spring-boot 2.7.14CVE-2026-40973, CVE-2025-22235
org.springframework.boot:spring-boot 2.7.13CVE-2026-40973, CVE-2025-22235
org.springframework.boot:spring-boot 2.7.12CVE-2026-40973, CVE-2025-22235
org.springframework.boot:spring-boot 2.7.11CVE-2026-40973, CVE-2025-22235
org.springframework.boot:spring-boot 2.7.10CVE-2026-40973, CVE-2025-22235
org.springframework.boot:spring-boot 2.7.9CVE-2026-40973, CVE-2025-22235
org.springframework.boot:spring-boot 2.7.8CVE-2026-40973, CVE-2025-22235
org.springframework.boot:spring-boot 2.7.7CVE-2026-40973, CVE-2025-22235
org.springframework.boot:spring-boot 2.7.6CVE-2026-40973, CVE-2025-22235
org.springframework.boot:spring-boot 2.7.5CVE-2026-40973, CVE-2025-22235
org.springframework.boot:spring-boot 2.7.4CVE-2026-40973, CVE-2025-22235
org.springframework.boot:spring-boot 2.7.3CVE-2026-40973, CVE-2025-22235
org.springframework.boot:spring-boot 2.7.2CVE-2026-40973, CVE-2025-22235
org.springframework.boot:spring-boot 2.7.1CVE-2026-40973, CVE-2025-22235
org.springframework.boot:spring-boot 2.7.0CVE-2026-40973, CVE-2025-22235

Which of your client projects are still on org.springframework.boot:spring-boot 2.7?

NPMscan reads the lockfiles in every GitHub repo you pick, finds the exact org.springframework.boot:spring-boot version each one installs, and checks it against these advisories. Each finding comes with the command that fixes it.

Other org.springframework.boot:spring-boot versions

Advisory data from OSV.dev (opens OSV.dev in a new tab), which includes the GitHub Advisory Database. Release list from the Maven registry. Refreshed daily.