-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512 Advisory ID: SYSS-2026-089 Product: LimeSurvey Community Edition Manufacturer: LimeSurvey GmbH Affected Version(s): 7.0.14 (build 7.0.14+260904), 7.1.0 (build 7.1.0+260913), and 7.3.0 (build 7.3.0+260922); the affected code path is present in earlier releases and was not verified there Tested Version(s): 7.0.14 (build 7.0.14+260904), 7.1.0 (build 7.1.0+260913), 7.3.0 (build 7.3.0+260922) Vulnerability Type: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') (CWE-79) via an Incomplete List of Disallowed Inputs (CWE-184) Risk Level: High Solution Status: Fixed Manufacturer Notification: 2026-09-30 Solution Date: 2026-10-01 Public Disclosure: 2026-10-30 CVE Reference: None (not yet assigned) Author of Advisory: Henry Weckermann, SySS GmbH ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Overview LimeSurvey is a web application for creating and running online surveys. The manufacturer describes the product as follows (see [1]) "LimeSurvey is the simple, quick and anonymous online survey tool that's bursting with juicy insights. Calling students, professional researchers and enterprises: design a survey and get the best insights, it's free and as easy as squeezing a lime. Make a free online survey now!" LimeSurvey runs an HTML and XSS filter over content authored by non-superadmin users so that a survey creator cannot store executable JavaScript. Survey text fields also support ExpressionManager (EM), a templating layer that evaluates expressions written in braces at render time. The filter can be bypassed by using EM to synthesize the tag delimiters "<" and ">" at render time with sprintf('%c',60) and sprintf('%c',62). The filter never sees a complete HTML tag, so the payload is stored unmodified, and EM reassembles a live element when the survey is rendered. The stored script executes automatically, without interaction, in the browser of every survey participant when they open the survey as well as in the browser of a superadmin who previews or runs the survey, which could lead to full administrative takeover. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Vulnerability Details Because the purifier only ever inspects each fragment in isolation, it never sees a complete tag. The delimiters are produced by EM at render time, and the img src=x onerror=... contains no "<" or ">", so the purifier passes it as harmless text. At render time EM evaluates the two sprintf calls and concatenates: "<" + "img src=x onerror=alert(...)" + ">" The rendered output is emitted verbatim because the Twig renderer is configured with 'autoescape' => false: vendor/vintagesucks/twig-renderer/ETwigViewRenderer.php:87 The minimum role to store the payload is "surveycontent" update on an owned survey, the default for a survey creator. The bypass lives in the shared filter, so it applies to every text field routed through LSYii_Validators. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Proof of Concept (PoC) The following was verified live against LimeSurvey 7.0.14, executed as the account "surveycreator". "%c" produces a character from its numeric code point: 60 is "<" and 62 is ">". Step 1: Save survey text (survey 82556): POST /index.php/surveyAdministration/saveTextData/sid/82556 changes[en][description] = {sprintf('%c',60)}img src=x onerror=alert(document.domain){sprintf('%c',62)} changes[en][welcome] = {sprintf('%c',60)}img src=x onerror=alert(document.domain){sprintf('%c',62)} -> {"success":true, ...} Step 2: The value is stored unmodified; the filter did not strip it: lime_surveys_languagesettings.surveyls_description = {sprintf('%c',60)}img src=x onerror=alert(document.domain){sprintf('%c',62)} Step 3: Public render as an unauthenticated participant: GET /index.php/survey/index/sid/82556/newtest/Y emits, verbatim:
The onerror handler fires on load for every participant. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Solution - - Do not rely on purifying only the string literals inside an expression. After EM tokenisation, run the reconstructed value through HTMLPurifier as a whole, or contextually escape EM output at render time. - - Enable Twig autoescape for user-authored content, or explicitly apply |escape to EM output where HTML is not intended. - - Restrict the EM functions allowed in author-supplied content: deny sprintf and other character-producing primitives, and reject expressions whose evaluated output introduces "<" or ">" characters that were not present, and permitted, in the source. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Disclosure Timeline 2026-09-30: Vulnerability reported to the manufacturer 2026-10-01: Patch released by manufacturer 2026-10-30: Public disclosure of vulnerability ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ References [1] Product website, LimeSurvey Community Edition https://www.limesurvey.org/ [2] SySS Security Advisory SYSS-2026-089 https://www.syss.de/fileadmin/dokumente/Publikationen/Advisories/SYSS-2026-089.txt [3] SySS GmbH, SySS Responsible Disclosure Policy https://www.syss.de/en/responsible-disclosure-policy ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Credits This security vulnerability was found by Henry Weckermann of SySS GmbH. E-Mail: henry.weckermann (at) syss.de Public Key: https://www.syss.de/fileadmin/dokumente/PGPKeys/Henry_Weckermann.asc Key fingerprint = 716D DC05 47A5 08B5 F348 6ED6 7FB4 16F5 EDE2 6AF3 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Disclaimer The information provided in this security advisory is provided "as is" and without warranty of any kind. Details of this security advisory may be updated in order to provide as accurate information as possible. The latest version of this security advisory is available on the SySS website. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Copyright: Creative Commons - Attribution (by) - Version 4.0 URL: https://creativecommons.org/licenses/by/4.0/deed.en -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEcW3cBUelCLXzSG7Wf7QW9e3iavMFAmrhxogACgkQf7QW9e3i avOE6w//dB/GpMKp0LFhb+W32B3fbCGZ7hBRlmcoflGN3HY/w55h16yBUy7Q8YN9 UDWooxLpn5I629+KDLPyofAmZS3UpKCZB+Jmb9uTqQQd80RwZFfJHapI4YX2FHc2 Om9dRciyE+TcNJ8OjNV81+LoDaHGwM+xWk+ySRUxXhzyZV0IFYCBa6ySmIVNI1zq vuAwpNtlhYL5m5RBVIQ4R0x1yjnntpHiMhaEAQ22eB5CdeaUowBwx5LaEQ3+kxFe Fq2eCInAW+rstdd+lC9I9ZiQz+JX4kYUgJW8QqlGATFPtcuVlM0Ml0dgWbLBfiby dRoKttUuZtVPWwYRmVO5NlEjsAnEo6QLdikKuz0m9jPXCyzQT6ZfVl689QYM4dR0 MKPC1XCCpNG/BlSMEBMqjRQH1o/cIkdGnRC3tb66smHssw+3tYVBbSIoi1sC2K5y ZrptaibLwSRGBb59RLh/D+ZNxhK2qEEVKqXbnVeWlcxPx0t0KQUDJ1SS/I79lbK+ D4BwrCqUvOphKYIUX7xK3GIrK9sUtMlns/Z69uqb/CJRqFXw33h5P81nEtGOqo5a a30Rs6ZwuT8AEM6T4YdZRK+9HrnZ4viwQwNV/NeyGjsU71LZ73UAQwozx1Tr8sOG a2vpSCCKBG2qkHAC0Jm7tHTVzz/WxdAE5GjVWcl4PAtg+0Wr/08= =4IYO -----END PGP SIGNATURE-----