Hello Foreman Development Community, I have a question regarding versions of some bundled javascript libraries specifically Bootstrap and lodash. Foreman appears to currently be using version 3.4.1 of bootstrap and version 4.17.21 of lodash both of which contain known vulnerabilities
I was curious if there are plans to package updated versions for either or both of these libraries in future Foreman/Katello releases?
I’m not sure about lodash, but bootstrap I’m pretty sure is due to our use of Patternfly v3. We’re working on getting our UI up to date as soon as possible to allow us to use newer libraries. Our Angular stack in Katello is also old and creates a similar problem. This is why new UI pages have been rolling out.
The Red Hat repositories page is one of the main ones using PF3 that I know of. We’ve begun working a redesign to potentially unify that page with the products page.
Anyway, I can’t say for sure exactly what release will see those versions gone, but I anticipate it should be soon .
This reference implementation of PatternFly is based on Bootstrap v3.
We’re in the process of upgrading everything to PatternFly v5 (https://v5-archive.patternfly.org/). This in itself isn’t the newest version, but we want to avoid having 3 different versions of the library in a single application.
As a developer, the easiest way to recognize PF3 is imports from patternfly-react, for example:
import { Modal } from 'patternfly-react';
While PF5 will be @patternfly/react-*:
import { Modal } from '@patternfly/react-core';
At this point I think the plugins are the best places to help with this.