I think the suggestion to just stitch around it is probably sufficient, but an earlier post in this community pointed me to using a speedweve to basically weave a little patch in-place, picking up stitches around all the sides to sew it onto the mended garment. Looks pretty cool if you want to go to that much effort.
(Edit: Video with clearer instructions, also demos on non-hand-knit fabric.)

