I have an HP 15-CX0056WM gaming it came with an SR03XL battery 3 cells 11.55 volts 52.5Wh The replacement was SR04XL 4 cells 15.4 volts 54 Wh, is it okay to use it? The vendor told me that this is the replacement for my battery.
This same question was presented in the post Battery Upgrade Hp Pavilion gaming 15-CX0056WM:
Hello! i want to know my laptop came with a 52Wh battery SR03XL. this same laptop also comes with SR04XL which is a 70Wh.
This was the answer by an HP Support Agent :
As per the product specifications for your device: click here to check, the 3-cell, 52.5 Wh Li-ion polymer battery is what's compatible with your device, and the same is recommended, and I'm afraid I must let you know that HP does not recommend upgrades or hardware changes as the device is equipped with parts that perform at its optimal performance by design, that said, the upgradeable parts listed by HP articles are purely for your ease, as the decision to upgrade will be at your own discretion.
That said, I find SR04XL batteries recommended for your model in many offers (example), which throws some doubt on whether the above advice was too cautious.
You can see the confusion in the post Can using higher rated battery damage device from 2012, where you can find answers going both ways, for and against using a higher voltage.
Finally, as the HP Support Agent said above, it's up to you to decide if there is or isn't a risk.