A strong allergen control program should keep a possibility of cross contact to an extreme minimum, so there is a high probability that this candy interloper is of the same allergen group. Not a guarantee, but there you have it. You could always contact the company and let them know of the issue you found. If they get enough complaints and they have cause for concern that a cross contact contamination is possible, they would hopefully investigate it thoroughly and you could sleep well at night knowing you did your part for the greater good.
This brings up something I've noticed over the last 9 months in a broad range of products I routinely purchase, a marked decrease in quality. As if COVID didn't take enough, now it's impacting my happy snack time.
Great points, and I agree that the OP should take it up with the company just to be sure that they are aware. It could potentially be an allergen/labeling issue and they should do investigations if they find more complaints.
As a side note, and not to get off-topic, I think a lot of us have been pretty stressed lately. A lot of employees in many companies have unfortunately fallen ill (or left because they are afraid to work in the current climate), and have probably been replaced by temporary workers (or maybe not even replaced at all). More work/less workers or more work/less training can certainly lead to failures of systems. Plus with consumers buying three carts full of goods when they hoard for the pandemic, a lot of companies are trying to fill overtime hours just to keep up with demand for goods. I try to keep these things in mind when I'm a bit upset about minor inconveniences. We all have far bigger issues to worry about with the current pandemic. I'm just glad to know that companies are doing what they can to stay open and provide us with safe food.