Repository navigation
Dependencies with known vulnerabilities are updated to fixed versions - #36
Merged
Merged
Conversation
- 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 <noreply@anthropic.com>
4 tasks
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 <noreply@anthropic.com>
staalezh
approved these changes
Dec 2, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Updates the runtime dependencies that have published CVEs to fixed versions, and releases them as 4.0.1. The SDK's code and public API are unchanged.
org.json:jsonorg.apache.httpcomponents:httpclientorg.apache.commons:commons-io→commons-io:commons-iojunit:junit(test only)org.apache.commons:commons-io:1.3.2was a mis-published relocation of commons-io. The supported artifact iscommons-io:commons-io. The SDK only usesIOUtils.toByteArray(InputStream), which is in the same package in both.OSV reports no known vulnerabilities for any resolved runtime dependency after the update, including the transitive ones (httpcore 4.4.16, commons-logging 1.2, commons-codec 1.11). All new jars are Java 8 bytecode, so the
sourceCompatibility = 1.8target still holds.Test mock
make prism-startpointed tocradl-docs/master/reference/restapi/oas.json, which is now a 404, so Prism exited and every test failed with "connection refused". The current spec in cradl-docs doesn't cover the API's full feature set either, so the mock would reject valid SDK requests. The mock now serves the spec from cradl-docs commit9395d567ca(2021-10-19), from when the SDK was last updated. A commit-pinned URL keeps serving the same file.Testing
On JDK 8 with the pinned mock, all 79 tests pass on this branch (three runs) and on
master.Release
Publishing to Maven Central (
make publish) still targetsoss.sonatype.org. Sonatype shut down OSSRH in June 2025, so releasing 4.0.1 will also need the publishing setup moved to the Central Portal.🤖 Generated with Claude Code