Shaded version of json-smart 1.3.1 has critical vulnerability

Issue #459 invalid
Former user created an issue

See CVE-2021-27568 for a vulnerability affecting version 1.3.1 of json-smart. Since it is shaded there is no way to use nimbus-jose-jwt 9.x and not have this vulnerability.

Comments (8)

  1. Vladimir Dzhuvinov

    Which release are your referring to? This looks some some old release of the JWT lib.

    At present we have this:

    <dependency>
        <groupId>net.minidev</groupId>
        <artifactId>json-smart</artifactId>
        <version>2.4.7</version>
        <optional>true</optional>
    </dependency>
    

  2. Renee Wilkins

    I’ve checked with both the 9.0.1 which we currently use and the latest version 9.16.1 and both state that you are using the “Shades the net.minidev:json-smart:1.3.1 dependency.” so which is it 1.3.1 version or 2.4.7?

    I do see when I download the 9.16.1 jar and look it does say that it is using version 2.4.7. I would suggest that the this page https://bitbucket.org/connect2id/nimbus-jose-jwt/src/master/ be updated as it shows Shades the net.minidev:json-smart:1.3.1

  3. Matthew Arnold

    I can confirm that when I do twistlock scan it is pulling in json-smart 1.3.1 on any version 9.x so it is still shading version 1.3.1, it’s not just a documentation error

  4. Vladimir Dzhuvinov

    I’ve checked with both the 9.0.1 which we currently use and the latest version 9.16.1 and both state that you are using the “Shades the net.minidev:json-smart:1.3.1 dependency.” so which is it 1.3.1 version or 2.4.7?

    I do see when I download the 9.16.1 jar and look it does say that it is using version 2.4.7. I would suggest that the this page https://bitbucket.org/connect2id/nimbus-jose-jwt/src/master/ be updated as it shows Shades the net.minidev:json-smart:1.3.1

    This is from a commit message that appears for the .gitignore file at the time 9.0 was release, it is not part of the README doc.

  5. Log in to comment