The mass on your dog could be cancerous if it is suspiciously large and develops suddenly. If it changes color, especially to black or purple. Some cancerous lumps produce discharge.