Uploaded image for project: 'ActiveMQ Artemis'
  1. ActiveMQ Artemis
  2. ARTEMIS-3971

remove vulnerable .js deps from javadoc output - jQuery, jQuery UI, jszip

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.20.0, 2.21.0, 2.22.0, 2.23.0, 2.23.1, 2.24.0, 2.25.0
    • 2.26.0
    • API
    • None

    Description

      Following https://openjdk.org/jeps/225), the javadoc output on JDK9+ has included a search box. To enable this various javascript files and a zipped index are included in the javadoc output. This means they were introduced to the once the project required Java 11, i.e from 2.20.0, as previously Java 8 was used to run the release builds. These files are of whatever version the JDK used to run the build has included, and can tend to get stale.

      Setting the -noindex option when building the javadoc removes the search, so we can add this option and remove the need to deal with these files doing stale in future.

       

       

      # Original report

      Please upgrade the listed libraries, as there are reported vulnerabilities for them, see the list below. This is a blocker for production deployments.

      http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2019-11358

      jQuery before 3.4.0, as used in Drupal, Backdrop CMS, and other products, mishandles jQuery.extend(true, {}, ...) because of Object.prototype pollution. If an unsanitized source object contained an enumerable {}proto{} property, it could extend the native Object.prototype.

      http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2020-11022

      In jQuery versions greater than or equal to 1.2 and before 3.5.0, passing HTML from untrusted sources - even after sanitizing it - to one of jQuery's DOM manipulation methods (i.e. .html(), .append(), and others) may execute untrusted code. This problem is patched in jQuery 3.5.0.

      http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2020-11023

      In jQuery versions greater than or equal to 1.0.3 and before 3.5.0, passing HTML containing <option> elements from untrusted sources - even after sanitizing it - to one of jQuery's DOM manipulation methods (i.e. .html(), .append(), and others) may execute untrusted code. This problem is patched in jQuery 3.5.0.

      http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2022-31160

      jQuery UI is a curated set of user interface interactions, effects, widgets, and themes built on top of jQuery. Versions prior to 1.13.2 are potentially vulnerable to cross-site scripting. Initializing a checkboxradio widget on an input enclosed within a label makes that parent label contents considered as the input label. Calling `.checkboxradio( "refresh" )` on such a widget and the initial HTML contained encoded HTML entities will make them erroneously get decoded. This can lead to potentially executing JavaScript code. The bug has been patched in jQuery UI 1.13.2. To remediate the issue, someone who can change the initial HTML can wrap all the non-input contents of the `label` in a `span`.

      http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2021-23413

      This affects the package jszip before 3.7.0. Crafting a new zip file with filenames set to Object prototype values (e.g {}proto{}, toString, etc) results in a returned object with a modified prototype instance.

      Attachments

        Activity

          People

            robbie Robbie Gemmell
            jakubmoravec Jakub Moravec
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: