-----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: