Skip to content

fix(deps): update dependency org.springframework:spring-webflux to v6.1.14 [security]#41

Merged
brettchaldecott merged 1 commit intomainfrom
renovate/maven-org.springframework-spring-webflux-vulnerability
Feb 17, 2025
Merged

fix(deps): update dependency org.springframework:spring-webflux to v6.1.14 [security]#41
brettchaldecott merged 1 commit intomainfrom
renovate/maven-org.springframework-spring-webflux-vulnerability

Conversation

@renovate
Copy link
Copy Markdown
Contributor

@renovate renovate bot commented Feb 11, 2025

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
org.springframework:spring-webflux 6.1.8 -> 6.1.14 age adoption passing confidence

GitHub Vulnerability Alerts

CVE-2024-38816

Applications serving static resources through the functional web frameworks WebMvc.fn or WebFlux.fn are vulnerable to path traversal attacks. An attacker can craft malicious HTTP requests and obtain any file on the file system that is also accessible to the process in which the Spring application is running.

Specifically, an application is vulnerable when both of the following are true:

  • the web application uses RouterFunctions to serve static resources
  • resource handling is explicitly configured with a FileSystemResource location

However, malicious requests are blocked and rejected when any of the following is true:

CVE-2024-38819

Applications serving static resources through the functional web frameworks WebMvc.fn or WebFlux.fn are vulnerable to path traversal attacks. An attacker can craft malicious HTTP requests and obtain any file on the file system that is also accessible to the process in which the Spring application is running.


Release Notes

spring-projects/spring-framework (org.springframework:spring-webflux)

v6.1.14

⭐ New Features
  • Use Locale.ROOT for locale neutral, case insensitive comparisons #​33708
  • Improve checks for relative paths in static resource handling #​33689
  • CorsUtils.isCorsRequest throws unhandled IllegalArgumentException and returns 500 Internal Server Error on malfomed Origin header #​33682
  • Skip processing of Java annotations in QualifierAnnotationAutowireCandidateResolver #​33580
  • Include argument name in MethodArgumentTypeMismatchException error message #​33573
  • Preserve coroutine context in WebClientExtensions #​33548
  • Blocking call detected in ConcurrentReferenceHashMap by BlockHound #​33450
  • Warning message about bean post-processing and eager injection may suggest the wrong cause #​33184
🐞 Bug Fixes
  • DelegatingFilterProxy Causes Pinned Virtual Threads #​33656
  • Potential NPE from MethodParameter.getMethod() check in KotlinDelegate.hasDefaultValue() #​33609
  • Missing native image hints for JDK proxies created by JMS connection factories #​33590
  • AotTestExecutionListener should not be invoked for a @DisabledInAotMode test class #​33589
  • Use encoded resource path instead of input path validation in spring-webflux #​33568
  • org.springframework.util.ResourceUtils#toRelativeURL drops custom URLStreamHandler #​33561
  • Current observation not in scope during WebClient ExchangeFilterFunction execution #​33559
  • ZoneIdEditor throws wrong exception type for TypeConverterSupport #​33545
  • MimeMessageHelper addInline with ByteArrayResource fail with null filename #​33527
  • @Cacheable throws NullPointerException when RuntimeException is thrown inside annotated code #​33492
  • Path variable values missing in RedirectView when PathPattern are used #​33422
  • Reactive HttpComponentsClientHttpResponse ignores Expires cookie attribute #​33157
📔 Documentation
  • Update fallback.adoc #​33721
  • Update scheduling.adoc #​33703
  • Fix link in testing/support-jdbc.adoc #​33686
  • Adapt Javadoc note about log level of BeanPostProcessorChecker #​33617
  • Reference the spring-framework-petclinic repository wich uses AspectJ #​33539
🔨 Dependency Upgrades
❤️ Contributors

Thank you to all the contributors who worked on this release:

@​arey, @​asibross, @​boulce, @​drdpov, @​hosamaly, @​ilya40umov, @​izeye, and @​junhyeongkim2

v6.1.13

⭐ New Features
  • Errors thrown from SmartLifeycle#stop results in (unnecessary) waiting for the shutdown timeout #​33442
  • Updates to resource handling for functional endpoints #​33434
  • Stop logging result in WebAsyncManager #​33406
  • spring native not support method handler with kotlin default value #​33384
