You've probably heard that a secretion called castoreum, isolated from the anal gland of a beaver, is used in flavorings and perfumes.
But castoreum is so expensive, at up to $70 per pound of anal gland (the cost to humanely milk castoreum from a beaver is likely even higher), that it's unlikely to show up in anything you eat.
In 2011, the Vegetarian Resource Group wrote to five major companies that produce vanilla flavoring and asked if they use castoreum. The answer: According to the Federal Code of Regulations, they can't. (The FDA highly regulates what goes into vanilla flavoring and extracts.)
It's equally unlikely you'll find castoreum in mass-marketed goods, either.
Sources: Business Insider, Vegetarian Resource Group, FDA, NY Trappers Forum