4 Reasons Not to Use a Junction Box to Repair an Extension Cord
Extension cords are for temporary use only Cutting out a damaged section and adding a junction box turns the cord into a fixed installation, which it was never designed for. This creates a fire or shock hazard.
Junction boxes are for in-wall wiring, not flexible cords Junction boxes are meant for structural wiring where the cable is rated for permanent connections. An extension cord’s flexible, stranded wires can loosen over time under tension or movement.
The connection will fail under normal use The box will get tugged as you move the cord, causing the connections to loosen. You end up with the same problem, but with more risk.
Replacing the whole cord is cheaper and safer Extension cords are inexpensive. A junction box repair might pass a quick test, but it is not safe long-term. Do not risk a fire to save a few dollars.