I have software that comes with Canon cameras which contains lens profiles, which means the software can automatically remove the fringing based on the pixels and what the metadata says which lens/focal length etc was used.

You can do it manually in many image editing apps though, like Photoshop, which has a "lens correction" filter.