🐞 Bug Fixes
  • BindingReflectionHintsRegistrar do not take into account the boxed type Boolean #​33380
  • Ensure use of specified status code on redirect with Rendering #​33498
  • Inconsistent handling of X-Forwarded-Prefix in servlet and reactive stack #​33465
  • ServerHttpObservationFilter does not register against new async operations #​33451
  • Revert removal of deprecated rawStatusCode methods #​33440
  • PathMatchingResourcePatternResolver no longer follows symlinks #​33424
  • Deadlock between SseEmitter and StandardServletAsyncWebRequest when clients disconnect #​33421
  • RestClient doesn't open a scope for the processing of the request #​33397
  • WebTestClient leaks when ParameterizedTypeReference is used #​33389
📔 Documentation
  • Document fixed rate scheduling with CRaC #​33490
  • Update information in SpEL Evaluation chapter in reference manual #​33456
  • Stop documenting use of -debug compiler flag in reference manual #​33453
  • Use discrete headings instead of titled blocks in reference manual #​33447
  • Fix example for @ImportResource in the reference manual #​33446
  • Fix a typo in the CDS documentation #​33437
  • Fix link to chapter introduction #​33417
  • Improve documentation on reading form data via Servlet request parameters vs @RequestBody #​33409
🔨 Dependency Upgrades
❤️ Contributors

Thank you to all the contributors who worked on this release:

@​dancer1325, @​izeye, and @​yfoel

v6.1.12

⭐ New Features
  • Efficient handling of conditional HTTP requests #​33372
  • LocaleEditor cannot parse language tag with script like zh-Hans #​33348
  • Reinstate qualifier support for legacy JSR-330 @javax.inject.Named annotation #​33345
  • SimpleAsyncTaskScheduler stops accepting new tasks when isShutdown #​33336
🐞 Bug Fixes
  • Fix incorrect weak ETag validation #​33374
  • Avoid CacheAspectSupport#findInCaches falling through to the reactiveCachingHandler #​33371
  • ScheduledAnnotationReactiveSupport starts the observation before it is opened #​33349
  • RestClient observation flags error for UnknownContentTypeException twice #​33347
  • RestClient instrumentation unnecessarily calls stop on a closed observation #​33346
  • SimpleEvaluationContext does not enforce read-only semantics #​33319
  • SpEL wraps primitive array in Object[] when invoking varargs method #​33317
  • SpEL no longer supports lists for varargs invocations #​33315
  • SpEL Indexer silently ignores failure to set property as index #​33310
  • AOT-generated code produces deprecation warnings when using a deprecated class for autowiring #​33295
  • @Scheduled method in test class not supported anymore #​33286
  • AOT-generated code produces deprecation warnings when referencing a nested class of a deprecated class #​33273
  • Jaxb2XmlEncoder does not support JAXBElement subtypes #​33258
  • ShallowEtagHeaderFilter throws a NumberFormatException for responses bigger than 2Gb #​33256
  • RequestPredicates fail with UnsupportedOperationException with a custom servlet path #​33251
  • Missing observation for @JmsListener response messages #​33221
  • ConversionService cannot convert primitive array to Object[] #​33212
  • Spring coroutines AOP is not compatible with @Cacheable #​33210
  • PathMatchingResourcePatternResolver#convertClassLoaderURL drops URLStreamHandler in version 6.1.x #​33199
  • SpEL cannot invoke varargs MethodHandle function with a primitive array #​33198
  • Trim last allowed origin when parsing comma-delimited string #​33181
  • Multipart files not deleted after upload is finished with async request #​33161
  • JaxbContextContainer does not define the ClassLoader to use to retrieve the JAXBContext to use #​33158
  • Memory Leak in WebFlux application handling HTTP Multipart #​33094
  • Support invoking bridged suspending functions in AopUtils #​33045
