Developing an equilibrium solution for a pairwise spin-glass with a quenched random infinite range shows a continuous phase transition. Models with p-spin interactions have been studied and the exact solution was provided that shows a continuous phase transition for p=2 and a first-order one for p>2. Although the p-spin interactions were studied individually without considering lower-order interactions, is it always feasible to ignore the lower ones? Here, we are interested in finding an analytical solution for considering a triadic interaction as a perturbation in the background of a pairwise interaction in the Sherrington-Kirkpatrick spin-glass model. Our results indicate a sudden phase transition as a consequence of considering triadic interactions that signal a switch from a continuous to an explosive phase transition.