Darktable has several modules for that:
defringe
This actually worked very well on my last Nightsky pictures.
chromatic aberrations
I couldn't see a difference in the picture regardless if it was turned on or off.
lens correction
The lens correction module also offers sliders for "TCA red" and "TCA blue". I haven't tried it yet as it couldn't find data for my lens.
Posted to Darktable Tricks (2020-04-23 19:12)