fix: resolve Dependabot security vulnerabilities (ZooKeeper, SnakeYAML, poi-ooxml, Jackson, Netty, Guava)#1205
Merged
pallakartheekreddy merged 3 commits intoSunbird-Knowlg:developfrom Mar 23, 2026
Conversation
…unbird-Knowlg#90, Sunbird-Knowlg#87, #21) - Bump org.apache.zookeeper:zookeeper 3.8.4 → 3.8.6 in root dependencyManagement (fixes CVE: hostname verification bypass + improper config handling) - Migrate graph-engine_2.13 tests from cassandra-unit to testcontainers-cassandra; upgrade snakeyaml 1.33 → 2.0 (fixes SnakeYaml Constructor Deserialization RCE); remove cassandra-unit:3.11.2.0 and its associated netty/snappy/jna overrides; add CassandraTestSupport singleton with reflection-based session injection - Bump org.apache.poi:poi-ooxml 3.17 → 5.4.0 and xmlbeans 3.0.0 → 5.2.1 in platform-common (fixes improper input validation in OOXML file parsing) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
pallakartheekreddy
approved these changes
Mar 23, 2026
ad7adbb
into
Sunbird-Knowlg:develop
6 of 10 checks passed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR resolves all open Dependabot security alerts on the repository by upgrading vulnerable dependencies and migrating discontinued test infrastructure (
cassandra-unit→testcontainers).Vulnerabilities Fixed
🔴 HIGH — ZooKeeper (alerts #89, #90)
ZKTrustManager3.8.4→3.8.6in rootdependencyManagementFile:
pom.xml🔴 HIGH — SnakeYAML Constructor Deserialization RCE (alerts #86, #87)
1.33→2.0Root cause:
cassandra-unit:3.11.2.0(discontinued) callsnew Constructor(Class)— an API removed in SnakeYAML 2.0 — blocking the upgrade.Solution: Replaced
cassandra-unitwithtestcontainers-cassandrain both affected modules:ontology-engine/graph-core_2.13—EmbeddedCassandraServerHelperreplaced with aCassandraTestSupportsingleton that starts acassandra:3.11Docker container and injects the session intoCassandraConnectorvia reflectionontology-engine/graph-engine_2.13— same pattern; embedded Redis setup retained unchangedVerified: 0 suites aborted (was 3), no
NoSuchMethodErrorfor SnakeYAML after migration.🔴 HIGH — Jackson Core DoS (alerts #63, #68, #69, #77, #85, #88)
2.15.3→2.18.6Files: Root
pom.xml(fasterxml.jackson.version), plus local overrides intaxonomy-controllers,content-controllers,assessment-controllers,knowlg-service, and hardcoded versions insearch-core.🟡 MEDIUM — Netty (alerts #70–84)
All
io.netty:*vulnerabilities (CRLF injection, HTTP/2 DDoS reset, SSL crash, DoS) resolved vianetty-bom:4.1.129.Finalimported in rootpom.xml.🟡 MEDIUM — Apache POI OOXML Improper Input Validation (alert #21)
3.17→5.4.0Also upgraded
xmlbeans3.0.0→5.2.1(required by POI 5.x) and removed the now-unnecessaryxmlbeansexclusion. No source code changes — POI is not directly used in application code.File:
platform-core/platform-common/pom.xml🟡 MEDIUM / 🟢 LOW — Guava (alerts #64, #65, #66)
Already at
32.1.3-jrein rootpom.xml— no change needed.🟡 MEDIUM — commons-io (alert #62)
Already at
2.14.0in rootpom.xml— no change needed.Cannot Be Fixed
"fixed": null— no upstream patch exists from the Apache ZooKeeper projectTest plan
mvn clean install -DskipTestsmvn test -pl ontology-engine/graph-core_2.13 -DfailIfNoTests=false— 0 suites aborted, no SnakeYAML errorsmvn test -pl ontology-engine/graph-engine_2.13 -DfailIfNoTests=false— 0 suites aborted🤖 Generated with Claude Code