PowerShell Vulnerabilities in Packages that UiPath Uses

In my experiments with UiPath, in combination with PowerShell, I have seen that UiPath uses the Microsoft.PowerShell.*.7.1.0.nupkg packages in Windows compatibiliy mode. As far as I can see are the versions of the packages in UiPath release 21.10.5 the same as in the current version 22.4.3. It exists a few Common Vulnerabilities and Exposures (CVE) for PowerShell, e.g. CVE-2022-26788, CVE-2021-43896, etc. When will the packages you use be updated? From a security perspective, would it be advisable to use the approach @Robin123 has chosen and presented here? This would always give you full control over the version you actually use.