[Snyk] Security upgrade io.undertow:undertow-servlet from 1.4.18.Final to 2.3.21.Final#5256
[Snyk] Security upgrade io.undertow:undertow-servlet from 1.4.18.Final to 2.3.21.Final#5256
Conversation
The following vulnerabilities are fixed with an upgrade: - https://snyk.io/vuln/SNYK-JAVA-IOUNDERTOW-15166617
There was a problem hiding this comment.
Pull request overview
This is a Snyk-generated security PR that upgrades the undertow-servlet dependency from version 1.4.18.Final to 2.3.21.Final to fix a high severity vulnerability (Allocation of Resources Without Limits or Throttling, CVSS score 721). This represents a major version upgrade from Undertow 1.x to 2.x.
Changes:
- Upgrade undertow-servlet dependency from 1.4.18.Final to 2.3.21.Final in pom.xml
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
|
||
| <properties> | ||
| <undertow-servlet.version>1.4.18.Final</undertow-servlet.version> | ||
| <undertow-servlet.version>2.3.21.Final</undertow-servlet.version> |
There was a problem hiding this comment.
This is a major version upgrade from Undertow 1.x to 2.x, which introduces breaking changes. Key concerns:
-
Java version requirement: Undertow 2.x requires Java 11 as minimum, but the parent pom.xml specifies Java 1.8 (line 1454 in pom.xml). This upgrade will likely cause compilation failures.
-
Security API changes: The code in SecureServer.java and CustomIdentityManager.java uses Undertow's security APIs (IdentityManager, AuthenticationMechanism, SecurityContext), which have undergone significant changes between versions 1.x and 2.x. These may require code modifications.
-
WebSocket API changes: SocketServer.java uses WebSocket APIs that may have changed in the major version upgrade.
-
No test coverage: There are no test files to verify that the application still works correctly after the upgrade.
-
Historical context: The undertow module is currently commented out in the parent pom.xml (line 716) due to build issues since 2019, suggesting this module may not be actively maintained.
Before merging this security fix, the code should be tested to ensure it compiles and runs correctly with Undertow 2.3.21.Final. Consider reviewing the Undertow migration guide and updating any deprecated or changed APIs.
Snyk has created this PR to fix 1 vulnerabilities in the maven dependencies of this project.
Snyk changed the following file(s):
undertow/pom.xmlVulnerabilities that will be fixed with an upgrade:
SNYK-JAVA-IOUNDERTOW-15166617
1.4.18.Final->2.3.21.FinalMajor version upgradeNo Known ExploitImportant
Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open fix PRs.
For more information:
🧐 View latest project report
📜 Customise PR templates
🛠 Adjust project settings
📚 Read about Snyk's upgrade logic
Learn how to fix vulnerabilities with free interactive lessons:
🦉 Allocation of Resources Without Limits or Throttling