Update fastjson v1 1.2.83 to fastjson v2 2.0.61 (latest)#1424
Open
ar249 wants to merge 1 commit into
Open
Conversation
|
Hi @ar249, welcome to SOFAStack community, Please sign Contributor License Agreement! After you signed CLA, we will automatically sync the status of this pull request in 3 minutes. |
…sitive fastjson v1 dependency. Fixes sofastackgh-1399 Signed-off-by: Arindam Singh <96876969+ar249@users.noreply.github.com>
3e353dd to
7beb53f
Compare
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.
Problem
mvn dependency:treerevealed the following issues with fastjson dependencies:fastjsonv1 (com.alibaba:fastjson:1.2.83) was explicitly declaredas a direct dependency in
pom.xml— fastjson v1 has known criticalCVEs (RCE, deserialization vulnerabilities) and has been superseded by
fastjson2fastjson2:2.0.23andfastjson2:2.0.61being pulled transitively
fastjsonv1 (com.alibaba:fastjson) being pulled as atransitive dependency unnecessarily
Changes
fastjson2to2.0.61independencyManagementto enforceconsistent version across all transitive dependencies
fastjsonv1 transitive dependency fromrocketmq-spring-boot-starter&dubboVerification
mvn dependency:tree | grep fastjsonAll references now consistently resolve to
2.0.61with no legacyfastjsonv1 present.Before
After