WordPress 5.1.1 is here! This is a security and maintenance update that brings 10 fixes and enhancements, along with some changes designed to help hosting providers prepare the ground for the minimum PHP requirement coming in the 5.2 release.
This release also includes two security updates that manage how comments are filtered and how they are stored in the database.
The versions of WordPress 5.1 and older are affected by these bugs, which are fixed in the 5.1.1 version. The error was discovered by Simon Scannell of RIPS Technologies.
You can read more on announcement of the new version.