CVE-2026-5113
Beschrijving NL
De Gravity Forms plugin voor WordPress is kwetsbaar voor Stored Cross-Site Scripting via Consent field hidden inputs in versies tot en met 2.10.0. Dit komt door een gebrekkig statusvalidatiemechanisme dat niet opengaat wanneer de invoer wordt ontsmet door wp_kses(), in combinatie met onvoldoende uitgangsontsnapping. De statusvalidatielogica creëert twee hashes (ruwe invoer en wp_kses-sanitized invoer) en faalt alleen bij validatie als BEIDE hashes niet overeenkomen met de oorspronkelijke status. Wanneer een aanvaller XSS-payloads injecteert met tags ontdaan van wp_kses() (zoals ), komt de ontsmette hash overeen terwijl de kwaadaardige ruwe waarde wordt bewaard en opgeslagen in de database. Wanneer beheerders de pagina Invoerlijst bekijken, wordt het opgeslagen kwaadaardige toestemmingslabel opgehaald en uitgevoerd zonder te ontsnappen, waardoor de XSS-payload wordt uitgevoerd. Dit maakt het mogelijk voor niet-geverifieerde aanvallers om willekeurige webscripts te injecteren in items die worden uitgevoerd wanneer een geverifieerde beheerder de pagina met de lijst met items opent.
Origineel (Engels) tonen
The Gravity Forms plugin for WordPress is vulnerable to Stored Cross-Site Scripting via Consent field hidden inputs in versions up to and including 2.10.0. This is due to a flawed state validation mechanism that fails open when input is sanitized by wp_kses(), combined with insufficient output escaping. The state validation logic creates two hashes (raw input and wp_kses-sanitized input) and only fails validation if BOTH hashes don't match the original state. When an attacker injects XSS payloads using tags stripped by wp_kses() (like ), the sanitized hash matches while the malicious raw value is preserved and saved to the database. When administrators view the Entries List page, the stored malicious consent label is retrieved and output without escaping, causing the XSS payload to execute. This makes it possible for unauthenticated attackers to inject arbitrary web scripts in entries that will execute whenever an authenticated administrator accesses the entries list page.