* File changed: [patchwork/app.py](https://github.com/patched-codes/patchwork/pull/605/files#diff-839e90b808d34e4cf447eff0896161788ccfc6e1f2970be2e551b64ba413a503)Fix vulnerability by avoiding untrusted user input in importlib.import_module() Removed dynamic user input from importlib.import_module() function.
* File changed: [patchwork/common/utils/step_typing.py](https://github.com/patched-codes/patchwork/pull/605/files#diff-4490efb269fda5b75b1edc5f5fa275d34675bca1ffbb22e06829384e562205ff)Fix vulnerability in validate_step_with_inputs function Avoid using untrusted user input in importlib.import_module() function by whitelisting the module names.
* File changed: [patchwork/common/utils/dependency.py](https://github.com/patched-codes/patchwork/pull/605/files#diff-6ad070db06c1de59a1e0b0b199944f057089f121f94abdf817a0845e3c5d81f6)Fix vulnerability in importing modules securely Avoid dynamic values in `importlib.import_module()` by validating the input against a whitelist before importing the module.
This pull request from patched fixes 3 issues.
Fix vulnerability by avoiding untrusted user input in importlib.import_module()
Removed dynamic user input from importlib.import_module() function.Fix vulnerability in validate_step_with_inputs function
Avoid using untrusted user input in importlib.import_module() function by whitelisting the module names.Fix vulnerability in importing modules securely
Avoid dynamic values in `importlib.import_module()` by validating the input against a whitelist before importing the module.