Servers and applications
GHSA-r932-r4wq-x4fp
Comments Pro: anonymous visitors can spoof their IP address and bypass the comment blocklist, one-vote-per-visitor check and rate limit
- Severity
- Medium
- Published
- 2 Dec 2026
- Last changed
- 2 Dec 2026
- Added to UpHeron
- 3 Dec 2026
- Fixed in
- 4.0.0
- Sources
- Project advisories (GitHub)
Description
Comments Pro takes the client IP address from the CF-Connecting-IP, X-Forwarded-For and X-Real-IP request headers before REMOTE_ADDR, on every site, whether or not a proxy sets them. Grav 2 core only trusts these headers when the site enables them under system.http_x_forwarded (off by default), so that clients cannot spoof their address. Comments Pro does not go through that check. Any visitor can send an address of their choice, and the plugin uses it for the IP blocklist, the comment rate limit and the check that allows one vote per visitor, and stores it as the comment's IP address. PoC verified with the help of Claude Mythos 5.2 (Anthropic).
CommentApiController::getClientIp() (classes/CommentApiController.php, lines 1025-1040 in 3.0.8) returns the first public address it finds in HTTP_CF_CONNECTING_IP, HTTP_X_FORWARDED_FOR, HTTP_X_REAL_IP and REMOTE_ADDR, in that order. For X-Forwarded-For it takes the first entry of the list. Its result is the key for:
Workarounds
Until you can upgrade, have the proxy or web server in front of Grav remove or overwrite CF-Connecting-IP, X-Forwarded-For and X-Real-IP on incoming requests.
Affected software
| Software | Affected versions |
|---|---|
GravServers and applications · github:getgrav/grav |
|
About Grav
free software content management system written in PHP
- Monthly downloads (Packagist)
- 2,784Packagist, 29 Nov 2026
- Total downloads (Packagist)
- 94,507Packagist, 29 Nov 2026
- GitHub stars
- 15,745GitHub, 29 Nov 2026
- Forks
- 1,431GitHub, 29 Nov 2026
- Latest release
- 2.2.35GitHub, 29 Nov 2026
- Released
- 25 Nov 2026GitHub
- License
- MIT LicenseWikidata
- Written in
- PHPWikidata
- First published on GitHub
- 2 Aug 2014GitHub
Vulnerabilities in Grav
- In our list
- 161
- Published in the last 12 months
- 118
- Critical, last 12 months
- 9
- High, last 12 months
- 77
- Known exploited
- 0
- GHSA-c76m-5vv2-6cmhAccount creators can take over existing accounts through a front-end Flex account formMedium 25 Nov 2026
- GHSA-fhgv-f82r-jm2pRead-only user managers can read not-yet-hashed account passwordsHigh 25 Nov 2026
- GHSA-q3hm-3pg3-x54rPage editors can still overwrite pages their page permissions deny through Flex pages formsMedium 25 Nov 2026
- GHSA-f839-hcfg-jjpwPublishers can overwrite pages their page permissions deny through the page language on multi-language sitesMedium 25 Nov 2026
- GHSA-f4c2-g57p-vcx9Anonymous visitors can store script-running pages through a public image upload form on Debian and Ubuntu ApacheHigh 25 Nov 2026
- GHSA-m5v2-xm86-jpw7User managers can delete any server file through an account's avatar and take over the siteHigh 25 Nov 2026
References
- GitHub Advisory Database https://github.com/advisories/GHSA-r932-r4wq-x4fp
- github.com https://github.com/getgrav/grav/security/advisories/GHSA-r932-r4wq-x4fp