fix: force jackson-core to a patched version in sensorhub-security-oauth - #86
Open
aroh3006 wants to merge 1 commit into
Open
Conversation
com.auth0:jwks-rsa:0.22.1 pulls in jackson-databind 2.15.0, which resolves jackson-core at 2.15.0 too. That version is affected by GHSA-r7wm-3cxj-wff9 (async parser maxNumberLength bypass via chunked digit accumulation). Same fix pattern already used a few lines above for org.json: add a direct dependency at the patched version so Gradle picks it over the transitive one. Verified with gradlew :sensorhub-security-oauth:dependencies that jackson-core now resolves to 2.18.8, and the module still compiles and packages cleanly.
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.
Fixes #81.
com.auth0:jwks-rsa:0.22.1pulls injackson-databind:2.15.0, whichresolves
jackson-coreat 2.15.0 too. That version is affected byGHSA-r7wm-3cxj-wff9 (an incomplete fix for a prior CVE: the async
parser's
maxNumberLengthlimit can be bypassed via chunked digitaccumulation).
This adds a direct
jackson-core:2.18.8dependency, the same patternalready used a few lines above in this file for
org.json, so Gradleresolves the patched version instead of the transitive 2.15.0.
Verified with
./gradlew :sensorhub-security-oauth:dependencies --configuration embeddedImplthatjackson-corenow resolves to2.18.8 (was 2.15.0), and that the module still compiles and packages
cleanly (
./gradlew :sensorhub-security-oauth:test, which reportsNO-SOURCEsince this module has no existing test suite).