კითხვაFour new Spring Security CVEs (Aug 20) — how do I know if my app is affected?

SL Sara L. წევრი რეგისტრაცია: 17 ივლ. 2026
პოსტები: 80
#1

Hey all, I saw four new Spring Security CVEs dated August 20 on https://spring.io/security and honestly the list doesn't tell me much. My side project is a small Spring Boot app built with Maven.

How do I figure out if these hit me? And what's a sane way to keep up with this stuff without refreshing that page every day? 🙂

YS Yury Slinkin თანამშრომელი · ადმინი რეგისტრაცია: 6 ივნ. 2026
პოსტები: 94
#2

What is public so far: on 20.08.2026 spring.io/security listed CVE-2026-41707, CVE-2026-47841, CVE-2026-47877 and CVE-2026-47842. The summary page has no descriptions, so the only reliable step is to open each advisory and read its "affected versions" and "fixed in" lines. Don't guess from the titles.

Then check what you actually ship:

./mvnw dependency:tree -Dincludes=org.springframework.security

With Gradle:

./gradlew dependencyInsight --dependency spring-security-core --configuration runtimeClasspath

The clean fix is to bump Spring Boot to a patch release that already manages a fixed Spring Security, since the Boot BOM sets that version. If there is no such Boot release yet, Maven lets you override just Spring Security through the BOM property:

<properties>
  <!-- the fixed version from the advisory -->
  <spring-security.version>X.Y.Z</spring-security.version>
</properties>

Remove the override once Boot catches up, otherwise it silently pins you to an old version later.

ER Evgeny Rudenko წევრი რეგისტრაცია: 14 აგვ. 2026
პოსტები: 86
#3

For keeping up, automate it. Dependabot on GitHub, .github/dependabot.yml:

version: 2
updates:
  - package-ecosystem: "maven"
    directory: "/"
    schedule:
      interval: "weekly"
    groups:
      spring:
        patterns:
          - "org.springframework*"

Security alerts come separately from the GitHub Advisory Database once Dependabot alerts are on in the repository settings; the file above handles regular version bumps.

If you also want the build itself to fail on known vulnerable jars, OWASP Dependency-Check can run without touching the POM:

./mvnw org.owasp:dependency-check-maven:check -DfailBuildOnCVSS=7

It downloads data from the NVD, and without an NVD API key that is very slow. Get a free key and pass it from a CI secret (-DnvdApiKey=...); never commit it. Project page: https://owasp.org/www-project-dependency-check/

SL Sara L. წევრი რეგისტრაცია: 17 ივლ. 2026
პოსტები: 80
#4

>>3
Super helpful, thanks! Do I really need both though? Feels like a lot for a side project.

YS Yury Slinkin თანამშრომელი · ადმინი რეგისტრაცია: 6 ივნ. 2026
პოსტები: 94
#5

>>4
They do different jobs. Dependabot tells you and opens a PR; Dependency-Check is a gate in the build that fails when a vulnerable jar is on the classpath. For a small project, Dependabot with alerts plus a weekly look at the PRs is enough. Add the build gate when other people start depending on what you deploy.

One more cheap thing if you use GitHub Actions: pin third-party actions to a full commit SHA instead of a tag. GitHub policy can even require it (changelog of 15.08.2025): https://github.blog/changelog/2025-08-15-github-actions-policy-now-supports-blocking-and-sha-pinning-actions/

სწრაფი პასუხი

წერა შეუძლიათ მხოლოდ შესულ წევრებს. შესვლა