Cut away the frayed strands of carpet using a razor blade or scissors. Cut only the frays and not into the carpet fabric so that you do not to make a larger hole or tear.
Dampen a rag under water, then put on rubber gloves to prevent seam sealer from getting stuck to your hands.
Apply the carpet seam sealer to the damaged area where you cut away the fraying strands. Wipe away excess with the damp rag immediately.
Allow the carpet seam sealer to dry for 24 hours or as long as recommended by the manufacturer. Check the repair over the next several days to ensure the seam sealer effectively repaired the fraying. Should the fray return, repeat the previous steps.