Comment Form CSRF Protection
WordPress has a 12-year-old unfixed security vulnerability that it does not properly validate incoming comments.
Consider an alternative
Comment Form CSRF Protection shows warning signs in 2026 — compare the alternatives below before installing. It runs on 400+ sites, is rated 5/5 and was last updated 3 years ago, and scores 34/100 on our health check.
- Small user base (400+ active installs)
- Very few reviews so far
- No update in 3 years
- Only tested up to WordPress 6.3 (latest is 7.1)
How does it stack up?
Side-by-side on installs, updates, ratings & supportDaily downloads
Download spikes usually follow a new release — each site that auto-updates counts as a download.
Rankings
Where Comment Form CSRF Protection stands todayWordPress.org search rankings
Live position in the plugin search, top 100| Keyword | Position |
|---|---|
| comments | >100 |
| csrf | #24 |
| security | >100 |
| spam | >100 |
Version adoption
Share of active sites per release.
Rating breakdown
★★★★★★★★★★ 5 from 2 reviews
About Comment Form CSRF Protection
From the official readme · v1.4Description
WordPress has a 12-year-old unfixed security vulnerability that it does not properly validate incoming comments.
An attacker can trick both anonymous and logged-in users to post comments on a victim site without them realizing, while using their own credentials.
See this issue for more information: https://core.trac.wordpress.org/ticket/10931
This is a tiny (fewer than 40 effect lines of code) module that adds a secure token to the comment form and validate it before accepting any comment, thus making your comment forms secure as they should\’ve been for all these years!
It provides no UI – just install it, and you are all set!
- This plugin adds a secret cryptographically-secure token to the comment form. This is a unique value and is computationally impractical to guess it.
- Upon comment submission, the comment is rejected if the secret tokens are not present or computationally invalid.
Installation
- Upload the plugin files to the
/wp-content/plugins/directory, or install the plugin through the WordPress plugins screen directly. - Activate the plugin through the ‘Plugins’ screen in WordPress.
- You are all set! There is nothing to configure. Your comment forms will contain the hidden token fields that will be properly validated upon submission.
Changelog
1.0
- Initial release.
1.1
This is a minor release that contains minimal changes.
- Marks the plugin as tested up-to WordPress 5.3
- Fix in
composer.jsonfile that it required PHP^7.2 instead of intended ^7.1 - A micro optimization in the plugin to call the lambda function directly within the CSRF check.
1.4
Minor release that contains several typo fixes and WordPress 6.3 compatibility
For developers
Is this your plugin? Show off the numbers.
Add a live badge to your site, docs or GitHub README. It updates on its own — no account needed.
Best Comment Form CSRF Protection alternatives
All comments plugins →FAQ
Comment Form CSRF Protection: quick answers
Straight answers, pulled from live WordPress.org data.
Source: WordPress.org
Is Comment Form CSRF Protection free?
Yes. Comment Form CSRF Protection is free to download and use from the official WordPress.org plugin directory.
Is Comment Form CSRF Protection safe to use in 2026?
Comment Form CSRF Protection shows warning signs in 2026 — compare the alternatives below before installing. It runs on 400+ sites, is rated 5/5 and was last updated 3 years ago, and scores 34/100 on our health check.
How many websites use Comment Form CSRF Protection?
Comment Form CSRF Protection is active on 400+ WordPress websites and has been downloaded 16,280 times since it launched in February 2019. It was downloaded 186 times in the last 30 days.
Does Comment Form CSRF Protection work with WordPress 7.1?
Comment Form CSRF Protection is officially tested up to WordPress 6.3.15, while the latest release is 7.1.5. It may still work, but try it on a staging site first.
What PHP version does Comment Form CSRF Protection need?
Comment Form CSRF Protection requires PHP 7.1 or higher. Most hosts run PHP 8.x today, so it works on any modern WordPress hosting.
When was Comment Form CSRF Protection last updated?
The latest version, 1.4, was released on July 23, 2023 (3 years ago).
Who makes Comment Form CSRF Protection?
Comment Form CSRF Protection is developed and maintained by Ayesh Karunaratne.
What are the best alternatives to Comment Form CSRF Protection?
The most popular alternatives to Comment Form CSRF Protection are Akismet Anti-spam: Spam Pro… (5M+ installs), Disable Comments (1M+ installs) and Antispam Bee (700K+ installs).
Powered by PageForge
One template and a spreadsheet. A real page for every search.
PageForge turns each row of a CSV into a WordPress page with its own title, URL, SEO fields and schema, built on the layout you already designed. Free on WordPress.org.
- CSV and XLSX, plus Google Sheets on Professional and Enterprise
- Its own title, URL, SEO fields and schema for every page
- Works with the block editor, Elementor, Divi and Avada
- Free on WordPress.org, no credit card


