Skip to content

Force bcprov-jdk18on 1.85 to fix Dependabot alerts - #115

Merged
bertysentry merged 2 commits into
mainfrom
claude/gifted-hodgkin-bdfc48
Jul 24, 2026
Merged

Force bcprov-jdk18on 1.85 to fix Dependabot alerts#115
bertysentry merged 2 commits into
mainfrom
claude/gifted-hodgkin-bdfc48

Conversation

@bertysentry

Copy link
Copy Markdown
Contributor

What

Adds a dependencyManagement entry pinning org.bouncycastle:bcprov-jdk18on to 1.85.

Why

Both open Dependabot alerts on the default branch point at bcprov-jdk18on 1.79, pulled in transitively by smbj 0.14.0 (which has no newer release):

  • CriticalGHSA-574f-3g2m-x479: GOST 28147 CTR mode reuses keystream after 255 blocks (fixed in 1.80.2)
  • ModerateGHSA-c3fc-8qff-9hwx: LDAP injection in the X509LDAPCertStore (fixed in 1.84)

Pinning to 1.85 (latest) resolves both.

Notes for reviewers

  • mvn dependency:tree confirms smbj now resolves bcprov-jdk18on:1.85:runtime instead of 1.79.
  • mvn verify on JDK 17 passes: 43 tests, 0 failures (2 skipped live tests requiring a real WinRM host, as usual).
  • No code changes; the library never invokes the affected GOST/LDAP code paths directly, so this is a hygiene upgrade with no behavior impact expected.

🤖 Generated with Claude Code

smbj 0.14.0 pulls in bcprov-jdk18on 1.79 transitively, which is
affected by GHSA-574f-3g2m-x479 (critical, GOST 28147 keystream
reuse) and GHSA-c3fc-8qff-9hwx (moderate, LDAP injection). Pin the
version to 1.85 via dependencyManagement.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: a84cde57d7

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread pom.xml Outdated
dependencyManagement entries in a library POM are not inherited by
consumers of the published artifact, so downstream projects would
still resolve the vulnerable 1.79 from smbj. A direct runtime
dependency propagates 1.85 transitively (nearest-wins).

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@bertysentry
bertysentry merged commit 026ce44 into main Jul 24, 2026
5 checks passed
@bertysentry
bertysentry deleted the claude/gifted-hodgkin-bdfc48 branch July 24, 2026 13:23
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.

1 participant