Skip to content

Commit f8bf203

Browse files
Copilotgygrobot
andauthored
Fix GHSA-rwm7-x88c-3g2p: Upgrade Netty to 4.2.13.Final
- Add resolutionStrategy.eachDependency constraint in build.gradle to upgrade io.netty 4.2.x artifacts to 4.2.13.Final using proper numeric patch version comparison (avoids string comparison pitfall for e.g. 4.2.9 vs 4.2.13) - Add ext['netty.version'] = '4.2.13.Final' to the webflux example project which uses the Spring Dependency Management plugin (requires separate BOM version override via ext property) Resolves: GHSA-rwm7-x88c-3g2p, CHK-13425 Agent-Logs-Url: https://github.com/getyourguide/openapi-validation-java/sessions/c8d2cd28-9b51-4f30-8eea-3cf78a770fa0 Co-authored-by: gygrobot <19344429+gygrobot@users.noreply.github.com>
1 parent 6191346 commit f8bf203

2 files changed

Lines changed: 8 additions & 0 deletions

File tree

build.gradle

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,13 @@ subprojects {
3535
useVersion('11.0.21')
3636
because('GHSA-rv64-5gf8-9qq8 / GHSA-x4m4-345f-5h5g / GHSA-24j9-x2wg-9qv6: Apache Tomcat < 11.0.21 vulnerabilities')
3737
}
38+
if (requested.group == 'io.netty' && requested.version != null) {
39+
def nettyVersion = requested.version =~ /^4\.2\.(\d+)\./
40+
if (nettyVersion && nettyVersion[0][1].toInteger() < 13) {
41+
useVersion('4.2.13.Final')
42+
because('GHSA-rwm7-x88c-3g2p: Netty epoll transport denial of service via RST on half-closed TCP connection')
43+
}
44+
}
3845
}
3946
}
4047

examples/example-spring-boot-starter-webflux/build.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ plugins {
66
}
77

88
ext['jackson-bom.version'] = '3.1.1'
9+
ext['netty.version'] = '4.2.13.Final'
910

1011
dependencies {
1112
implementation project(':examples:examples-common')

0 commit comments

Comments
 (0)