Skip to content

fix: update legacy PF4J sample Commons IO to 2.14.0 - #41

Merged
loong10k merged 2 commits into
mainfrom
fix/pf4j-commons-io-2.14.0
Nov 3, 2026
Merged

loong10k merged 2 commits into
mainfrom
fix/pf4j-commons-io-2.14.0

Conversation

@loong10k

@loong10k loong10k commented Nov 3, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

  • Update only the legacy PF4J plugin sample from Commons IO 2.5 to 2.14.0, the first version fixing CVE-2024-47554. The separate PF4J2 sample already uses 2.14.0 and is unchanged.
  • Enable the legacy sample's skipped tests and add a runtime check of the resolved Commons IO version and byte copying behavior.
  • Remove obsolete PermSize JVM flags so the test runs on the repository's JDK matrix.
  • Pin Surefire 3.5.4 in the separate Swagger2 example. The unpinned 3.6.0 selects an incompatible JUnit Platform provider and fails before the reactor reaches PF4J; this was reproduced locally.

Verification

  • mvn -B -f spring-boot-sample-pf4j/pf4j-plugin-sample/pom.xml clean verify: passed, 1 test run.
  • mvn -B --no-transfer-progress clean verify: passed after the Surefire pin, 1 test run.
  • Running Swagger2 with Surefire 3.6.0 locally reproduced the CI NoSuchMethodError.

This addresses the outdated dependency declaration; no exploitable input path has been demonstrated in the sample.

@loong10k
loong10k marked this pull request as ready for review November 3, 2026 16:44
@loong10k
loong10k merged commit 20ac8c9 into main Nov 3, 2026
3 checks passed
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 3, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-03T16:45:49.821565Z 35bdf7f Draft marked ready
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

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