I got the same message on an older version of Ubuntu where Firefox isn't installed via snap. On my main machine with Ubuntu / firefox snap I do not get this msg.
I'm taking this as a good reason to wait for an official Ubuntu update, tho, if this thread is accurate, it looks like all I'll need to keep my current version running will be new root certs.
Or a new browser, unfortunately.