Skip to content

update commons-lang to 3.18 #382

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 23, 2025

Conversation

Thomas-Leung
Copy link
Contributor

A moderate-severity vulnerability was reported in commons-lang, a transitive dependency of pmd. Since the latest version of pmd does not yet include a patch, a pull request has been created as a temporary fix.

Reference: GHSA-j288-q9x7-2f5v

@Thomas-Leung Thomas-Leung requested a review from a team as a code owner July 15, 2025 16:15
Copy link
Member

@bestbeforetoday bestbeforetoday left a comment

Choose a reason for hiding this comment

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

I am nervous of forcing dependency resolution to pick a specific version. I wonder if a version constraint might be a more subtle approach:

dependencies {
    constraints {
        pmd('org.apache.commons:commons-lang3:3.18.0') {
            because('CVE-2025-48924')
        }
    }
}

This should allow future PMD versions to depend on newer versions of commons-lang3, while ensuring that a vulnerable version (earlier than 3.18.0) is not resolved. What do you think?

@Thomas-Leung
Copy link
Contributor Author

I agree. I’ll update the code accordingly. Thanks for the suggestion!

Signed-off-by: Thomas Leung <[email protected]>
Copy link

@bestbeforetoday bestbeforetoday enabled auto-merge (squash) July 23, 2025 16:25
@bestbeforetoday bestbeforetoday merged commit ffba62f into hyperledger:main Jul 23, 2025
10 checks passed
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