If it has pins, take a piece of foam and gently press the CPU into it to protect them. Put that in an anti-static bag, and surround it with bubble wrap or styrofoam peanuts in the box. Try to get the CPU in the exact center of the box so that it's protected from all sides.