EE was attempting to cut a Tie Strap from the frame of the glass on the wing window (not emergency exit window) of a CAT 992G Front End Loader with a pocket knife. As EE began to cut, EE's thumb touched the lock on the knife, causing the blade to close on hand. EE received 5 stitches and was released to full duty with no restrictions.