Skip to content

[NO-SNOW] Exclude vulnerable transitive deps from snowflake-jdbc-thin#1148

Merged
sfc-gh-ggeng merged 4 commits intomasterfrom
fix-jdbc-transitive-vulnerabilities
Apr 14, 2026
Merged

[NO-SNOW] Exclude vulnerable transitive deps from snowflake-jdbc-thin#1148
sfc-gh-ggeng merged 4 commits intomasterfrom
fix-jdbc-transitive-vulnerabilities

Conversation

@sfc-gh-ggeng
Copy link
Copy Markdown
Contributor

Summary

Exclude vulnerable transitive dependencies pulled in by snowflake-jdbc-thin (test scope) and add hamcrest-core as an explicit test dependency.

Security fixes

Exclude from snowflake-jdbc-thin in both main pom.xml and e2e-jar-test/pom.xml:

Dependency Issue Severity
io.grpc:grpc-netty-shaded CVE-2025-55163 (Resource allocation without limits) CVSS 8.7 High
org.apache.commons:commons-lang3 CVE-2025-48924 (Uncontrolled recursion) CVSS 8.8 High
javax.servlet:javax.servlet-api Dual license CDDL-1.1/GPL-2.0 High
javax.annotation:javax.annotation-api Dual license CDDL-1.1/GPL-2.0 High

The ingest SDK already declares safe versions of grpc (1.77.0) and commons-lang3 (3.18.0) directly. javax.servlet-api and javax.annotation-api were already excluded in the main pom but not in the e2e-jar-test pom.

Test dependency

Test plan

  • mvn compiler:compile passes
  • CI passes

🤖 Generated with Claude Code

- Add hamcrest-core:1.3 as explicit test dependency (used by ported
  tests: RestRequestTest, JdbcHttpUtilTest, SnowflakeConnectStringTest,
  SecretDetectorTest)
- Exclude vulnerable transitive deps from snowflake-jdbc-thin in both
  main pom and e2e-jar-test pom:
  - grpc-netty-shaded (CVE-2025-55163, CVSS 8.7)
  - commons-lang3 (CVE-2025-48924, CVSS 8.8)
  - javax.servlet-api (license: CDDL-1.1/GPL-2.0)
  - javax.annotation-api (license: CDDL-1.1/GPL-2.0)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@sfc-gh-ggeng sfc-gh-ggeng requested review from a team as code owners April 8, 2026 17:55
sfc-gh-ggeng and others added 2 commits April 14, 2026 17:55
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@sfc-gh-ggeng sfc-gh-ggeng merged commit 248a4f7 into master Apr 14, 2026
94 of 99 checks passed
@sfc-gh-ggeng sfc-gh-ggeng deleted the fix-jdbc-transitive-vulnerabilities branch April 14, 2026 21:50
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