Batteries for some of these are not replaceable by users, but whatever the case, HP says it will handle getting a safe battery into owners' devices.
HP is recommending users immediately download a BIOS update, which will place the the laptop in "Battery Safety Mode" so it can be used safely off the mains, bypassing the battery completely until it is replaced.
The recalled batteries, which were manufactured in China, were sold from December 2015 until last month in various retail stores and online.
Customers should go to www.HP.com/go/batteryprogram2018 to see if their battery is included in the recall.
The laptops affected all have non-removable batteries, of course, and include models from the ProBook, ZBook, x360, Pavilion and Envy ranges.
The recall affects about 50,000 machines sold in the United States, in addition to about 2,600 in Canada.
HP issued a statement to stay: "The quality and safety of all HP products is our top priority". When enabled on an affected system, the battery will be discharged and then can't be charged (at least without disabling the safety mode).
A small amount of HP laptops and workstations shipped between December 2015 and December 2017 will need their batteries replaced, as they're prone to overheating or melting, the company announced on Thursday.
HP has issued instructions for using its battery validation tool to check if your laptop is impacted.