I have a project I’ve created in Cuba Platform 7.2 - The application is finished and in a pre-go-live and has now been subjected to both SAST and SCA scans. To pass the SCA testing I need to update some of the dependencies within Cuba itself such as commons-io v2.6 fails against issue CVE-2024-47554 and is fixed in 2.14.0. Likewise logback 1.2.3 fails CVE-2023-6378 and is fixed in 1.2.13.
I have 4 others also (ccs-what, cross-spawn, lodash.pick and thoughtworks.xstream)
They all look to be dependencies of parts of Cuba-Platform, the first two being in the cuba-global library.
Is there an easy way to get these dependencies ‘updated’ to newer version, I’ve been poking around in my project’s build.gradle but its clear its not my project that has the issue and nothing I do resolves it. I’ve listed below the top part of the dependency tree, as you can see its using common-io 2.6 and if I unpack the source for cuba-global I can see it listed in there.
Do I have to re-build cuba platform itself? If so what is the easy way of going that on Windows using the Cuba Studio Plug-in for Intelli-J?
You should be able to override dependencies in project build.gradle.
You need to add desired version of dependency in configure block of specific module. In general it should be enough to add it to the global one.
After this your application will use the newest version.
The main issue with such approach: if you specify version which is incompatible with the “previous” one - framework modules using it will fail (three versions mentioned above should work fine).
Also can you add more details about another vulnerabilities you found (css-what, cross-spawn, lodash.pick, maybe something else)?
We are currently in process of vulnerability search, but didn’t find issues with them (maybe later I will). Deps trees, module names will be useful.
I have got the project through SCA but there have been a number of extra steps to get there. The SCA scanning was also done on an UberJAR which needed more lines in the build.gradle file to get the correct versions in that jar.
I’m taking a few days off for the Christmas holiday so will write the whole thing up next week and share on this thread.