Skip to content

Upgrade commons-text-1.9.jar #892

Closed
Closed

Description

@datenimperator

Describe the bug
The VScode extension pivotal.vscode-spring-boot-1.40.0 includes the file language-server\BOOT-INF\lib\commons-text-1.9.jar. A critical security issue is reported as CVE-2022-42889 for this release. This error has been fixed in releases 1.10.0 and higher.

Please update the dependency to one not vulnerable.

To Reproduce

  • Install the current extension "Pivotal Spring Boot Tools" on VScode.
  • Inspect the contents of the path %HOME%\.vscode\extensions\pivotal.vscode-spring-boot-1.40.0\language-server\BOOT-INF\lib to find the vulnerable jar file.

Activity

  1. BoykoAlex commented on Nov 16, 2022

    @BoykoAlex
    Contributor

    @datenimperator @martinlippert we have switched to a snapshot of rewrite-maven library which was pulling commons-text-1.9. The snapshot is pulling 1.10 and there are releases since Rewrite 7.30.0 which are likely having commons-text-1.10 as well. If we are okay to wait for the next scheduled release of 1.41 for vscode extensions then I'd keep it opened until the release. Otherwise, if urgent release is required, I could try a later two minor version rewrite release which are very likely to pull commons-text-1.10

  2. BoykoAlex commented on Nov 16, 2022

    @BoykoAlex
    Contributor

    I find it unlikely that we'd be affected by CVE-2022-42889. The lib rewrite-maven only uses commons-text for org.apache.commons.text.StringEscapeUtils namely methods:

    • escapeEcmaScript(String)
    • escapeJava(String)
      From what I've gathered these methods don't use StringLookup. Therefore, I'd keep this opened until the next release when we switch to Rewrite release dependencies and double-check they use commons-text 1.10 and above
  3. martinlippert commented on Nov 17, 2022

    @martinlippert
    Member

    @datenimperator Please feel free to report the usage of the CVE-effected dependency to the rewrite-maven project as well. And thanks for reporting this here.

  4. datenimperator commented on Nov 17, 2022

    @datenimperator
    Author

    @BoykoAlex @martinlippert thx for responding so quickly, really appreciated. Personally, I do not assume that this is so much of an actual issue, given the way how the lib is used. But this warning comes up if your computer is scanned for vulnerabilities, and many organizations (like my employer) will perform such scans. I think its safe to assume that this warning has been seen already by lots of users. Once your PC has been on a "vulnerable computers" list for some days, it doesn't take too long until emails from top-execs come flying in...

    So, for the sake of you helping me to get rid of our sec guy telling me to update, I eagerly await the next release :-)

  5. datenimperator commented on Nov 17, 2022

    @datenimperator
    Author

    Please feel free to report the usage of the CVE-effected dependency to the rewrite-maven project as well.

    Done, see openrewrite/rewrite-maven-plugin#438

  6. martinlippert commented on Nov 17, 2022

    @martinlippert
    Member

    @datenimperator ETA for the next release is the week of Dec 7

  7. added this to the 4.17.0.RELEASE milestone on Nov 20, 2022
  8. added
    for: eclipse
    for: vscode
    dependencies
    and removed on Nov 20, 2022
  9. martinlippert commented on Dec 2, 2022

    @martinlippert
    Member

    rewrite-maven as well as rewrite-java have been updated to commons-text version 1.10.0, so we are not shipping version 1.9.0 of commons-text anymore. This will ship as part of the next release (in Spring Tools Extension for VSCode 1.41.0, as part of the broader Spring Tools 4.17.0 release)

  10. martinlippert commented on Dec 2, 2022

    @martinlippert
    Member

    Thanks again @datenimperator for reporting this!!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    dependenciesfor: eclipsefor: vscodetheme: internal-architecture

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions