Skip to content

Dependencies with known vulnerabilities are updated to fixed versions - #36

Merged
augustak merged 2 commits into
masterfrom
security-dependency-updates
Dec 2, 2026
Merged

augustak merged 2 commits into
masterfrom
security-dependency-updates

Conversation

@augustak

@augustak augustak commented Dec 2, 2026 •

Copy link
Copy Markdown
Member

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.

Dependency From To Fixes
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 → commons-io:commons-io 1.3.2 2.22.0 CVE-2021-29425
junit:junit (test only) 4.12 4.13.2 CVE-2020-15250

org.apache.commons:commons-io:1.3.2 was a mis-published relocation of commons-io. The supported artifact is commons-io:commons-io. The SDK only uses IOUtils.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.8 target still holds.

Test mock

make prism-start pointed to cradl-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 commit 9395d567ca (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 targets oss.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

- 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>
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>
@augustak
augustak merged commit 6a46aaf into master Dec 2, 2026
2 checks passed
@augustak
augustak deleted the security-dependency-updates branch December 2, 2026 14:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants