Security glossaryCross-site request forgery (CSRF) tricks a signed-in user's browser into sending a request they never meant to make, such as changing a setting on your site.
Cross-site request forgery (CSRF) tricks a signed-in user's browser into sending a request they did not intend. If you are logged in to your site and open a malicious page elsewhere, that page can try to submit a form to your site, for example to change a setting or delete a post, and your browser sends your login cookie along with it.
Prevention
Sites defend against it by requiring a secret token with every action that changes something. A forged request from another site does not know the token, so it is rejected. WordPress does this with nonces. Cookies marked SameSite add a second layer, because the browser then stops sending them with most cross-site requests.
Source: OWASP: Cross-site request forgery.