Bug 66144 - The manual/api uses out of date jquery 3.3.1 which has security issues
Summary: The manual/api uses out of date jquery 3.3.1 which has security issues
Status: RESOLVED FIXED
Alias: None
Product: Ant
Classification: Unclassified
Component: Documentation (show other bugs)
Version: 1.10.12
Hardware: PC All
: P2 normal (vote)
Target Milestone: 1.10.13
Assignee: Ant Notifications List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-06-24 15:03 UTC by Alan Heath
Modified: 2023-03-02 07:41 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alan Heath 2022-06-24 15:03:00 UTC
Identified issue in the jquery is CVE-2020-11023

Does the manual need to use jquery? If it does it should get updated.
Comment 1 Stefan Bodewig 2022-06-25 15:46:24 UTC
I don't believe it is Ant itself that puts jquery into the api docs but the javadoc tool of the JDK does. "Fixing" the manual probably means re-creating it with a more recent JDK - if and only if the more recent JDK has actually upgraded its jquery dependency, that is.

Looking at CVE-2020-11023 and grepping through the code a bit I don't believe the code generated by the javadoc tool ever uses input from untrusted source at all, so it may just be that the apidocs generated simply are not affected by the vulnerabilty and thus no update is required. You may want to check that yourself.
Comment 2 Peter De Maeyer 2023-01-04 11:51:57 UTC
This causes violations to be reported by Nexus IQ scans, which is annoying and causes administrative overhead.
Comment 3 Jaikiran Pai 2023-01-04 12:16:13 UTC
Hello Alan, Peter,

Could one of you test the upcoming Ant 1.10.13 version which currently is in voting phase https://lists.apache.org/thread/5ovftmd8cj7sdstckq8m5d7r0g2q8x2k. I had a brief look at the generated javadoc and from what I can see this should no longer be an issue in this upcoming release. It would be helpful if you could try it out on some system where the scanning tool is running.
Comment 4 Peter De Maeyer 2023-01-04 13:13:36 UTC
I glanced at the pre-release ZIP and I can confirm that the vulnerable jquery-3.3.1 has been updated to a non-vulnerable jquery-3.5.1.

I noticed that 3.5.1 is not the latest though, the latest is 3.6.2, or even 4.0.0 even if you're willing to accept a major version bump, but 3.5.1 is certainly good enough for now.

In order to really confirm that our build passes Nexus IQ I'll need an official build downloadable from Maven Central, but I'm confident that it will be fixed in apache-ant-1.10.13.
Comment 5 Jaikiran Pai 2023-01-04 13:32:31 UTC
Thank you Peter for that quick check. Once the voting completes, this new release should be available soon.