📔 Documentation
  • Fix typo in the bean validation section of the reference manual #​33354
  • Fix syntax error in RestClient documentation #​33350
  • Add Kotlin example for expectAll() #​33341
  • Javadoc of ReactorResourceFactory#setConnectionProviderSupplier wrongly states it can be ignored #​33338
  • Improve EnableCaching & CachingConfigurer Javadoc #​33288
  • Code sample has wrong reference to configurePathMatching #​33277
  • Document that NoOpResponseErrorHandler is to be used with the RestTemplate #​33276
  • Stop referring to Oracle STRUCT and ARRAY as they are deprecated #​33248
  • Update links in reference manual #​33245
🔨 Dependency Upgrades
❤️ Contributors

Thank you to all the contributors who worked on this release:

@​GoncaloPT, @​crusherd, @​genuss, @​kashike, @​ngocnhan-tran1996, @​olbinski, @​pcvolkmer, @​sheip9, @​tafjwr, and @​underbell

v6.1.11

⭐ New Features
  • Ensure varargs component type for MethodHandle is not null in SpEL's ReflectionHelper #​33193
  • Confusing WebClient exception message in case of Reactor-Netty PrematureCloseException during response #​33127
  • Include the bean name in the exception when an invalid factoryBeanObjectType attribute is found #​33117
  • Use error handler for reactive cache aspect #​33073
  • getTypeForFactoryMethod should catch NoClassDefFoundError #​33075
🐞 Bug Fixes
  • SpEL cannot invoke varargs MethodHandle function with an array #​33191
  • SpEL cannot invoke varargs MethodHandle function with zero variable arguments #​33190
  • Nested bean instance supplier invocation does not retain previous factory method #​33180
  • DefaultErrorResponseBuilder does not implement headers(Consumer) #​33156
  • Fix adaptation of violations on Set method parameter #​33150
  • Web controller call with invalid body resulting in 500 instead of 400 when using kotlinx-serialization #​33138
  • "file:." cannot be resolved to java.nio.file.Path (and plain "." value resolves to classpath root) #​33124
  • Mockito mock falsely initialized as CGLIB proxy with AspectJ aspect #​33113
  • Fix ClassCastException from return value validation with proxy when adaptConstraintViolations=true #​33105
  • Spring coroutines AOP is not compatible with @Transactional #​33095
  • ReactorClientHttpConnector creates new HttpClient for every request #​33093
  • Trace and Span IDs are no longer propagated RequestBodyAdvice beans #​33091
  • Early LocalContainerEntityManagerFactoryBean initialization fails in case of null bean definition #​33082
  • ReactorNettyClientRequest.convertException should include original exception if cause is null #​33080
  • SpEL incorrectly splits string arguments by comma for Object... varargs method #​33013
  • ProtobufMessageConverter fails to parse JSON payload if byte array is used #​27408
📔 Documentation
  • Harmonize phrasing in URI Encoding section #​33166
  • Document that ModelMap is not a supported argument type in WebFlux #​33107
  • Example in Method Injection section of Spring Framework documentation refers to wrong bean names #​33096
  • Resource writer doesn't consider subclasses of InputStreamResource for content length bypass #​33089
  • Improve documentation regarding encoding in FreeMarker support #​33071
  • Exception for validation failure in WebFlux does not match the documentation #​33061
🔨 Dependency Upgrades
❤️ Contributors

Thank you to all the contributors who worked on this release:

@​TAKETODAY, @​hunhee98, @​imvtsl, @​snussbaumer, and @​zizare

v6.1.10

Compare Source

⭐ New Features
  • Defensive PersistenceExceptionTranslator bean retrieval in PersistenceExceptionTranslationInterceptor on shutdown #​33067
  • Support all "connection reset" exception phrases in DisconnectedClientHelper #​33064
🐞 Bug Fixes
  • Duplicate observations recorded with RestClient #​33068
  • WebFlux validation requires Servlet API since Spring Framework 6.1.3 #​33043
  • No qualifying bean of type 'java.lang.String' in case of accidental @Autowired @Bean method with @Value parameter #​33030
  • ConfigurationClassEnhancer does not use correct ClassLoader when called multiple times #​33024
📔 Documentation
  • Typo in Annotation-driven Listener Endpoints section of Spring Framework documentation #​33050
  • Container Extension Points section of Spring Framework documentation refer to the wrong property name #​33037
  • Fix typo in comment #​33036
  • Incorrect constructor details in the javadoc for ApplicationContextEvent #​33032
