Is it safe to use third-party power cords with the HP LaserJet Pro MFP M25-M27 series?

No, to prevent damage to the product, only use the power cord that is provided with the product. Using a different cable can cause harm.

From the official HP Laserjet Pro Mfp M25 M27 manual, page 1

Have a follow-up question?

Answers from the official manual.

Common questions