Black walnut worms
Thank you for the question. More information is needed before we can help you. Please tell us when you saw worms, what they look like, if they were in the nut or the tree itself. Photos of the worms and the entire tree would be very helpful.