From 54d2f7bf3771ab11483a709305dd4fcc9459c59e Mon Sep 17 00:00:00 2001 From: augustak Date: Wed, 2 Dec 2026 14:11:02 +0100 Subject: [PATCH 1/2] Dependencies with known vulnerabilities are updated to fixed versions - org.json:json 20190722 -> 20260814 (CVE-2022-45688, CVE-2023-5072, CVE-2026-59171) - org.apache.httpcomponents:httpclient 4.5.12 -> 4.5.14 (CVE-2020-13956) - org.apache.commons:commons-io 1.3.2 -> commons-io:commons-io 2.22.0 (CVE-2021-29425) - junit 4.12 -> 4.13.2, test only (CVE-2020-15250) The mock API for tests is started from the OpenAPI spec's current location in cradl-docs, as the old path no longer exists. Co-Authored-By: Claude Opus 5.5 --- CHANGELOG.md | 7 +++++++ Makefile | 2 +- build.gradle | 8 ++++---- gradle.properties | 2 +- 4 files changed, 13 insertions(+), 6 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index bd4fb56..e65d03a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## Version 4.0.1 - 2026-12-02 + +- Updated org.json:json to 20260814 (CVE-2022-45688, CVE-2023-5072, CVE-2026-59171) +- Updated org.apache.httpcomponents:httpclient to 4.5.14 (CVE-2020-13956) +- Replaced org.apache.commons:commons-io 1.3.2 with commons-io:commons-io 2.22.0 (CVE-2021-29425) +- Updated junit to 4.13.2 in tests (CVE-2020-15250) + ## Version 4.0.0 - 2021-10-22 - Removed apiKey from Credentials diff --git a/Makefile b/Makefile index 7a07d0c..00a0a27 100644 --- a/Makefile +++ b/Makefile @@ -23,5 +23,5 @@ prism-start: --detach \ -p 4010:4010 \ stoplight/prism:3.2.8 mock -d -h 0.0.0.0 \ - https://raw.githubusercontent.com/LucidtechAI/cradl-docs/master/reference/restapi/oas.json \ + https://raw.githubusercontent.com/LucidtechAI/cradl-docs/master/static/oas.json \ > /tmp/prism.cid diff --git a/build.gradle b/build.gradle index c02cd40..2c023a1 100644 --- a/build.gradle +++ b/build.gradle @@ -14,10 +14,10 @@ repositories { } dependencies { - implementation 'org.json:json:20190722' - implementation 'org.apache.httpcomponents:httpclient:4.5.12' - implementation 'org.apache.commons:commons-io:1.3.2' - testImplementation 'junit:junit:4.12' + implementation 'org.json:json:20260814' + implementation 'org.apache.httpcomponents:httpclient:4.5.14' + implementation 'commons-io:commons-io:2.22.0' + testImplementation 'junit:junit:4.13.2' testImplementation 'org.mockito:mockito-core:3.7.7' } diff --git a/gradle.properties b/gradle.properties index 19a0188..c984afe 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1 +1 @@ -version=4.0.0 +version=4.0.1 From 7bfce4bfbb80321500244acd4ea37ac9b677ef72 Mon Sep 17 00:00:00 2001 From: augustak Date: Wed, 2 Dec 2026 15:23:26 +0100 Subject: [PATCH 2/2] The mock API for tests serves the API spec the SDK implements The current spec in cradl-docs doesn't cover the API's full feature set, so the mock rejected valid requests and 24 tests failed. The spec is pinned to the cradl-docs commit from when the SDK was last updated, against which all tests pass. Co-Authored-By: Claude Opus 5.5 --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 00a0a27..a1798e1 100644 --- a/Makefile +++ b/Makefile @@ -16,6 +16,7 @@ java-docs: docs: # See here for doxybook2 installation instructions https://github.com/matusnovak/doxybook2#Install doxygen +# The mock API serves the API spec from when the SDK was last updated, as it is what the SDK implements prism-start: @echo "Starting mock API..." docker run -t \ @@ -23,5 +24,5 @@ prism-start: --detach \ -p 4010:4010 \ stoplight/prism:3.2.8 mock -d -h 0.0.0.0 \ - https://raw.githubusercontent.com/LucidtechAI/cradl-docs/master/static/oas.json \ + https://raw.githubusercontent.com/LucidtechAI/cradl-docs/9395d567ca1222608abec97d48a98211ab0d4857/reference/restapi/oas.json \ > /tmp/prism.cid