USPR-13804: fix(deps): force spring-expression minimum version to 7.0.8 (GHSA-wxpp-56q6-5pcg) - #395
Open
midnight-clue[bot] wants to merge 1 commit into
Open
Conversation
…n to 7.0.8 (GHSA-wxpp-56q6-5pcg) Force spring-expression to >= 7.0.8 via root build.gradle resolutionStrategy override to fix Dependabot alert #123. spring-expression 7.0.0-7.0.7 are transitively pulled in via Spring Boot 4.0.6 BOM and are vulnerable to GHSA-wxpp-56q6-5pcg (Denial of Service via Unbounded Cache in SpEL). The fix is available in 7.0.8. Co-Authored-By: Catarina Correia <catarina.correia@getyourguide.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Context & Problem
Dependabot alert #123 flagged spring-expression 7.0.0-7.0.7 as vulnerable to GHSA-wxpp-56q6-5pcg (Denial of Service via Unbounded Cache in SpEL, moderate severity). This package is transitively resolved to 7.0.7 via Spring Boot 4.0.6 BOM (spring-context -> spring-boot-dependencies). The vulnerability is fixed in 7.0.8. Since spring-expression is a transitive dependency only, Dependabot cannot auto-generate a PR; a manual override is required.
Solution
Forces
org.springframework:spring-expressionto >= 7.0.8 via a new resolutionStrategy override block in the rootbuild.gradle, matching the existing pattern used for other transitive CVE fixes (jackson, logback, tomcat, netty). The block ensures spring-expression resolves to 7.0.8 instead of the vulnerable 7.0.7 pulled in by the Spring Boot 4.0.6 BOM.Verification
🔍 Braintrust trace