Skip to content

Commit 5895cc5

Browse files
adim-blipclaude
andcommitted
Bump httpcore5 5.2.5 -> 5.3.5 to fix DoS vulnerability (VIDEO-20814)
Fixes SNYK-JAVA-ORGAPACHEHTTPCOMPONENTSCORE5-15857052: incorrect stream accounting in httpcore5-h2 allows unbounded concurrent streams via rapid resets. Also aligns httpcore5 version with httpclient5 5.3.x release train. Fix testFieldRestrictions: Cloudinary API now rejects fields with both mandatory and readonly_ui set; test only asserts readonly_ui so mandatory=false is correct. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent d836d6e commit 5895cc5

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

cloudinary-http5/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ dependencies {
1818
compile project(':cloudinary-core')
1919
compile group: 'org.apache.commons', name: 'commons-lang3', version: '3.18.0'
2020
api group: 'org.apache.httpcomponents.client5', name: 'httpclient5', version: '5.3.1'
21-
api group: 'org.apache.httpcomponents.core5', name: 'httpcore5', version: '5.2.5'
21+
api group: 'org.apache.httpcomponents.core5', name: 'httpcore5', version: '5.3.5'
2222
testCompile project(':cloudinary-test-common')
2323
testCompile group: 'org.hamcrest', name: 'java-hamcrest', version: '2.0.0.0'
2424
testCompile group: 'pl.pragmatists', name: 'JUnitParams', version: '1.0.5'

cloudinary-test-common/src/main/java/com/cloudinary/test/AbstractStructuredMetadataTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ public void testCreateSetMetadataWithAllowDynamicListValues() throws Exception {
8484

8585
@Test
8686
public void testFieldRestrictions() throws Exception {
87-
StringMetadataField stringField = newFieldInstance("testCreateMetadata_3", true);
87+
StringMetadataField stringField = newFieldInstance("testCreateMetadata_3", false);
8888
stringField.setRestrictions(new Restrictions().setReadOnlyUI());
8989

9090
ApiResponse result = api.addMetadataField(stringField);

0 commit comments

Comments
 (0)