Jackson-Databind 漏洞修复
任何人是否使用修复程序更新了他们的应用程序,以解决Jackson-Databind 2.12.6脆弱性错误。它已修复在V 2.13.12.1中,但是当我更新Gradle以引用此最新库时,我会遇到另一个依赖项错误,而Gradle无法下载它。如果您有其他选择,请协助。
构建错误是
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':compileJava'.
> Could not resolve all files for configuration ':compileClasspath'.
> Could not resolve com.fasterxml.jackson:jackson-bom:2.13.2.1.
Required by:
project : > com.fasterxml.jackson.core:jackson-databind:2.13.2.1
> Could not resolve com.fasterxml.jackson:jackson-bom:2.13.2.1.
> Could not get resource 'https://internalreporsitoryhost:8443/repository/maven-jaspersoft-3rd-party-ce/com/fasterxml/jackson/jackson-bom/2.13.2.1/jackson-bom-2.13.2.1.pom'.
> Could not GET 'https://internalreporsitoryhost:8443/repository/maven-jaspersoft-3rd-party-ce/com/fasterxml/jackson/jackson-bom/2.13.2.1/jackson-bom-2.13.2.1.pom'. Received status code 503 from server: Service Unavailable
> Could not resolve com.fasterxml.jackson:jackson-bom:2.13.2.1.
Required by:
project : > com.fasterxml.jackson.core:jackson-annotations:2.13.2
project : > com.fasterxml.jackson.core:jackson-core:2.13.2
> Could not resolve com.fasterxml.jackson:jackson-bom:2.13.2.1.
> Could not get resource 'https://internalreporsitoryhost:8443/repository/maven-jaspersoft-3rd-party-ce/com/fasterxml/jackson/jackson-bom/2.13.2.1/jackson-bom-2.13.2.1.pom'.
> Could not GET 'https://internalreporsitoryhost:8443/repository/maven-jaspersoft-3rd-party-ce/com/fasterxml/jackson/jackson-bom/2.13.2.1/jackson-bom-2.13.2.1.pom'. Received status code 503 from server: Service Unavailable
Did any one updated their application with a fix to the jackson-databind 2.12.6 vulerability error. Its fixed in v 2.13.12.1, but when I update my gradle to refer to this latest library, I get another dependency error, which my gradle isn't able to download it. Please assist if you have any alternatives.
The build error is
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':compileJava'.
> Could not resolve all files for configuration ':compileClasspath'.
> Could not resolve com.fasterxml.jackson:jackson-bom:2.13.2.1.
Required by:
project : > com.fasterxml.jackson.core:jackson-databind:2.13.2.1
> Could not resolve com.fasterxml.jackson:jackson-bom:2.13.2.1.
> Could not get resource 'https://internalreporsitoryhost:8443/repository/maven-jaspersoft-3rd-party-ce/com/fasterxml/jackson/jackson-bom/2.13.2.1/jackson-bom-2.13.2.1.pom'.
> Could not GET 'https://internalreporsitoryhost:8443/repository/maven-jaspersoft-3rd-party-ce/com/fasterxml/jackson/jackson-bom/2.13.2.1/jackson-bom-2.13.2.1.pom'. Received status code 503 from server: Service Unavailable
> Could not resolve com.fasterxml.jackson:jackson-bom:2.13.2.1.
Required by:
project : > com.fasterxml.jackson.core:jackson-annotations:2.13.2
project : > com.fasterxml.jackson.core:jackson-core:2.13.2
> Could not resolve com.fasterxml.jackson:jackson-bom:2.13.2.1.
> Could not get resource 'https://internalreporsitoryhost:8443/repository/maven-jaspersoft-3rd-party-ce/com/fasterxml/jackson/jackson-bom/2.13.2.1/jackson-bom-2.13.2.1.pom'.
> Could not GET 'https://internalreporsitoryhost:8443/repository/maven-jaspersoft-3rd-party-ce/com/fasterxml/jackson/jackson-bom/2.13.2.1/jackson-bom-2.13.2.1.pom'. Received status code 503 from server: Service Unavailable
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您可以使用类似的依赖性约束:
请参阅
这应该迫使Gradle使用旧版本的Jackson-Bom/Core和Jackson Databind的新版本/固定版本。
You can use dependency constraints like this:
See https://docs.gradle.org/current/userguide/rich_versions.html#sec:strict-version for details.
This should force gradle to use the older version of jackson-bom/core and the newer/fixed version of jackson databind.
这个(2.13.2.1)版本似乎有错误
https://github.com/FasterXML/jackson-bom/issues/52
尝试使用微补丁2.13.2.20220328(https://github.com/FasterXML/jackson-bom/发布/标签/jackson-bom-2.13.2.20220328)
例如'com.fasterxml.jackson:jackson-bom:2.13.2.20220328'
It seems there is a error with this(2.13.2.1) version
https://github.com/FasterXML/jackson-bom/issues/52
Try to use micro patch 2.13.2.20220328(https://github.com/FasterXML/jackson-bom/releases/tag/jackson-bom-2.13.2.20220328)
e.g 'com.fasterxml.jackson:jackson-bom:2.13.2.20220328'