Skip to content

Commit e9eb411

Browse files
Copilotgygrobot
andauthored
fix: pin netty codec compression to 4.2.13.Final
Agent-Logs-Url: https://github.com/getyourguide/openapi-validation-java/sessions/ff1748ca-2686-476c-8163-79fb3aaeb02d Co-authored-by: gygrobot <19344429+gygrobot@users.noreply.github.com>
1 parent c99ae7a commit e9eb411

2 files changed

Lines changed: 11 additions & 0 deletions

File tree

build.gradle

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,11 @@ subprojects {
3030
useVersion('3.1.1')
3131
because('GHSA-2m67-wjpj-xhg9: Jackson Core 3.0.0-3.1.0 maxDocumentLength bypass')
3232
}
33+
if (requested.group == 'io.netty' && requested.name == 'netty-codec-compression'
34+
&& requested.version != null && requested.version < '4.2.13.Final') {
35+
useVersion('4.2.13.Final')
36+
because('GHSA-mj4r-2hfc-f8p6: Netty Codec Compression before 4.2.13.Final is vulnerable to resource exhaustion')
37+
}
3338
if (requested.group == 'org.apache.tomcat.embed' && requested.name == 'tomcat-embed-core'
3439
&& requested.version != null && requested.version < '11.0.21') {
3540
useVersion('11.0.21')

openapi-validation-core/build.gradle

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,12 @@ dependencies {
1010
implementation(libs.commons.codec) {
1111
because 'Apache commons-codec before 1.13 is vulnerable to information exposure. See https://devhub.checkmarx.com/cve-details/Cxeb68d52e-5509/'
1212
}
13+
implementation('io.netty:netty-codec-compression') {
14+
version {
15+
strictly '4.2.13.Final'
16+
}
17+
because 'GHSA-mj4r-2hfc-f8p6: Netty Codec Compression before 4.2.13.Final is vulnerable to resource exhaustion. See https://github.com/getyourguide/openapi-validation-java/security/dependabot/59'
18+
}
1319
implementation('org.mozilla:rhino:1.9.0') {
1420
because 'CVE-2025-66453: Rhino before 1.9.0 has high CPU usage and potential DoS when passing specific numbers to toFixed() function. See https://github.com/mozilla/rhino/security/advisories/GHSA-3w8q-xq97-5j7x'
1521
}

0 commit comments

Comments
 (0)