❤️ Contributors

Thank you to all the contributors who worked on this release:

@​tafjwr

v6.1.9

Compare Source

⭐ New Features
  • CRaC: ignore checkpointOnRefresh afterRestore #​32978
  • Add missing hints for Hibernate @TenantId #​32967
  • AnnotationUtils performance degrades with deep stacks #​32921
  • Missing hints for Hibernate generators #​32842
  • AbstractAutoProxyCreator#determineBeanType can trigger bean initialization at build time for aspects implementing Ordered #​32230
🐞 Bug Fixes
  • Behaviour change in ScheduledAnnotationBeanPostProcessor: canceling scheduled tasks on ContextClosedEvent v6.0 -> v6.1 #​33009
  • ContentCachingRequestWrapper may allocate too much memory #​32987
  • Support canEncode() for JAXBElement in Jaxb2XmlEncoder #​32977
  • AspectJ CTW aspects executed twice #​32970
  • @Valid annotations on container elements for handler argument validation not supported #​32964
  • Add support for double backslashes to StringUtils#cleanPath #​32962
  • @CacheEvict condition uses wrapper comparison instead of actual objects #​32960
  • ConcurrentHashMap.computeIfAbsent used in AdvisedSupport can cause virtual thread pinning #​32958
  • Exception mapping does not work as expected when plugging in ReactorNettyClientRequestFactory into RestTemplate and RestClient #​32952
  • ReactorResourceFactory not working with CRaC onRefresh checkpoint #​32945
  • SpEL compilation fails when indexing into an array or list with an Integer #​32908
  • SpEL compilation fails when indexing into a Map with a primitive #​32903
  • BeanUtils.copyProperties no longer copies generic type properties from a base class that has been enhanced #​32888
  • Application not starting with @EnableTransactionManagement(mode = AdviceMode.ASPECTJ) #​32882
  • ReactorNettyClientResponse should not throw exception if no body is available #​32805
  • Observation in ServerHttpObservationFilter is never stopped for asynchronous requests #​32730
📔 Documentation
  • Fix typo in the Simple Broker section of the reference documentation #​32993
  • Remove outdated copyright from index.adoc #​32983
  • Use HttpStatusCode consistently in reference guide #​32966
  • Entity name in MappingSqlQuery example of reference guide is wrong #​32957
  • Fix RegisterReflectionForBinding Javadoc #​32947
  • Reference documentation sample for MethodValidationPostProcessor is missing a static keyword #​32929
  • Fix typo in Jakarta validation documentation #​32928
  • Refine KotlinDetector.isKotlinType documentation for Kotlin 2.x lambdas #​32905
  • Complete Kotlin example for HTTP message codecs in reference doc #​32877
  • Use Threadlocal.remove() instead of .set(null) in documentation #​32874
  • Unexpected bean override / inject behavior #​32825
  • Document why complex object structure are not supported as paremeters or properties by AOT #​32273
🔨 Dependency Upgrades
❤️ Contributors

Thank you to all the contributors who worked on this release:

@​Attacktive, @​Seungpang, @​deblockt, @​hlmg, @​ozooxo, @​soglad, and @​ypyf


Configuration

📅 Schedule: Branch creation - "" (UTC), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai bot commented Feb 11, 2025

Important

Review skipped

Bot user detected.

To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.


Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Generate unit testing code for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR. (Beta)
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

@codecov
Copy link
Copy Markdown

codecov bot commented Feb 11, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 59.78%. Comparing base (76ad2b2) to head (3785430).
Report is 2 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff            @@
##               main      #41   +/-   ##
=========================================
  Coverage     59.78%   59.78%           
  Complexity      175      175           
=========================================
  Files            67       67           
  Lines          1119     1119           
  Branches         90       90           
=========================================
  Hits            669      669           
  Misses          381      381           
  Partials         69       69           

@brettchaldecott brettchaldecott merged commit ab24d52 into main Feb 17, 2025
4 checks passed
@renovate renovate bot deleted the renovate/maven-org.springframework-spring-webflux-vulnerability branch February 17, 2025 13:08
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.

1 participant