You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
An internal SCA scan of the shaded uber-JAR azure-cosmos-spark_4-0_2-13-4.48.0.jar (Databricks Runtime 17.3 candidate) surfaced 34 known CVEs in transitive dependencies (0 CRITICAL, 13 HIGH, 18 MEDIUM, 3 LOW). None originate from Cosmos code — all come from third-party libraries shipped inside the connector's fat JAR.
Verifying against the latest release (4.49.1, published 2026-07-03) and the Spark 4.1 sibling artifact (azure-cosmos-spark_4-1_2-13:4.49.1) shows the same dependency versions are still bundled, so upgrading the connector does not remediate the findings. The CHANGELOG.md entries for azure-cosmos-spark_4-*_2-13 4.48.0 → 4.49.1 and azure-cosmos 4.80.0 → 4.81.0 do not list any Netty / MSAL4J / commons-lang bumps.
Because the connector is shipped as a shaded JAR, consumers cannot override these libraries from their classpath — the fix has to come from the Azure SDK release.
Concrete vulnerable components and fixed versions requested
replace with org.apache.commons:commons-lang3 ≥ 3.18.0
CVE-2025-48924 (uncontrolled recursion / StackOverflowError in ClassUtils.getClass, CWE-674). No fix exists on the 2.x branch.
P1 — MEDIUM
com.microsoft.azure:msal4j
1.15.0
≥ 1.15.1
CVE-2024-35255 (race condition, local credential exposure across processes, CWE-362)
P2
Remaining 15 MEDIUM/LOW findings in transitive Azure SDK deps
various
per advisory
(list can be shared privately if useful)
Impact / customer context
We are running Cosmos DB Spark connector on Databricks in Azure Germany West Central. The regional constraint means there is currently no readily-swappable managed alternative to Cosmos DB for this workload, so we depend on this connector remaining consumable.
The current 4.48.0 build was already flagged and blocked by our security review. The candidate upgrade for Databricks Runtime 17.3 (also 4.48.0 → 4.49.1) will fail the same scan for the same reasons, blocking runtime upgrades and reinstallations.
Because the connector ships as a shaded uber-JAR, we cannot mitigate on the consumer side by pinning newer Netty / MSAL4J via classpath overrides.
Expected behavior
Publish an azure-cosmos-spark_4-0_2-13 and azure-cosmos-spark_4-1_2-13 release (and the underlying azure-cosmos release it depends on) in which:
io.netty:netty-* is upgraded to 4.1.133.Final or newer.
commons-lang:commons-lang:2.6 is removed and replaced with org.apache.commons:commons-lang3:3.18.0 (or newer).
com.microsoft.azure:msal4j is upgraded to 1.15.1 or newer.
If any of these upgrades are blocked by API/behavior compatibility inside the SDK, please share the constraint so we can coordinate a mitigation plan.
Actual behavior
Current shaded JARs still bundle Netty 4.1.118.Final, commons-lang 2.6 and msal4j 1.15.0, matching the scan findings.
Reproduction steps
Download azure-cosmos-spark_4-0_2-13-4.48.0.jar (or -4.49.1.jar, or the corresponding _4-1_ artifact) from Maven Central.
Run any SCA tool (Sonatype Lifecycle, Snyk, Trivy, OWASP Dependency-Check, Black Duck) against the JAR.
Observe the CVEs listed above being flagged against the bundled io/netty/**/*, org/apache/commons/lang/**/*, and com/microsoft/aad/msal4j/**/* class paths inside the shaded JAR.
Both azure-cosmos-spark_4-0_2-13 and azure-cosmos-spark_4-1_2-13 share the azure-cosmos-spark_4 base module introduced in 4.48.0 (PR [Spark connector]Added spark 4.1 support #48861), so a single upstream bump in azure-cosmos / the shading of the connector should fix both artifacts simultaneously.
Happy to provide the full scan report privately (34 findings) via MSRC or the Azure SDK security channel if that helps triage.
Library name and version
com.azure.cosmos.spark:azure-cosmos-spark_4-0_2-13:4.48.0(currently deployed)com.azure.cosmos.spark:azure-cosmos-spark_4-0_2-13:4.49.1(latest)com.azure.cosmos.spark:azure-cosmos-spark_4-1_2-13:4.49.1(latest)com.azure:azure-cosmos:4.81.0,com.azure:azure-core-http-netty:1.16.4Describe the bug
An internal SCA scan of the shaded uber-JAR
azure-cosmos-spark_4-0_2-13-4.48.0.jar(Databricks Runtime 17.3 candidate) surfaced 34 known CVEs in transitive dependencies (0 CRITICAL, 13 HIGH, 18 MEDIUM, 3 LOW). None originate from Cosmos code — all come from third-party libraries shipped inside the connector's fat JAR.Verifying against the latest release (
4.49.1, published 2026-07-03) and the Spark 4.1 sibling artifact (azure-cosmos-spark_4-1_2-13:4.49.1) shows the same dependency versions are still bundled, so upgrading the connector does not remediate the findings. TheCHANGELOG.mdentries forazure-cosmos-spark_4-*_2-134.48.0 → 4.49.1 andazure-cosmos4.80.0 → 4.81.0 do not list any Netty / MSAL4J / commons-lang bumps.Because the connector is shipped as a shaded JAR, consumers cannot override these libraries from their classpath — the fix has to come from the Azure SDK release.
Concrete vulnerable components and fixed versions requested
io.netty:netty-*(all modules)4.1.118.Finalcommons-lang:commons-lang2.6(EOL branch)org.apache.commons:commons-lang3≥ 3.18.0ClassUtils.getClass, CWE-674). No fix exists on the 2.x branch.com.microsoft.azure:msal4j1.15.0Impact / customer context
Expected behavior
Publish an
azure-cosmos-spark_4-0_2-13andazure-cosmos-spark_4-1_2-13release (and the underlyingazure-cosmosrelease it depends on) in which:io.netty:netty-*is upgraded to4.1.133.Finalor newer.commons-lang:commons-lang:2.6is removed and replaced withorg.apache.commons:commons-lang3:3.18.0(or newer).com.microsoft.azure:msal4jis upgraded to1.15.1or newer.If any of these upgrades are blocked by API/behavior compatibility inside the SDK, please share the constraint so we can coordinate a mitigation plan.
Actual behavior
Current shaded JARs still bundle Netty
4.1.118.Final,commons-lang 2.6andmsal4j 1.15.0, matching the scan findings.Reproduction steps
azure-cosmos-spark_4-0_2-13-4.48.0.jar(or-4.49.1.jar, or the corresponding_4-1_artifact) from Maven Central.io/netty/**/*,org/apache/commons/lang/**/*, andcom/microsoft/aad/msal4j/**/*class paths inside the shaded JAR.Environment
Additional context
azure-cosmos-spark_4-0_2-13andazure-cosmos-spark_4-1_2-13share theazure-cosmos-spark_4base module introduced in 4.48.0 (PR [Spark connector]Added spark 4.1 support #48861), so a single upstream bump inazure-cosmos/ the shading of the connector should fix both artifacts simultaneously./cc @xinlian12 @kushagraThapar @FabianMeiswinkel