Skip to content

fix: update and declare commons-codec dependency#2195

Merged
alicejli merged 1 commit intogoogleapis:mainfrom
alicejli:updateCodecDependency
Nov 29, 2022
Merged

fix: update and declare commons-codec dependency#2195
alicejli merged 1 commit intogoogleapis:mainfrom
alicejli:updateCodecDependency

Conversation

@alicejli
Copy link
Copy Markdown
Contributor

This PR manually declares the commons-codec version to 1.15.

It was discovered that commons-codec-1.11.jar has a a medium vulnerability (https://sca.analysiscenter.veracode.com/vulnerability-database/security/sca/vulnerability/sid-22742/summary). This vulnerability does not have a CVE and it is related to Insecure Input Validation and encoding.

This is an indirect dpendency that the API client library uses indirectly by using Apache HttpClient.
Any version of codec v1.13+ should have the fix for this vulnerability.

@alicejli alicejli requested a review from a team November 29, 2022 17:03
@product-auto-label product-auto-label Bot added the size: xs Pull request size is extra small. label Nov 29, 2022
Copy link
Copy Markdown
Member

@suztomo suztomo left a comment

Choose a reason for hiding this comment

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

Approving. Can you add comment about the change?

Comment thread pom.xml
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>commons-codec</groupId>
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Can you add source code comment why it's declared? Such as "org.apache.httpcomponents:httpclient:4.5.x declares an outdated version of commons-codec"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size: xs Pull request size is extra small.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants