Disable all browser extensions, quit, open again, see if you still get the warnings.
To find the culprit, enable one by one and test.
You do not have a virus, some extension/plugin/bar in Safari is trying to communicate to a likely malware carrying web address, the extension itself is not considered malware by avast (I would consider it malware).