如何在spring-boot-starter-json pom.xml中修复Jackson-Databind版本

时间:2019-05-29 12:13:25

标签: spring-boot security jackson-databind

我想修复使用spring-boot创建的项目中的漏洞。

Vulnerable module: com.fasterxml.jackson.core:jackson-databind
Introduced through: org.springframework.boot:spring-boot-starter-web@2.1.5.RELEASE and com.fasterxml.jackson.core:jackson-databind@2.9.8

spring-boot-starter-json pom.xml doesn't contain version for jackson-databind artifact.

我可以添加2.9.8并在spring-boot 2.1.x分支中创建PR吗?

原始POM:

<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
    <modelVersion>4.0.0</modelVersion>
    <parent>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starters</artifactId>
        <version>${revision}</version>
    </parent>
    <artifactId>spring-boot-starter-json</artifactId>
    <name>Spring Boot Json Starter</name>
    <description>Starter for reading and writing json</description>
    <properties>
        <main.basedir>${basedir}/../../..</main.basedir>
    </properties>
    <dependencies>
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter</artifactId>
        </dependency>
        <dependency>
            <groupId>org.springframework</groupId>
            <artifactId>spring-web</artifactId>
        </dependency>
        <dependency>
            <groupId>com.fasterxml.jackson.core</groupId>
            <artifactId>jackson-databind</artifactId>
        </dependency>
        <dependency>
            <groupId>com.fasterxml.jackson.datatype</groupId>
            <artifactId>jackson-datatype-jdk8</artifactId>
        </dependency>
        <dependency>
            <groupId>com.fasterxml.jackson.datatype</groupId>
            <artifactId>jackson-datatype-jsr310</artifactId>
        </dependency>
        <dependency>
            <groupId>com.fasterxml.jackson.module</groupId>
            <artifactId>jackson-module-parameter-names</artifactId>
        </dependency>
    </dependencies>
</project>

0 个答案:

没有答案