CSF settings reset after each CyberPanel update

It seems that every time I run a CyberPanel update, CSF settings are reset to their defaults. I’ve kept copies of csf.conf and csf.allow to manually restore them after the updates, but it is not very practical. Is this a bug or an intended behavior?

Ubuntu 22.04.5 LTS
CyberPanel latest stable

I discovered this today myself and landed here as a search result.

Another user made a bug report on https://github.com/usmannasir/cyberpanel/issues/1353

It left my server vulnerable!