Most peanut butter is safe for dogs. A few brands of peanut butters use a sugar substitute named Xylitol in their peanut butter which is not safe for dogs in the ingredients, but it is rare.
CBD appears to be safe for dogs, but there are only a handful of ... oils or fatty treats like peanut butter-based treats may work better for your dog than other CBD forms like dry capsules.