Cross Site Scripting (XSS) in Form Block ≤ 1.8.1
Published: – Leave a comment
On October 2, 2026, the Patchstack team notified me about a vulnerability in Form Block version 1.8.1 and lower that allowed an attacker to execute a cross site scripting (XSS) on the form submissions page in the backend. Let’s check out what happened.
Timeline
The researcher “V1T” submitted a vulnerability through the Patchstack Vulnerability Disclosure Program for Form Block on July 19, 2026.
On October 2, 2026, the Patchstack team notified me about this vulnerability.
On the evening of October 2, 2026, I fixed the issue and sent it to Patchstack, who verified that the issue was resolved. I then immediately uploaded it to WordPress.org as the new version 1.8.2, which was publicly available 6 hours later, at around 10:30 pm.
On October 6, 2026, Patchstack published the whole report.
The vulnerability
If you use a name for a form field that contains [] to allow multiple values under the same key, an attacker could manipulate the request and send the field name like test[<img src=x onerror=alert(document.domain)>] for example. If local storage of form submissions was enabled, this manipulated data would then be displayed as HTML on the form submissions page in Tools > Form Submissions and could lead to the execution of arbitrary JavaScript code.
The fix
The data is now properly escaped before it is being displayed on the form submissions table and key names like this are now sanitized and replace the unsanitized version (previously, the key also has been sanitized, but the original has not been removed) in version 1.8.2 and later.
Thank you V1T for reporting the vulnerability and Patchstack for their Vulnerability Disclosure Program!
Reposts