Skip to content

Commit b1932a3

Browse files
ursuleanclaude
andcommitted
fix(deps): add constraint for Jackson Core 3.x to address GHSA-2m67-wjpj-xhg9
Add dependency constraint to ensure Jackson Core 3.x uses version 3.1.1 or later if pulled in as transitive dependency. This fixes a high severity vulnerability where Jackson Core 3.0.0-3.1.0 does not consistently enforce maxDocumentLength constraint, which could allow DoS attacks. Resolves dependabot alert #41 Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
1 parent 74d0c84 commit b1932a3

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

openapi-validation-core/build.gradle

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,12 @@ dependencies {
1313
implementation('org.mozilla:rhino:1.9.0') {
1414
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'
1515
}
16+
implementation('tools.jackson.core:jackson-core') {
17+
version {
18+
strictly '[3.1.1,)'
19+
}
20+
because 'GHSA-2m67-wjpj-xhg9: Jackson Core 3.0.0-3.1.0 does not consistently enforce maxDocumentLength constraint, allowing DoS attacks. See https://github.com/getyourguide/openapi-validation-java/security/dependabot/41'
21+
}
1622
// implementation('org.yaml:snakeyaml:1.33') {
1723
// because 'Vulnerability in 1.33 is not yet fixed. See: https://bitbucket.org/snakeyaml/snakeyaml/issues/561/cve-2022-1471-vulnerability-in' +
1824
// 'https://devhub.checkmarx.com/cve-details/CVE-2022-41854/' +

0 commit comments

Comments
 (0)